| 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 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 101 const std::string& receiver_id, | 101 const std::string& receiver_id, |
| 102 const OutgoingMessage& message) override; | 102 const OutgoingMessage& message) override; |
| 103 void SetRecording(bool recording) override; | 103 void SetRecording(bool recording) override; |
| 104 void ClearActivityLogs() override; | 104 void ClearActivityLogs() override; |
| 105 GCMStatistics GetStatistics() const override; | 105 GCMStatistics GetStatistics() const override; |
| 106 void SetAccountTokens( | 106 void SetAccountTokens( |
| 107 const std::vector<AccountTokenInfo>& account_tokens) override; | 107 const std::vector<AccountTokenInfo>& account_tokens) override; |
| 108 void UpdateAccountMapping(const AccountMapping& account_mapping) override; | 108 void UpdateAccountMapping(const AccountMapping& account_mapping) override; |
| 109 void RemoveAccountMapping(const std::string& account_id) override; | 109 void RemoveAccountMapping(const std::string& account_id) override; |
| 110 void SetLastTokenFetchTime(const base::Time& time) override; | 110 void SetLastTokenFetchTime(const base::Time& time) override; |
| 111 MCSClient* GetMCSClient() const override; |
| 111 | 112 |
| 112 // GCMStatsRecorder::Delegate implemenation. | 113 // GCMStatsRecorder::Delegate implemenation. |
| 113 void OnActivityRecorded() override; | 114 void OnActivityRecorded() override; |
| 114 | 115 |
| 115 // ConnectionFactory::ConnectionListener implementation. | 116 // ConnectionFactory::ConnectionListener implementation. |
| 116 void OnConnected(const GURL& current_server, | 117 void OnConnected(const GURL& current_server, |
| 117 const net::IPEndPoint& ip_endpoint) override; | 118 const net::IPEndPoint& ip_endpoint) override; |
| 118 void OnDisconnected() override; | 119 void OnDisconnected() override; |
| 119 | 120 |
| 120 private: | 121 private: |
| (...skipping 202 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 323 | 324 |
| 324 // Factory for creating references in callbacks. | 325 // Factory for creating references in callbacks. |
| 325 base::WeakPtrFactory<GCMClientImpl> weak_ptr_factory_; | 326 base::WeakPtrFactory<GCMClientImpl> weak_ptr_factory_; |
| 326 | 327 |
| 327 DISALLOW_COPY_AND_ASSIGN(GCMClientImpl); | 328 DISALLOW_COPY_AND_ASSIGN(GCMClientImpl); |
| 328 }; | 329 }; |
| 329 | 330 |
| 330 } // namespace gcm | 331 } // namespace gcm |
| 331 | 332 |
| 332 #endif // COMPONENTS_GCM_DRIVER_GCM_CLIENT_IMPL_H_ | 333 #endif // COMPONENTS_GCM_DRIVER_GCM_CLIENT_IMPL_H_ |
| OLD | NEW |