| 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 26 matching lines...) Expand all Loading... |
| 37 // Returns whether background networking is enabled. | 37 // Returns whether background networking is enabled. |
| 38 virtual bool IsBackgroundNetworkingEnabled() = 0; | 38 virtual bool IsBackgroundNetworkingEnabled() = 0; |
| 39 | 39 |
| 40 // Returns the PrefService that the GoogleURLTracker should use. | 40 // Returns the PrefService that the GoogleURLTracker should use. |
| 41 virtual PrefService* GetPrefs() = 0; | 41 virtual PrefService* GetPrefs() = 0; |
| 42 | 42 |
| 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. | |
| 48 // TODO(blundell): Eliminate this method in favor of having callers call | |
| 49 // google_util::IsGoogleDomainURL() directly once google_util is | |
| 50 // componentized. crbug.com/381088 | |
| 51 virtual bool IsGoogleDomainURL(const GURL& url) = 0; | |
| 52 | |
| 53 protected: | 47 protected: |
| 54 GoogleURLTracker* google_url_tracker() { return google_url_tracker_; } | 48 GoogleURLTracker* google_url_tracker() { return google_url_tracker_; } |
| 55 | 49 |
| 56 private: | 50 private: |
| 57 GoogleURLTracker* google_url_tracker_; | 51 GoogleURLTracker* google_url_tracker_; |
| 58 | 52 |
| 59 DISALLOW_COPY_AND_ASSIGN(GoogleURLTrackerClient); | 53 DISALLOW_COPY_AND_ASSIGN(GoogleURLTrackerClient); |
| 60 }; | 54 }; |
| 61 | 55 |
| 62 #endif // COMPONENTS_GOOGLE_GOOGLE_URL_TRACKER_CLIENT_H_ | 56 #endif // COMPONENTS_GOOGLE_GOOGLE_URL_TRACKER_CLIENT_H_ |
| OLD | NEW |