OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef COMPONENTS_GOOGLE_GOOGLE_URL_TRACKER_CLIENT_H_ | 5 #ifndef COMPONENTS_GOOGLE_GOOGLE_URL_TRACKER_CLIENT_H_ |
6 #define COMPONENTS_GOOGLE_GOOGLE_URL_TRACKER_CLIENT_H_ | 6 #define COMPONENTS_GOOGLE_GOOGLE_URL_TRACKER_CLIENT_H_ |
7 | 7 |
8 #include "base/macros.h" | 8 #include "base/macros.h" |
9 #include "url/gurl.h" | 9 #include "url/gurl.h" |
10 | 10 |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
43 // Returns the URL request context information that the GoogleURLTracker | 43 // Returns the URL request context information that the GoogleURLTracker |
44 // should use. | 44 // should use. |
45 virtual net::URLRequestContextGetter* GetRequestContext() = 0; | 45 virtual net::URLRequestContextGetter* GetRequestContext() = 0; |
46 | 46 |
47 // Returns whether |url| is for a Google domain. | 47 // Returns whether |url| is for a Google domain. |
48 // TODO(blundell): Eliminate this method in favor of having callers call | 48 // TODO(blundell): Eliminate this method in favor of having callers call |
49 // google_util::IsGoogleDomainURL() directly once google_util is | 49 // google_util::IsGoogleDomainURL() directly once google_util is |
50 // componentized. crbug.com/381088 | 50 // componentized. crbug.com/381088 |
51 virtual bool IsGoogleDomainURL(const GURL& url) = 0; | 51 virtual bool IsGoogleDomainURL(const GURL& url) = 0; |
52 | 52 |
53 // Appends the Google locale as a param to |url|. | |
54 // TODO(blundell): Eliminate this method in favor of having callers call | |
55 // google_util::AppendGoogleLocaleParam() directly once google_util is | |
56 // componentized. crbug.com/381088 | |
57 virtual GURL AppendGoogleLocaleParam(const GURL& url) = 0; | |
58 | |
59 protected: | 53 protected: |
60 GoogleURLTracker* google_url_tracker() { return google_url_tracker_; } | 54 GoogleURLTracker* google_url_tracker() { return google_url_tracker_; } |
61 | 55 |
62 private: | 56 private: |
63 GoogleURLTracker* google_url_tracker_; | 57 GoogleURLTracker* google_url_tracker_; |
64 | 58 |
65 DISALLOW_COPY_AND_ASSIGN(GoogleURLTrackerClient); | 59 DISALLOW_COPY_AND_ASSIGN(GoogleURLTrackerClient); |
66 }; | 60 }; |
67 | 61 |
68 #endif // COMPONENTS_GOOGLE_GOOGLE_URL_TRACKER_CLIENT_H_ | 62 #endif // COMPONENTS_GOOGLE_GOOGLE_URL_TRACKER_CLIENT_H_ |
OLD | NEW |