OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 #pragma once | 7 #pragma once |
8 | 8 |
9 #include "build/build_config.h" | 9 #include "build/build_config.h" |
10 | 10 |
11 #if defined(OS_WIN) | 11 #if defined(OS_WIN) |
12 | 12 |
13 #include <map> | 13 #include <map> |
14 #include <string> | 14 #include <string> |
15 | 15 |
16 #include "base/basictypes.h" | 16 #include "base/basictypes.h" |
17 #include "base/memory/ref_counted.h" | |
18 #include "base/memory/singleton.h" | 17 #include "base/memory/singleton.h" |
19 #include "base/string16.h" | 18 #include "base/string16.h" |
20 #include "base/task.h" | |
21 #include "content/public/browser/notification_observer.h" | 19 #include "content/public/browser/notification_observer.h" |
22 #include "content/public/browser/notification_registrar.h" | 20 #include "content/public/browser/notification_registrar.h" |
23 #include "rlz/win/lib/rlz_lib.h" | 21 #include "rlz/win/lib/rlz_lib.h" |
24 | 22 |
25 // RLZ is a library which is used to measure distribution scenarios. | 23 // RLZ is a library which is used to measure distribution scenarios. |
26 // Its job is to record certain lifetime events in the registry and to send | 24 // Its job is to record certain lifetime events in the registry and to send |
27 // them encoded as a compact string at most twice. The sent data does | 25 // them encoded as a compact string at most twice. The sent data does |
28 // not contain information that can be used to identify a user or to infer | 26 // not contain information that can be used to identify a user or to infer |
29 // browsing habits. The API in this file is a wrapper around the open source | 27 // browsing habits. The API in this file is a wrapper around the open source |
30 // RLZ library which can be found at http://code.google.com/p/rlz. | 28 // RLZ library which can be found at http://code.google.com/p/rlz. |
(...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
143 | 141 |
144 // Keeps track of whether the omnibox or host page have been used. | 142 // Keeps track of whether the omnibox or host page have been used. |
145 bool omnibox_used_; | 143 bool omnibox_used_; |
146 bool homepage_used_; | 144 bool homepage_used_; |
147 | 145 |
148 content::NotificationRegistrar registrar_; | 146 content::NotificationRegistrar registrar_; |
149 | 147 |
150 DISALLOW_COPY_AND_ASSIGN(RLZTracker); | 148 DISALLOW_COPY_AND_ASSIGN(RLZTracker); |
151 }; | 149 }; |
152 | 150 |
153 // The RLZTracker is a singleton object that outlives any runnable tasks | |
154 // that will be queued up. | |
155 DISABLE_RUNNABLE_METHOD_REFCOUNT(RLZTracker); | |
156 | |
157 #endif // defined(OS_WIN) | 151 #endif // defined(OS_WIN) |
158 | 152 |
159 #endif // CHROME_BROWSER_RLZ_RLZ_H_ | 153 #endif // CHROME_BROWSER_RLZ_RLZ_H_ |
OLD | NEW |