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 CHROME_BROWSER_GOOGLE_CHROME_GOOGLE_URL_TRACKER_CLIENT_H_ | 5 #ifndef CHROME_BROWSER_GOOGLE_CHROME_GOOGLE_URL_TRACKER_CLIENT_H_ |
6 #define CHROME_BROWSER_GOOGLE_CHROME_GOOGLE_URL_TRACKER_CLIENT_H_ | 6 #define CHROME_BROWSER_GOOGLE_CHROME_GOOGLE_URL_TRACKER_CLIENT_H_ |
7 | 7 |
| 8 #include "base/macros.h" |
8 #include "components/google/core/browser/google_url_tracker_client.h" | 9 #include "components/google/core/browser/google_url_tracker_client.h" |
9 | 10 |
10 class Profile; | 11 class Profile; |
11 | 12 |
12 class ChromeGoogleURLTrackerClient : public GoogleURLTrackerClient { | 13 class ChromeGoogleURLTrackerClient : public GoogleURLTrackerClient { |
13 public: | 14 public: |
14 explicit ChromeGoogleURLTrackerClient(Profile* profile); | 15 explicit ChromeGoogleURLTrackerClient(Profile* profile); |
15 ~ChromeGoogleURLTrackerClient() override; | 16 ~ChromeGoogleURLTrackerClient() override; |
16 | 17 |
17 // GoogleURLTrackerClient: | 18 // GoogleURLTrackerClient: |
18 bool IsBackgroundNetworkingEnabled() override; | 19 bool IsBackgroundNetworkingEnabled() override; |
19 PrefService* GetPrefs() override; | 20 PrefService* GetPrefs() override; |
20 net::URLRequestContextGetter* GetRequestContext() override; | 21 net::URLRequestContextGetter* GetRequestContext() override; |
21 | 22 |
22 private: | 23 private: |
23 Profile* profile_; | 24 Profile* profile_; |
24 | 25 |
25 DISALLOW_COPY_AND_ASSIGN(ChromeGoogleURLTrackerClient); | 26 DISALLOW_COPY_AND_ASSIGN(ChromeGoogleURLTrackerClient); |
26 }; | 27 }; |
27 | 28 |
28 #endif // CHROME_BROWSER_GOOGLE_CHROME_GOOGLE_URL_TRACKER_CLIENT_H_ | 29 #endif // CHROME_BROWSER_GOOGLE_CHROME_GOOGLE_URL_TRACKER_CLIENT_H_ |
OLD | NEW |