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

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

Issue 301383003: Eliminate GoogleURLTracker's dependence on //chrome-level switches (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase 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
« no previous file with comments | « components/google/core/browser/google_switches.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 9
10 class GoogleURLTracker; 10 class GoogleURLTracker;
(...skipping 10 matching lines...) Expand all
21 } 21 }
22 22
23 // Enables or disables listening for navigation starts. OnNavigationPending 23 // Enables or disables listening for navigation starts. OnNavigationPending
24 // will be called for each navigation start if listening is enabled. 24 // will be called for each navigation start if listening is enabled.
25 virtual void SetListeningForNavigationStart(bool listen) = 0; 25 virtual void SetListeningForNavigationStart(bool listen) = 0;
26 26
27 // Returns whether or not the client is currently listening for navigation 27 // Returns whether or not the client is currently listening for navigation
28 // starts. 28 // starts.
29 virtual bool IsListeningForNavigationStart() = 0; 29 virtual bool IsListeningForNavigationStart() = 0;
30 30
31 // Returns whether background networking is enabled.
32 virtual bool IsBackgroundNetworkingEnabled() = 0;
33
31 protected: 34 protected:
32 GoogleURLTracker* google_url_tracker() { return google_url_tracker_; } 35 GoogleURLTracker* google_url_tracker() { return google_url_tracker_; }
33 36
34 private: 37 private:
35 GoogleURLTracker* google_url_tracker_; 38 GoogleURLTracker* google_url_tracker_;
36 39
37 DISALLOW_COPY_AND_ASSIGN(GoogleURLTrackerClient); 40 DISALLOW_COPY_AND_ASSIGN(GoogleURLTrackerClient);
38 }; 41 };
39 42
40 #endif // COMPONENTS_GOOGLE_GOOGLE_URL_TRACKER_CLIENT_H_ 43 #endif // COMPONENTS_GOOGLE_GOOGLE_URL_TRACKER_CLIENT_H_
OLDNEW
« no previous file with comments | « components/google/core/browser/google_switches.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698