OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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_RLZ_CHROME_RLZ_TRACKER_DELEGATE_H_ | 5 #ifndef CHROME_BROWSER_RLZ_CHROME_RLZ_TRACKER_DELEGATE_H_ |
6 #define CHROME_BROWSER_RLZ_CHROME_RLZ_TRACKER_DELEGATE_H_ | 6 #define CHROME_BROWSER_RLZ_CHROME_RLZ_TRACKER_DELEGATE_H_ |
7 | 7 |
8 #include "base/callback.h" | 8 #include "base/callback.h" |
9 #include "base/macros.h" | 9 #include "base/macros.h" |
10 #include "components/omnibox/browser/omnibox_event_global_tracker.h" | 10 #include "components/omnibox/browser/omnibox_event_global_tracker.h" |
(...skipping 18 matching lines...) Expand all Loading... |
29 static void RegisterProfilePrefs(user_prefs::PrefRegistrySyncable* registry); | 29 static void RegisterProfilePrefs(user_prefs::PrefRegistrySyncable* registry); |
30 | 30 |
31 static bool IsGoogleDefaultSearch(Profile* profile); | 31 static bool IsGoogleDefaultSearch(Profile* profile); |
32 static bool IsGoogleHomepage(Profile* profile); | 32 static bool IsGoogleHomepage(Profile* profile); |
33 static bool IsGoogleInStartpages(Profile* profile); | 33 static bool IsGoogleInStartpages(Profile* profile); |
34 | 34 |
35 private: | 35 private: |
36 // RLZTrackerDelegate implementation. | 36 // RLZTrackerDelegate implementation. |
37 void Cleanup() override; | 37 void Cleanup() override; |
38 bool IsOnUIThread() override; | 38 bool IsOnUIThread() override; |
39 base::SequencedWorkerPool* GetBlockingPool() override; | |
40 net::URLRequestContextGetter* GetRequestContext() override; | 39 net::URLRequestContextGetter* GetRequestContext() override; |
41 bool GetBrand(std::string* brand) override; | 40 bool GetBrand(std::string* brand) override; |
42 bool IsBrandOrganic(const std::string& brand) override; | 41 bool IsBrandOrganic(const std::string& brand) override; |
43 bool GetReactivationBrand(std::string* brand) override; | 42 bool GetReactivationBrand(std::string* brand) override; |
44 bool ShouldEnableZeroDelayForTesting() override; | 43 bool ShouldEnableZeroDelayForTesting() override; |
45 bool GetLanguage(base::string16* language) override; | 44 bool GetLanguage(base::string16* language) override; |
46 bool GetReferral(base::string16* referral) override; | 45 bool GetReferral(base::string16* referral) override; |
47 bool ClearReferral() override; | 46 bool ClearReferral() override; |
48 void SetOmniboxSearchCallback(const base::Closure& callback) override; | 47 void SetOmniboxSearchCallback(const base::Closure& callback) override; |
49 void SetHomepageSearchCallback(const base::Closure& callback) override; | 48 void SetHomepageSearchCallback(const base::Closure& callback) override; |
(...skipping 12 matching lines...) Expand all Loading... |
62 | 61 |
63 // Subscription for receiving callbacks that a URL was opened from the | 62 // Subscription for receiving callbacks that a URL was opened from the |
64 // omnibox. | 63 // omnibox. |
65 std::unique_ptr<base::CallbackList<void(OmniboxLog*)>::Subscription> | 64 std::unique_ptr<base::CallbackList<void(OmniboxLog*)>::Subscription> |
66 omnibox_url_opened_subscription_; | 65 omnibox_url_opened_subscription_; |
67 | 66 |
68 DISALLOW_COPY_AND_ASSIGN(ChromeRLZTrackerDelegate); | 67 DISALLOW_COPY_AND_ASSIGN(ChromeRLZTrackerDelegate); |
69 }; | 68 }; |
70 | 69 |
71 #endif // CHROME_BROWSER_RLZ_CHROME_RLZ_TRACKER_DELEGATE_H_ | 70 #endif // CHROME_BROWSER_RLZ_CHROME_RLZ_TRACKER_DELEGATE_H_ |
OLD | NEW |