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