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

Side by Side Diff: google_apis/gcm/gcm_client_impl.h

Issue 183013007: [GCM] Stop/restart GCM when the state is forced off/on (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Patch to land Created 6 years, 9 months 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 | Annotate | Revision Log
« no previous file with comments | « google_apis/gcm/gcm_client.h ('k') | google_apis/gcm/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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 GOOGLE_APIS_GCM_GCM_CLIENT_IMPL_H_ 5 #ifndef GOOGLE_APIS_GCM_GCM_CLIENT_IMPL_H_
6 #define GOOGLE_APIS_GCM_GCM_CLIENT_IMPL_H_ 6 #define GOOGLE_APIS_GCM_GCM_CLIENT_IMPL_H_
7 7
8 #include <map> 8 #include <map>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
49 // Overridden from GCMClient: 49 // Overridden from GCMClient:
50 virtual void Initialize( 50 virtual void Initialize(
51 const checkin_proto::ChromeBuildProto& chrome_build_proto, 51 const checkin_proto::ChromeBuildProto& chrome_build_proto,
52 const base::FilePath& store_path, 52 const base::FilePath& store_path,
53 const std::vector<std::string>& account_ids, 53 const std::vector<std::string>& account_ids,
54 const scoped_refptr<base::SequencedTaskRunner>& blocking_task_runner, 54 const scoped_refptr<base::SequencedTaskRunner>& blocking_task_runner,
55 const scoped_refptr<net::URLRequestContextGetter>& 55 const scoped_refptr<net::URLRequestContextGetter>&
56 url_request_context_getter, 56 url_request_context_getter,
57 Delegate* delegate) OVERRIDE; 57 Delegate* delegate) OVERRIDE;
58 virtual void Load() OVERRIDE; 58 virtual void Load() OVERRIDE;
59 virtual void Stop() OVERRIDE;
59 virtual void CheckOut() OVERRIDE; 60 virtual void CheckOut() OVERRIDE;
60 virtual void Register(const std::string& app_id, 61 virtual void Register(const std::string& app_id,
61 const std::string& cert, 62 const std::string& cert,
62 const std::vector<std::string>& sender_ids) OVERRIDE; 63 const std::vector<std::string>& sender_ids) OVERRIDE;
63 virtual void Unregister(const std::string& app_id) OVERRIDE; 64 virtual void Unregister(const std::string& app_id) OVERRIDE;
64 virtual void Send(const std::string& app_id, 65 virtual void Send(const std::string& app_id,
65 const std::string& receiver_id, 66 const std::string& receiver_id,
66 const OutgoingMessage& message) OVERRIDE; 67 const OutgoingMessage& message) OVERRIDE;
67 68
68 private: 69 private:
(...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after
215 216
216 // Factory for creating references in callbacks. 217 // Factory for creating references in callbacks.
217 base::WeakPtrFactory<GCMClientImpl> weak_ptr_factory_; 218 base::WeakPtrFactory<GCMClientImpl> weak_ptr_factory_;
218 219
219 DISALLOW_COPY_AND_ASSIGN(GCMClientImpl); 220 DISALLOW_COPY_AND_ASSIGN(GCMClientImpl);
220 }; 221 };
221 222
222 } // namespace gcm 223 } // namespace gcm
223 224
224 #endif // GOOGLE_APIS_GCM_GCM_CLIENT_IMPL_H_ 225 #endif // GOOGLE_APIS_GCM_GCM_CLIENT_IMPL_H_
OLDNEW
« no previous file with comments | « google_apis/gcm/gcm_client.h ('k') | google_apis/gcm/gcm_client_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698