OLD | NEW |
---|---|
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 COMPONENTS_GCM_DRIVER_GCM_CLIENT_H_ | 5 #ifndef COMPONENTS_GCM_DRIVER_GCM_CLIENT_H_ |
6 #define COMPONENTS_GCM_DRIVER_GCM_CLIENT_H_ | 6 #define COMPONENTS_GCM_DRIVER_GCM_CLIENT_H_ |
7 | 7 |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include <map> | 10 #include <map> |
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
91 CHANNEL_UNKNOWN | 91 CHANNEL_UNKNOWN |
92 }; | 92 }; |
93 | 93 |
94 struct ChromeBuildInfo { | 94 struct ChromeBuildInfo { |
95 ChromeBuildInfo(); | 95 ChromeBuildInfo(); |
96 ~ChromeBuildInfo(); | 96 ~ChromeBuildInfo(); |
97 | 97 |
98 ChromePlatform platform; | 98 ChromePlatform platform; |
99 ChromeChannel channel; | 99 ChromeChannel channel; |
100 std::string version; | 100 std::string version; |
101 std::string product_category_for_subtypes; | |
jianli
2016/08/08 22:11:51
gcm_category
johnme
2016/08/10 13:09:55
It's not just any category, it's specifically the
| |
101 }; | 102 }; |
102 | 103 |
103 // Detailed information of the Send Error event. | 104 // Detailed information of the Send Error event. |
104 struct SendErrorDetails { | 105 struct SendErrorDetails { |
105 SendErrorDetails(); | 106 SendErrorDetails(); |
106 SendErrorDetails(const SendErrorDetails& other); | 107 SendErrorDetails(const SendErrorDetails& other); |
107 ~SendErrorDetails(); | 108 ~SendErrorDetails(); |
108 | 109 |
109 std::string message_id; | 110 std::string message_id; |
110 MessageData additional_data; | 111 MessageData additional_data; |
(...skipping 212 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
323 // to be set, and allows that component to later revoke the setting. It should | 324 // to be set, and allows that component to later revoke the setting. It should |
324 // be unique. | 325 // be unique. |
325 virtual void AddHeartbeatInterval(const std::string& scope, | 326 virtual void AddHeartbeatInterval(const std::string& scope, |
326 int interval_ms) = 0; | 327 int interval_ms) = 0; |
327 virtual void RemoveHeartbeatInterval(const std::string& scope) = 0; | 328 virtual void RemoveHeartbeatInterval(const std::string& scope) = 0; |
328 }; | 329 }; |
329 | 330 |
330 } // namespace gcm | 331 } // namespace gcm |
331 | 332 |
332 #endif // COMPONENTS_GCM_DRIVER_GCM_CLIENT_H_ | 333 #endif // COMPONENTS_GCM_DRIVER_GCM_CLIENT_H_ |
OLD | NEW |