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

Side by Side Diff: components/google/core/browser/google_url_tracker_client.h

Issue 333723002: Componentize google_util (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase + build fix Created 6 years, 6 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 | Annotate | Revision Log
OLDNEW
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
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_
OLDNEW
« no previous file with comments | « components/google/core/browser/google_url_tracker.cc ('k') | components/google/core/browser/google_util.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698