Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(255)

Side by Side Diff: components/gcm_driver/gcm_client_impl.h

Issue 745123002: Link GCM heartbeat with wake on wifi preference (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix missing include Created 6 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « components/gcm_driver/gcm_client.h ('k') | components/gcm_driver/gcm_client_impl.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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 void UpdateHeartbeatTimer(scoped_ptr<base::Timer> timer) 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
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_
OLDNEW
« no previous file with comments | « components/gcm_driver/gcm_client.h ('k') | components/gcm_driver/gcm_client_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698