| Index: components/data_reduction_proxy/core/common/data_reduction_proxy_util.h
|
| diff --git a/components/data_reduction_proxy/core/common/data_reduction_proxy_util.h b/components/data_reduction_proxy/core/common/data_reduction_proxy_util.h
|
| index 30ba5605a9676bc0bfa6a1f277ae7576eb55a961..75ee3c91e84094aaf3fa2eba9748f36c8974c54c 100644
|
| --- a/components/data_reduction_proxy/core/common/data_reduction_proxy_util.h
|
| +++ b/components/data_reduction_proxy/core/common/data_reduction_proxy_util.h
|
| @@ -42,26 +42,34 @@ namespace data_reduction_proxy {
|
|
|
| #define CLIENT_ENUM(name, str_value) name,
|
| typedef enum { CLIENT_ENUMS_LIST } Client;
|
| #undef CLIENT_ENUM
|
|
|
| namespace util {
|
|
|
| // Returns the version of Chromium that is being used, e.g. "1.2.3.4".
|
| const char* ChromiumVersion();
|
|
|
| -// Returns the build and patch numbers of |version_string|. |version_string|
|
| -// must be a properly formed Chromium version number, e.g. "1.2.3.4".
|
| +// Returns the build and patch numbers of |version_string| as std::string.
|
| +// |version_string| must be a properly formed Chromium version number, e.g.
|
| +// "1.2.3.4".
|
| void GetChromiumBuildAndPatch(const std::string& version_string,
|
| std::string* build,
|
| std::string* patch);
|
|
|
| +// Returns the build and patch numbers of |version_string| as unit32_t.
|
| +// |version_string| must be a properly formed Chromium version number, e.g.
|
| +// "1.2.3.4".
|
| +void GetChromiumBuildAndPatchAsInts(const std::string& version_string,
|
| + uint32_t* build,
|
| + uint32_t* patch);
|
| +
|
| // Get the human-readable version of |client|.
|
| const char* GetString(Client client);
|
|
|
| // Returns true if the request method is idempotent.
|
| bool IsMethodIdempotent(const std::string& method);
|
|
|
| GURL AddApiKeyToUrl(const GURL& url);
|
|
|
| // Returns whether this is valid for data reduction proxy use. |proxy_info|
|
| // should contain a single DIRECT ProxyServer, |url| should not be WS or WSO,
|
|
|