| 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 // Key and value names of the location of the RLZ shared state. | 5 // Key and value names of the location of the RLZ shared state. |
| 6 | 6 |
| 7 #ifndef RLZ_LIB_LIB_VALUES_H_ | 7 #ifndef RLZ_LIB_LIB_VALUES_H_ |
| 8 #define RLZ_LIB_LIB_VALUES_H_ | 8 #define RLZ_LIB_LIB_VALUES_H_ |
| 9 | 9 |
| 10 #include "base/basictypes.h" | 10 #include <stdint.h> |
| 11 |
| 11 #include "rlz/lib/rlz_enums.h" | 12 #include "rlz/lib/rlz_enums.h" |
| 12 | 13 |
| 13 namespace rlz_lib { | 14 namespace rlz_lib { |
| 14 | 15 |
| 15 // | 16 // |
| 16 // Ping CGI arguments: | 17 // Ping CGI arguments: |
| 17 // | 18 // |
| 18 // Events are reported as (without spaces): | 19 // Events are reported as (without spaces): |
| 19 // kEventsCgiVariable = <AccessPoint1><Event1> kEventsCgiSeparator <P2><E2>... | 20 // kEventsCgiVariable = <AccessPoint1><Event1> kEventsCgiSeparator <P2><E2>... |
| 20 // | 21 // |
| (...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 68 | 69 |
| 69 // | 70 // |
| 70 // Financial ping server information. | 71 // Financial ping server information. |
| 71 // | 72 // |
| 72 | 73 |
| 73 extern const char kFinancialPingPath[]; | 74 extern const char kFinancialPingPath[]; |
| 74 extern const char kFinancialServer[]; | 75 extern const char kFinancialServer[]; |
| 75 | 76 |
| 76 extern const int kFinancialPort; | 77 extern const int kFinancialPort; |
| 77 | 78 |
| 78 extern const int64 kEventsPingInterval; | 79 extern const int64_t kEventsPingInterval; |
| 79 extern const int64 kNoEventsPingInterval; | 80 extern const int64_t kNoEventsPingInterval; |
| 80 | 81 |
| 81 extern const char kFinancialPingUserAgent[]; | 82 extern const char kFinancialPingUserAgent[]; |
| 82 extern const char* kFinancialPingResponseObjects[]; | 83 extern const char* kFinancialPingResponseObjects[]; |
| 83 | 84 |
| 84 // | 85 // |
| 85 // The names for AccessPoints and Events that we use MUST be the same | 86 // The names for AccessPoints and Events that we use MUST be the same |
| 86 // as those used/understood by the server. | 87 // as those used/understood by the server. |
| 87 // | 88 // |
| 88 const char* GetAccessPointName(AccessPoint point); | 89 const char* GetAccessPointName(AccessPoint point); |
| 89 bool GetAccessPointFromName(const char* name, AccessPoint* point); | 90 bool GetAccessPointFromName(const char* name, AccessPoint* point); |
| 90 | 91 |
| 91 const char* GetEventName(Event event); | 92 const char* GetEventName(Event event); |
| 92 bool GetEventFromName(const char* name, Event* event); | 93 bool GetEventFromName(const char* name, Event* event); |
| 93 | 94 |
| 94 // The names for products are used only client-side. | 95 // The names for products are used only client-side. |
| 95 const char* GetProductName(Product product); | 96 const char* GetProductName(Product product); |
| 96 | 97 |
| 97 } // namespace rlz_lib | 98 } // namespace rlz_lib |
| 98 | 99 |
| 99 #endif // RLZ_LIB_LIB_VALUES_H_ | 100 #endif // RLZ_LIB_LIB_VALUES_H_ |
| OLD | NEW |