Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(142)

Side by Side Diff: chrome/browser/rlz/chrome_rlz_tracker_delegate.h

Issue 2949263003: Remove call to GetBlockingPool in RLZ (Closed)
Patch Set: Use PostDelayedTaskWithTraits Created 3 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | chrome/browser/rlz/chrome_rlz_tracker_delegate.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/rlz/chrome_rlz_tracker_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698