| 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 COMPONENTS_RLZ_RLZ_TRACKER_H_ | 5 #ifndef COMPONENTS_RLZ_RLZ_TRACKER_H_ |
| 6 #define COMPONENTS_RLZ_RLZ_TRACKER_H_ | 6 #define COMPONENTS_RLZ_RLZ_TRACKER_H_ |
| 7 | 7 |
| 8 #include <map> | 8 #include <map> |
| 9 #include <memory> | 9 #include <memory> |
| 10 #include <string> | 10 #include <string> |
| 11 | 11 |
| 12 #include "base/macros.h" | 12 #include "base/macros.h" |
| 13 #include "base/memory/singleton.h" | 13 #include "base/memory/singleton.h" |
| 14 #include "base/strings/string16.h" | 14 #include "base/strings/string16.h" |
| 15 #include "base/threading/sequenced_worker_pool.h" | 15 #include "base/threading/sequenced_worker_pool.h" |
| 16 #include "base/time/time.h" | 16 #include "base/time/time.h" |
| 17 #include "build/build_config.h" | 17 #include "build/build_config.h" |
| 18 #include "rlz/lib/rlz_lib.h" | 18 #include "rlz/lib/rlz_lib.h" |
| 19 | 19 |
| 20 namespace net { | |
| 21 class URLRequestContextGetter; | |
| 22 } | |
| 23 | |
| 24 namespace rlz { | 20 namespace rlz { |
| 25 | 21 |
| 26 class RLZTrackerDelegate; | 22 class RLZTrackerDelegate; |
| 27 | 23 |
| 28 // RLZ is a library which is used to measure distribution scenarios. | 24 // RLZ is a library which is used to measure distribution scenarios. |
| 29 // Its job is to record certain lifetime events in the registry and to send | 25 // Its job is to record certain lifetime events in the registry and to send |
| 30 // them encoded as a compact string at most twice. The sent data does | 26 // them encoded as a compact string at most twice. The sent data does |
| 31 // not contain information that can be used to identify a user or to infer | 27 // not contain information that can be used to identify a user or to infer |
| 32 // browsing habits. The API in this file is a wrapper around the open source | 28 // browsing habits. The API in this file is a wrapper around the open source |
| 33 // RLZ library which can be found at http://code.google.com/p/rlz. | 29 // RLZ library which can be found at http://code.google.com/p/rlz. |
| (...skipping 200 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 234 | 230 |
| 235 // Minimum delay before sending financial ping after initialization. | 231 // Minimum delay before sending financial ping after initialization. |
| 236 base::TimeDelta min_init_delay_; | 232 base::TimeDelta min_init_delay_; |
| 237 | 233 |
| 238 DISALLOW_COPY_AND_ASSIGN(RLZTracker); | 234 DISALLOW_COPY_AND_ASSIGN(RLZTracker); |
| 239 }; | 235 }; |
| 240 | 236 |
| 241 } // namespace rlz | 237 } // namespace rlz |
| 242 | 238 |
| 243 #endif // COMPONENTS_RLZ_RLZ_TRACKER_H_ | 239 #endif // COMPONENTS_RLZ_RLZ_TRACKER_H_ |
| OLD | NEW |