Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(181)

Side by Side Diff: chrome/browser/rlz/rlz.h

Issue 220193005: Add RLZ Access points for the app launcher. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 6 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | chrome/browser/rlz/rlz.cc » ('j') | chrome/browser/rlz/rlz.cc » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
55 // Records an RLZ event. Some events can be access point independent. 55 // Records an RLZ event. Some events can be access point independent.
56 // Returns false it the event could not be recorded. Requires write access 56 // Returns false it the event could not be recorded. Requires write access
57 // to the HKCU registry hive on windows. 57 // to the HKCU registry hive on windows.
58 static bool RecordProductEvent(rlz_lib::Product product, 58 static bool RecordProductEvent(rlz_lib::Product product,
59 rlz_lib::AccessPoint point, 59 rlz_lib::AccessPoint point,
60 rlz_lib::Event event_id); 60 rlz_lib::Event event_id);
61 61
62 // For the point parameter of RecordProductEvent. 62 // For the point parameter of RecordProductEvent.
63 static const rlz_lib::AccessPoint CHROME_OMNIBOX; 63 static const rlz_lib::AccessPoint CHROME_OMNIBOX;
64 static const rlz_lib::AccessPoint CHROME_HOME_PAGE; 64 static const rlz_lib::AccessPoint CHROME_HOME_PAGE;
65 static const rlz_lib::AccessPoint CHROME_APP_LIST;
65 66
66 // Gets the HTTP header value that can be added to requests from the 67 // Gets the HTTP header value that can be added to requests from the
67 // specific access point. The string returned is of the form: 68 // specific access point. The string returned is of the form:
68 // 69 //
69 // "X-Rlz-String: <access-point-rlz>\r\n" 70 // "X-Rlz-String: <access-point-rlz>\r\n"
70 // 71 //
71 static std::string GetAccessPointHttpHeader(rlz_lib::AccessPoint point); 72 static std::string GetAccessPointHttpHeader(rlz_lib::AccessPoint point);
72 73
73 // Gets the RLZ value of the access point. 74 // Gets the RLZ value of the access point.
74 // Returns false if the rlz string could not be obtained. In some cases 75 // Returns false if the rlz string could not be obtained. In some cases
(...skipping 149 matching lines...) Expand 10 before | Expand all | Expand 10 after
224 225
225 // Minimum delay before sending financial ping after initialization. 226 // Minimum delay before sending financial ping after initialization.
226 base::TimeDelta min_init_delay_; 227 base::TimeDelta min_init_delay_;
227 228
228 DISALLOW_COPY_AND_ASSIGN(RLZTracker); 229 DISALLOW_COPY_AND_ASSIGN(RLZTracker);
229 }; 230 };
230 231
231 #endif // defined(ENABLE_RLZ) 232 #endif // defined(ENABLE_RLZ)
232 233
233 #endif // CHROME_BROWSER_RLZ_RLZ_H_ 234 #endif // CHROME_BROWSER_RLZ_RLZ_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/rlz/rlz.cc » ('j') | chrome/browser/rlz/rlz.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698