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

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

Issue 1137463003: Support getting and deleting token for Instance ID. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add new files Created 5 years, 7 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
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 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
42 // and require the device to re-create credentials and serial number mapping 42 // and require the device to re-create credentials and serial number mapping
43 // tables. 43 // tables.
44 void Destroy(const UpdateCallback& callback) override; 44 void Destroy(const UpdateCallback& callback) override;
45 45
46 // Sets this device's messaging credentials. 46 // Sets this device's messaging credentials.
47 void SetDeviceCredentials(uint64 device_android_id, 47 void SetDeviceCredentials(uint64 device_android_id,
48 uint64 device_security_token, 48 uint64 device_security_token,
49 const UpdateCallback& callback) override; 49 const UpdateCallback& callback) override;
50 50
51 // Registration info. 51 // Registration info.
52 void AddRegistration(const std::string& app_id, 52 void AddRegistration(const std::string& serialized_key,
53 const linked_ptr<RegistrationInfo>& registration, 53 const std::string& serialized_value,
54 const UpdateCallback& callback) override; 54 const UpdateCallback& callback) override;
55 void RemoveRegistration(const std::string& app_id, 55 void RemoveRegistration(const std::string& serialized_key,
56 const UpdateCallback& callback) override; 56 const UpdateCallback& callback) override;
57 57
58 // Unacknowledged incoming message handling. 58 // Unacknowledged incoming message handling.
59 void AddIncomingMessage(const std::string& persistent_id, 59 void AddIncomingMessage(const std::string& persistent_id,
60 const UpdateCallback& callback) override; 60 const UpdateCallback& callback) override;
61 void RemoveIncomingMessage(const std::string& persistent_id, 61 void RemoveIncomingMessage(const std::string& persistent_id,
62 const UpdateCallback& callback) override; 62 const UpdateCallback& callback) override;
63 void RemoveIncomingMessages(const PersistentIdList& persistent_ids, 63 void RemoveIncomingMessages(const PersistentIdList& persistent_ids,
64 const UpdateCallback& callback) override; 64 const UpdateCallback& callback) override;
65 65
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after
145 scoped_refptr<base::SequencedTaskRunner> blocking_task_runner_; 145 scoped_refptr<base::SequencedTaskRunner> blocking_task_runner_;
146 146
147 base::WeakPtrFactory<GCMStoreImpl> weak_ptr_factory_; 147 base::WeakPtrFactory<GCMStoreImpl> weak_ptr_factory_;
148 148
149 DISALLOW_COPY_AND_ASSIGN(GCMStoreImpl); 149 DISALLOW_COPY_AND_ASSIGN(GCMStoreImpl);
150 }; 150 };
151 151
152 } // namespace gcm 152 } // namespace gcm
153 153
154 #endif // GOOGLE_APIS_GCM_ENGINE_GCM_STORE_IMPL_H_ 154 #endif // GOOGLE_APIS_GCM_ENGINE_GCM_STORE_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698