| 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_IMPL_H_ | 5 #ifndef COMPONENTS_GCM_DRIVER_GCM_CLIENT_IMPL_H_ |
| 6 #define COMPONENTS_GCM_DRIVER_GCM_CLIENT_IMPL_H_ | 6 #define COMPONENTS_GCM_DRIVER_GCM_CLIENT_IMPL_H_ |
| 7 | 7 |
| 8 #include <map> | 8 #include <map> |
| 9 #include <set> | 9 #include <set> |
| 10 #include <string> | 10 #include <string> |
| (...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 96 virtual void CheckOut() OVERRIDE; | 96 virtual void CheckOut() OVERRIDE; |
| 97 virtual void Register(const std::string& app_id, | 97 virtual void Register(const std::string& app_id, |
| 98 const std::vector<std::string>& sender_ids) OVERRIDE; | 98 const std::vector<std::string>& sender_ids) OVERRIDE; |
| 99 virtual void Unregister(const std::string& app_id) OVERRIDE; | 99 virtual void Unregister(const std::string& app_id) OVERRIDE; |
| 100 virtual void Send(const std::string& app_id, | 100 virtual void Send(const std::string& app_id, |
| 101 const std::string& receiver_id, | 101 const std::string& receiver_id, |
| 102 const OutgoingMessage& message) OVERRIDE; | 102 const OutgoingMessage& message) OVERRIDE; |
| 103 virtual void SetRecording(bool recording) OVERRIDE; | 103 virtual void SetRecording(bool recording) OVERRIDE; |
| 104 virtual void ClearActivityLogs() OVERRIDE; | 104 virtual void ClearActivityLogs() OVERRIDE; |
| 105 virtual GCMStatistics GetStatistics() const OVERRIDE; | 105 virtual GCMStatistics GetStatistics() const OVERRIDE; |
| 106 virtual void SetAccountsForCheckin( | 106 virtual void SetAccountTokens( |
| 107 const std::map<std::string, std::string>& account_tokens) OVERRIDE; | 107 const std::vector<AccountTokenInfo>& account_tokens) OVERRIDE; |
| 108 virtual void UpdateAccountMapping( | 108 virtual void UpdateAccountMapping( |
| 109 const AccountMapping& account_mapping) OVERRIDE; | 109 const AccountMapping& account_mapping) OVERRIDE; |
| 110 virtual void RemoveAccountMapping(const std::string& account_id) OVERRIDE; | 110 virtual void RemoveAccountMapping(const std::string& account_id) OVERRIDE; |
| 111 | 111 |
| 112 // GCMStatsRecorder::Delegate implemenation. | 112 // GCMStatsRecorder::Delegate implemenation. |
| 113 virtual void OnActivityRecorded() OVERRIDE; | 113 virtual void OnActivityRecorded() OVERRIDE; |
| 114 | 114 |
| 115 // ConnectionFactory::ConnectionListener implementation. | 115 // ConnectionFactory::ConnectionListener implementation. |
| 116 virtual void OnConnected(const GURL& current_server, | 116 virtual void OnConnected(const GURL& current_server, |
| 117 const net::IPEndPoint& ip_endpoint) OVERRIDE; | 117 const net::IPEndPoint& ip_endpoint) OVERRIDE; |
| (...skipping 201 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 319 | 319 |
| 320 // Factory for creating references in callbacks. | 320 // Factory for creating references in callbacks. |
| 321 base::WeakPtrFactory<GCMClientImpl> weak_ptr_factory_; | 321 base::WeakPtrFactory<GCMClientImpl> weak_ptr_factory_; |
| 322 | 322 |
| 323 DISALLOW_COPY_AND_ASSIGN(GCMClientImpl); | 323 DISALLOW_COPY_AND_ASSIGN(GCMClientImpl); |
| 324 }; | 324 }; |
| 325 | 325 |
| 326 } // namespace gcm | 326 } // namespace gcm |
| 327 | 327 |
| 328 #endif // COMPONENTS_GCM_DRIVER_GCM_CLIENT_IMPL_H_ | 328 #endif // COMPONENTS_GCM_DRIVER_GCM_CLIENT_IMPL_H_ |
| OLD | NEW |