OLD | NEW |
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 <string> | 8 #include <string> |
9 | 9 |
10 #include "base/gtest_prod_util.h" | 10 #include "base/gtest_prod_util.h" |
11 #include "base/scoped_ptr.h" | |
12 #include "chrome/common/net/url_fetcher.h" | 11 #include "chrome/common/net/url_fetcher.h" |
13 #include "chrome/common/notification_registrar.h" | 12 #include "chrome/common/notification_registrar.h" |
14 #include "googleurl/src/gurl.h" | 13 #include "googleurl/src/gurl.h" |
15 | 14 |
16 class PrefService; | 15 class PrefService; |
17 | 16 |
18 // This object is responsible for updating the Google URL at most once per run, | 17 // This object is responsible for updating the Google URL at most once per run, |
19 // and tracking the currently known value, which is also saved to a pref. | 18 // and tracking the currently known value, which is also saved to a pref. |
20 // | 19 // |
21 // Most consumers should only call GoogleURL(), which is guaranteed to | 20 // Most consumers should only call GoogleURL(), which is guaranteed to |
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
104 // bother to fetch anything. | 103 // bother to fetch anything. |
105 bool request_context_available_; | 104 bool request_context_available_; |
106 // True when the profile has been loaded and the | 105 // True when the profile has been loaded and the |
107 // default request context created, so we can | 106 // default request context created, so we can |
108 // actually do the fetch with the right data. | 107 // actually do the fetch with the right data. |
109 | 108 |
110 DISALLOW_COPY_AND_ASSIGN(GoogleURLTracker); | 109 DISALLOW_COPY_AND_ASSIGN(GoogleURLTracker); |
111 }; | 110 }; |
112 | 111 |
113 #endif // CHROME_BROWSER_GOOGLE_URL_TRACKER_H_ | 112 #endif // CHROME_BROWSER_GOOGLE_URL_TRACKER_H_ |
OLD | NEW |