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

Side by Side Diff: chrome/browser/google_url_tracker.h

Issue 20378: Reduce the amount of included header files. Vast change like in "Oh God! This... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 11 years, 10 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 (c) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2008 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_URL_TRACKER_H_ 5 #ifndef CHROME_BROWSER_GOOGLE_URL_TRACKER_H_
6 #define CHROME_BROWSER_GOOGLE_URL_TRACKER_H_ 6 #define CHROME_BROWSER_GOOGLE_URL_TRACKER_H_
7 7
8 #include "chrome/browser/net/url_fetcher.h" 8 #include "chrome/browser/net/url_fetcher.h"
9 #include "chrome/common/notification_observer.h" 9 #include "chrome/common/notification_observer.h"
10 #include "googleurl/src/gurl.h"
10 11
11 class PrefService; 12 class PrefService;
12 13
13 // This object is responsible for updating the Google URL at most once per run, 14 // This object is responsible for updating the Google URL at most once per run,
14 // and tracking the currently known value, which is also saved to a pref. 15 // and tracking the currently known value, which is also saved to a pref.
15 // 16 //
16 // Most consumers should only call GoogleURL(), which is guaranteed to 17 // Most consumers should only call GoogleURL(), which is guaranteed to
17 // synchronously return a value at all times (even during startup or in unittest 18 // synchronously return a value at all times (even during startup or in unittest
18 // mode). Consumers who need to be notified when things change should listen to 19 // mode). Consumers who need to be notified when things change should listen to
19 // the notification service for NOTIFY_GOOGLE_URL_UPDATED, and call GoogleURL() 20 // the notification service for NOTIFY_GOOGLE_URL_UPDATED, and call GoogleURL()
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after
99 bool request_context_available_; 100 bool request_context_available_;
100 // True when the profile has been loaded and the 101 // True when the profile has been loaded and the
101 // default request context created, so we can 102 // default request context created, so we can
102 // actually do the fetch with the right data. 103 // actually do the fetch with the right data.
103 104
104 DISALLOW_COPY_AND_ASSIGN(GoogleURLTracker); 105 DISALLOW_COPY_AND_ASSIGN(GoogleURLTracker);
105 }; 106 };
106 107
107 #endif // CHROME_BROWSER_GOOGLE_URL_TRACKER_H_ 108 #endif // CHROME_BROWSER_GOOGLE_URL_TRACKER_H_
108 109
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698