| 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 183 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 194 bool first_run_; | 194 bool first_run_; |
| 195 bool send_ping_immediately_; | 195 bool send_ping_immediately_; |
| 196 bool is_google_default_search_; | 196 bool is_google_default_search_; |
| 197 bool is_google_homepage_; | 197 bool is_google_homepage_; |
| 198 bool is_google_in_startpages_; | 198 bool is_google_in_startpages_; |
| 199 | 199 |
| 200 // Unique sequence token so that tasks posted by RLZTracker are executed | 200 // Unique sequence token so that tasks posted by RLZTracker are executed |
| 201 // sequentially in the blocking pool. | 201 // sequentially in the blocking pool. |
| 202 base::SequencedWorkerPool::SequenceToken worker_pool_token_; | 202 base::SequencedWorkerPool::SequenceToken worker_pool_token_; |
| 203 | 203 |
| 204 // URLRequestContextGetter used by RLZ library. | |
| 205 net::URLRequestContextGetter* url_request_context_; | |
| 206 | |
| 207 // Keeps track if the RLZ tracker has already performed its delayed | 204 // Keeps track if the RLZ tracker has already performed its delayed |
| 208 // initialization. | 205 // initialization. |
| 209 bool already_ran_; | 206 bool already_ran_; |
| 210 | 207 |
| 211 // Keeps a cache of RLZ access point strings, since they rarely change. | 208 // Keeps a cache of RLZ access point strings, since they rarely change. |
| 212 // The cache must be protected by a lock since it may be accessed from | 209 // The cache must be protected by a lock since it may be accessed from |
| 213 // the UI thread for reading and the IO thread for reading and/or writing. | 210 // the UI thread for reading and the IO thread for reading and/or writing. |
| 214 base::Lock cache_lock_; | 211 base::Lock cache_lock_; |
| 215 std::map<rlz_lib::AccessPoint, string16> rlz_cache_; | 212 std::map<rlz_lib::AccessPoint, string16> rlz_cache_; |
| 216 | 213 |
| 217 // Keeps track of whether the omnibox or host page have been used. | 214 // Keeps track of whether the omnibox or host page have been used. |
| 218 bool omnibox_used_; | 215 bool omnibox_used_; |
| 219 bool homepage_used_; | 216 bool homepage_used_; |
| 220 | 217 |
| 221 // Main and (optionally) reactivation brand codes, assigned on UI thread. | 218 // Main and (optionally) reactivation brand codes, assigned on UI thread. |
| 222 std::string brand_; | 219 std::string brand_; |
| 223 std::string reactivation_brand_; | 220 std::string reactivation_brand_; |
| 224 | 221 |
| 225 content::NotificationRegistrar registrar_; | 222 content::NotificationRegistrar registrar_; |
| 226 | 223 |
| 227 // Minimum delay before sending financial ping after initialization. | 224 // Minimum delay before sending financial ping after initialization. |
| 228 base::TimeDelta min_init_delay_; | 225 base::TimeDelta min_init_delay_; |
| 229 | 226 |
| 230 DISALLOW_COPY_AND_ASSIGN(RLZTracker); | 227 DISALLOW_COPY_AND_ASSIGN(RLZTracker); |
| 231 }; | 228 }; |
| 232 | 229 |
| 233 #endif // defined(ENABLE_RLZ) | 230 #endif // defined(ENABLE_RLZ) |
| 234 | 231 |
| 235 #endif // CHROME_BROWSER_RLZ_RLZ_H_ | 232 #endif // CHROME_BROWSER_RLZ_RLZ_H_ |
| OLD | NEW |