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

Side by Side Diff: google_apis/gcm/engine/gcm_store_impl.h

Issue 215363007: [GCM] Adding basic G-services handling (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Removing the G-services handling form GCMClientImpl Created 6 years, 8 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/engine/gcm_store.h ('k') | google_apis/gcm/engine/gcm_store_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 GOOGLE_APIS_GCM_ENGINE_GCM_STORE_IMPL_H_ 5 #ifndef GOOGLE_APIS_GCM_ENGINE_GCM_STORE_IMPL_H_
6 #define GOOGLE_APIS_GCM_ENGINE_GCM_STORE_IMPL_H_ 6 #define GOOGLE_APIS_GCM_ENGINE_GCM_STORE_IMPL_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/memory/ref_counted.h" 9 #include "base/memory/ref_counted.h"
10 #include "base/memory/weak_ptr.h" 10 #include "base/memory/weak_ptr.h"
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
70 OVERRIDE; 70 OVERRIDE;
71 virtual void RemoveOutgoingMessage(const std::string& persistent_id, 71 virtual void RemoveOutgoingMessage(const std::string& persistent_id,
72 const UpdateCallback& callback) OVERRIDE; 72 const UpdateCallback& callback) OVERRIDE;
73 virtual void RemoveOutgoingMessages(const PersistentIdList& persistent_ids, 73 virtual void RemoveOutgoingMessages(const PersistentIdList& persistent_ids,
74 const UpdateCallback& callback) OVERRIDE; 74 const UpdateCallback& callback) OVERRIDE;
75 75
76 // Sets last device's checkin time. 76 // Sets last device's checkin time.
77 virtual void SetLastCheckinTime(const base::Time& last_checkin_time, 77 virtual void SetLastCheckinTime(const base::Time& last_checkin_time,
78 const UpdateCallback& callback) OVERRIDE; 78 const UpdateCallback& callback) OVERRIDE;
79 79
80 // G-service settings handling.
81 virtual void SetGServicesSettings(
82 const std::map<std::string, std::string>& settings,
83 const std::string& settings_digest,
84 const UpdateCallback& callback) OVERRIDE;
85
80 private: 86 private:
81 typedef std::map<std::string, int> AppIdToMessageCountMap; 87 typedef std::map<std::string, int> AppIdToMessageCountMap;
82 88
83 // Continuation to update the per-app message counts after a load. 89 // Continuation to update the per-app message counts after a load.
84 void LoadContinuation(const LoadCallback& callback, 90 void LoadContinuation(const LoadCallback& callback,
85 scoped_ptr<LoadResult> result); 91 scoped_ptr<LoadResult> result);
86 92
87 // Continuation to update the per-app message counts when adding messages. 93 // Continuation to update the per-app message counts when adding messages.
88 // In particular, if a message fails to add, the message count is decremented. 94 // In particular, if a message fails to add, the message count is decremented.
89 void AddOutgoingMessageContinuation(const UpdateCallback& callback, 95 void AddOutgoingMessageContinuation(const UpdateCallback& callback,
(...skipping 18 matching lines...) Expand all
108 scoped_refptr<base::SequencedTaskRunner> blocking_task_runner_; 114 scoped_refptr<base::SequencedTaskRunner> blocking_task_runner_;
109 115
110 base::WeakPtrFactory<GCMStoreImpl> weak_ptr_factory_; 116 base::WeakPtrFactory<GCMStoreImpl> weak_ptr_factory_;
111 117
112 DISALLOW_COPY_AND_ASSIGN(GCMStoreImpl); 118 DISALLOW_COPY_AND_ASSIGN(GCMStoreImpl);
113 }; 119 };
114 120
115 } // namespace gcm 121 } // namespace gcm
116 122
117 #endif // GOOGLE_APIS_GCM_ENGINE_GCM_STORE_IMPL_H_ 123 #endif // GOOGLE_APIS_GCM_ENGINE_GCM_STORE_IMPL_H_
OLDNEW
« no previous file with comments | « google_apis/gcm/engine/gcm_store.h ('k') | google_apis/gcm/engine/gcm_store_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698