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

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

Issue 292983003: Use different Access Point on iOS for phone and tablet (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 7 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 | « chrome/browser/chromeos/login/login_utils_browsertest.cc ('k') | chrome/browser/rlz/rlz.cc » ('j') | no next file with comments »
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 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
53 base::TimeDelta delay); 53 base::TimeDelta delay);
54 54
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 rlz_lib::AccessPoint ChromeOmnibox();
64 static const rlz_lib::AccessPoint CHROME_HOME_PAGE;
65 #if !defined(OS_IOS) 64 #if !defined(OS_IOS)
66 static const rlz_lib::AccessPoint CHROME_APP_LIST; 65 static rlz_lib::AccessPoint ChromeHomePage();
66 static rlz_lib::AccessPoint ChromeAppList();
67 #endif 67 #endif
68 68
69 // Gets the HTTP header value that can be added to requests from the 69 // Gets the HTTP header value that can be added to requests from the
70 // specific access point. The string returned is of the form: 70 // specific access point. The string returned is of the form:
71 // 71 //
72 // "X-Rlz-String: <access-point-rlz>\r\n" 72 // "X-Rlz-String: <access-point-rlz>\r\n"
73 // 73 //
74 static std::string GetAccessPointHttpHeader(rlz_lib::AccessPoint point); 74 static std::string GetAccessPointHttpHeader(rlz_lib::AccessPoint point);
75 75
76 // Gets the RLZ value of the access point. 76 // Gets the RLZ value of the access point.
(...skipping 160 matching lines...) Expand 10 before | Expand all | Expand 10 after
237 237
238 // Minimum delay before sending financial ping after initialization. 238 // Minimum delay before sending financial ping after initialization.
239 base::TimeDelta min_init_delay_; 239 base::TimeDelta min_init_delay_;
240 240
241 DISALLOW_COPY_AND_ASSIGN(RLZTracker); 241 DISALLOW_COPY_AND_ASSIGN(RLZTracker);
242 }; 242 };
243 243
244 #endif // defined(ENABLE_RLZ) 244 #endif // defined(ENABLE_RLZ)
245 245
246 #endif // CHROME_BROWSER_RLZ_RLZ_H_ 246 #endif // CHROME_BROWSER_RLZ_RLZ_H_
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/login/login_utils_browsertest.cc ('k') | chrome/browser/rlz/rlz.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698