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> |
| 9 |
8 #include <map> | 10 #include <map> |
9 #include <string> | 11 #include <string> |
10 #include <vector> | 12 #include <vector> |
11 | 13 |
12 #include "base/basictypes.h" | |
13 #include "base/memory/linked_ptr.h" | 14 #include "base/memory/linked_ptr.h" |
14 #include "base/memory/scoped_ptr.h" | 15 #include "base/memory/scoped_ptr.h" |
15 #include "components/gcm_driver/common/gcm_messages.h" | 16 #include "components/gcm_driver/common/gcm_messages.h" |
16 #include "components/gcm_driver/gcm_activity.h" | 17 #include "components/gcm_driver/gcm_activity.h" |
17 #include "components/gcm_driver/registration_info.h" | 18 #include "components/gcm_driver/registration_info.h" |
18 | 19 |
19 template <class T> class scoped_refptr; | 20 template <class T> class scoped_refptr; |
20 | 21 |
21 class GURL; | 22 class GURL; |
22 | 23 |
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
112 struct GCMStatistics { | 113 struct GCMStatistics { |
113 public: | 114 public: |
114 GCMStatistics(); | 115 GCMStatistics(); |
115 ~GCMStatistics(); | 116 ~GCMStatistics(); |
116 | 117 |
117 bool is_recording; | 118 bool is_recording; |
118 bool gcm_client_created; | 119 bool gcm_client_created; |
119 std::string gcm_client_state; | 120 std::string gcm_client_state; |
120 bool connection_client_created; | 121 bool connection_client_created; |
121 std::string connection_state; | 122 std::string connection_state; |
122 uint64 android_id; | 123 uint64_t android_id; |
123 std::vector<std::string> registered_app_ids; | 124 std::vector<std::string> registered_app_ids; |
124 int send_queue_size; | 125 int send_queue_size; |
125 int resend_queue_size; | 126 int resend_queue_size; |
126 | 127 |
127 RecordedActivities recorded_activities; | 128 RecordedActivities recorded_activities; |
128 }; | 129 }; |
129 | 130 |
130 // Information about account. | 131 // Information about account. |
131 struct AccountTokenInfo { | 132 struct AccountTokenInfo { |
132 std::string account_id; | 133 std::string account_id; |
(...skipping 181 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
314 // to be set, and allows that component to later revoke the setting. It should | 315 // to be set, and allows that component to later revoke the setting. It should |
315 // be unique. | 316 // be unique. |
316 virtual void AddHeartbeatInterval(const std::string& scope, | 317 virtual void AddHeartbeatInterval(const std::string& scope, |
317 int interval_ms) = 0; | 318 int interval_ms) = 0; |
318 virtual void RemoveHeartbeatInterval(const std::string& scope) = 0; | 319 virtual void RemoveHeartbeatInterval(const std::string& scope) = 0; |
319 }; | 320 }; |
320 | 321 |
321 } // namespace gcm | 322 } // namespace gcm |
322 | 323 |
323 #endif // COMPONENTS_GCM_DRIVER_GCM_CLIENT_H_ | 324 #endif // COMPONENTS_GCM_DRIVER_GCM_CLIENT_H_ |
OLD | NEW |