Page Speed Optimization Libraries  1.11.33.2
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Pages
measurement_proxy_url_namer.h
Go to the documentation of this file.
1 /*
2  * Copyright 2016 Google Inc.
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http:///www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16 
19 
20 #ifndef NET_INSTAWEB_REWRITER_PUBLIC_MEASUREMENT_PROXY_URL_NAMER_H_
21 #define NET_INSTAWEB_REWRITER_PUBLIC_MEASUREMENT_PROXY_URL_NAMER_H_
22 
24 
25 #include "pagespeed/kernel/base/basictypes.h"
26 #include "pagespeed/kernel/base/string.h"
27 #include "pagespeed/kernel/base/string_util.h"
28 
29 namespace net_instaweb {
30 
31 class GoogleUrl;
32 class RewriteOptions;
33 
40  public:
42  ~MeasurementProxyUrlNamer() override;
43 
47  bool Decode(const GoogleUrl& request_url,
48  const RewriteOptions* rewrite_options,
49  GoogleString* decoded) const override;
50 
51  static bool DecodePathDetails(const GoogleUrl& request_url,
52  StringPiece* config,
53  StringPiece* config_domain,
54  StringPiece* password,
55  GoogleString* res_url);
56 
57  bool IsAuthorized(const GoogleUrl& request_url,
58  const RewriteOptions& options) const override {
60  return true;
61  }
62 
63  private:
64 
65 };
66 
67 }
68 
69 #endif
Definition: url_namer.h:38
bool IsAuthorized(const GoogleUrl &request_url, const RewriteOptions &options) const override
Definition: measurement_proxy_url_namer.h:57
Definition: measurement_proxy_url_namer.h:39
Definition: rewrite_options.h:84
bool Decode(const GoogleUrl &request_url, const RewriteOptions *rewrite_options, GoogleString *decoded) const override