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 #pragma once | 7 #pragma once |
8 | 8 |
9 #include "build/build_config.h" | 9 #include "build/build_config.h" |
10 | 10 |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
42 bool google_default_search, | 42 bool google_default_search, |
43 bool google_default_homepage); | 43 bool google_default_homepage); |
44 | 44 |
45 // Records an RLZ event. Some events can be access point independent. | 45 // Records an RLZ event. Some events can be access point independent. |
46 // Returns false it the event could not be recorded. Requires write access | 46 // Returns false it the event could not be recorded. Requires write access |
47 // to the HKCU registry hive on windows. | 47 // to the HKCU registry hive on windows. |
48 static bool RecordProductEvent(rlz_lib::Product product, | 48 static bool RecordProductEvent(rlz_lib::Product product, |
49 rlz_lib::AccessPoint point, | 49 rlz_lib::AccessPoint point, |
50 rlz_lib::Event event_id); | 50 rlz_lib::Event event_id); |
51 | 51 |
| 52 // For the point parameter of RecordProductEvent. |
| 53 static const rlz_lib::AccessPoint CHROME_OMNIBOX; |
| 54 static const rlz_lib::AccessPoint CHROME_HOME_PAGE; |
| 55 |
52 // Get the RLZ value of the access point. | 56 // Get the RLZ value of the access point. |
53 // Returns false if the rlz string could not be obtained. In some cases | 57 // Returns false if the rlz string could not be obtained. In some cases |
54 // an empty string can be returned which is not an error. | 58 // an empty string can be returned which is not an error. |
55 static bool GetAccessPointRlz(rlz_lib::AccessPoint point, string16* rlz); | 59 static bool GetAccessPointRlz(rlz_lib::AccessPoint point, string16* rlz); |
56 | 60 |
57 // Invoked during shutdown to clean up any state created by RLZTracker. | 61 // Invoked during shutdown to clean up any state created by RLZTracker. |
58 static void CleanupRlz(); | 62 static void CleanupRlz(); |
59 | 63 |
60 // This method is public for use by the Singleton class. | 64 // This method is public for use by the Singleton class. |
61 static RLZTracker* GetInstance(); | 65 static RLZTracker* GetInstance(); |
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
146 bool homepage_used_; | 150 bool homepage_used_; |
147 | 151 |
148 content::NotificationRegistrar registrar_; | 152 content::NotificationRegistrar registrar_; |
149 | 153 |
150 DISALLOW_COPY_AND_ASSIGN(RLZTracker); | 154 DISALLOW_COPY_AND_ASSIGN(RLZTracker); |
151 }; | 155 }; |
152 | 156 |
153 #endif // defined(OS_WIN) || defined(OS_MACOSX) | 157 #endif // defined(OS_WIN) || defined(OS_MACOSX) |
154 | 158 |
155 #endif // CHROME_BROWSER_RLZ_RLZ_H_ | 159 #endif // CHROME_BROWSER_RLZ_RLZ_H_ |
OLD | NEW |