| 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 #include "chrome/browser/url_fetcher.h" | 5 #include "chrome/browser/net/url_fetcher.h" |
| 6 #include "chrome/common/notification_service.h" | 6 #include "chrome/common/notification_service.h" |
| 7 | 7 |
| 8 class PrefService; | 8 class PrefService; |
| 9 | 9 |
| 10 // This object is responsible for updating the Google URL at most once per run, | 10 // This object is responsible for updating the Google URL at most once per run, |
| 11 // and tracking the currently known value, which is also saved to a pref. | 11 // and tracking the currently known value, which is also saved to a pref. |
| 12 // | 12 // |
| 13 // Most consumers should only call GoogleURL(), which is guaranteed to | 13 // Most consumers should only call GoogleURL(), which is guaranteed to |
| 14 // synchronously return a value at all times (even during startup or in unittest | 14 // synchronously return a value at all times (even during startup or in unittest |
| 15 // mode). Consumers who need to be notified when things change should listen to | 15 // mode). Consumers who need to be notified when things change should listen to |
| (...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 94 // updated URL. If this is never set, we won't | 94 // updated URL. If this is never set, we won't |
| 95 // bother to fetch anything. | 95 // bother to fetch anything. |
| 96 bool request_context_available_; | 96 bool request_context_available_; |
| 97 // True when the profile has been loaded and the | 97 // True when the profile has been loaded and the |
| 98 // default request context created, so we can | 98 // default request context created, so we can |
| 99 // actually do the fetch with the right data. | 99 // actually do the fetch with the right data. |
| 100 | 100 |
| 101 DISALLOW_EVIL_CONSTRUCTORS(GoogleURLTracker); | 101 DISALLOW_EVIL_CONSTRUCTORS(GoogleURLTracker); |
| 102 }; | 102 }; |
| 103 | 103 |
| OLD | NEW |