| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_RLZ_RLZ_H_ | 5 #ifndef CHROME_BROWSER_RLZ_RLZ_H_ |
| 6 #define CHROME_BROWSER_RLZ_RLZ_H_ | 6 #define CHROME_BROWSER_RLZ_RLZ_H_ |
| 7 | 7 |
| 8 #include "build/build_config.h" | 8 #include "build/build_config.h" |
| 9 | 9 |
| 10 #if defined(ENABLE_RLZ) | 10 #if defined(ENABLE_RLZ) |
| (...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 113 bool is_google_homepage, | 113 bool is_google_homepage, |
| 114 bool is_google_in_startpages); | 114 bool is_google_in_startpages); |
| 115 | 115 |
| 116 // Performs initialization of RLZ tracker that is purposefully delayed so | 116 // Performs initialization of RLZ tracker that is purposefully delayed so |
| 117 // that it does not interfere with chrome startup time. | 117 // that it does not interfere with chrome startup time. |
| 118 virtual void DelayedInit(); | 118 virtual void DelayedInit(); |
| 119 | 119 |
| 120 // content::NotificationObserver implementation: | 120 // content::NotificationObserver implementation: |
| 121 virtual void Observe(int type, | 121 virtual void Observe(int type, |
| 122 const content::NotificationSource& source, | 122 const content::NotificationSource& source, |
| 123 const content::NotificationDetails& details) OVERRIDE; | 123 const content::NotificationDetails& details) override; |
| 124 | 124 |
| 125 // Used by test code to override the default RLZTracker instance returned | 125 // Used by test code to override the default RLZTracker instance returned |
| 126 // by GetInstance(). | 126 // by GetInstance(). |
| 127 void set_tracker(RLZTracker* tracker) { | 127 void set_tracker(RLZTracker* tracker) { |
| 128 tracker_ = tracker; | 128 tracker_ = tracker; |
| 129 } | 129 } |
| 130 | 130 |
| 131 // Sends the financial ping to the RLZ servers and invalidates the RLZ string | 131 // Sends the financial ping to the RLZ servers and invalidates the RLZ string |
| 132 // cache since the response from the RLZ server may have changed then. | 132 // cache since the response from the RLZ server may have changed then. |
| 133 // Protected so that its accessible from tests. | 133 // Protected so that its accessible from tests. |
| (...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 237 | 237 |
| 238 // Minimum delay before sending financial ping after initialization. | 238 // Minimum delay before sending financial ping after initialization. |
| 239 base::TimeDelta min_init_delay_; | 239 base::TimeDelta min_init_delay_; |
| 240 | 240 |
| 241 DISALLOW_COPY_AND_ASSIGN(RLZTracker); | 241 DISALLOW_COPY_AND_ASSIGN(RLZTracker); |
| 242 }; | 242 }; |
| 243 | 243 |
| 244 #endif // defined(ENABLE_RLZ) | 244 #endif // defined(ENABLE_RLZ) |
| 245 | 245 |
| 246 #endif // CHROME_BROWSER_RLZ_RLZ_H_ | 246 #endif // CHROME_BROWSER_RLZ_RLZ_H_ |
| OLD | NEW |