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

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

Issue 1548673002: Switch to standard integer types in google_apis/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix Created 5 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 | « 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 <stdint.h>
9
10 #include "base/macros.h"
9 #include "base/memory/ref_counted.h" 11 #include "base/memory/ref_counted.h"
10 #include "base/memory/weak_ptr.h" 12 #include "base/memory/weak_ptr.h"
11 #include "google_apis/gcm/base/gcm_export.h" 13 #include "google_apis/gcm/base/gcm_export.h"
12 #include "google_apis/gcm/engine/gcm_store.h" 14 #include "google_apis/gcm/engine/gcm_store.h"
13 15
14 namespace base { 16 namespace base {
15 class FilePath; 17 class FilePath;
16 class SequencedTaskRunner; 18 class SequencedTaskRunner;
17 } // namespace base 19 } // namespace base
18 20
(...skipping 18 matching lines...) Expand all
37 void Close() override; 39 void Close() override;
38 40
39 // Clears the GCM store of all data and destroys any LevelDB files associated 41 // Clears the GCM store of all data and destroys any LevelDB files associated
40 // with this store. 42 // with this store.
41 // WARNING: this will permanently destroy any pending outgoing messages 43 // WARNING: this will permanently destroy any pending outgoing messages
42 // and require the device to re-create credentials and serial number mapping 44 // and require the device to re-create credentials and serial number mapping
43 // tables. 45 // tables.
44 void Destroy(const UpdateCallback& callback) override; 46 void Destroy(const UpdateCallback& callback) override;
45 47
46 // Sets this device's messaging credentials. 48 // Sets this device's messaging credentials.
47 void SetDeviceCredentials(uint64 device_android_id, 49 void SetDeviceCredentials(uint64_t device_android_id,
48 uint64 device_security_token, 50 uint64_t device_security_token,
49 const UpdateCallback& callback) override; 51 const UpdateCallback& callback) override;
50 52
51 // Registration info. 53 // Registration info.
52 void AddRegistration(const std::string& serialized_key, 54 void AddRegistration(const std::string& serialized_key,
53 const std::string& serialized_value, 55 const std::string& serialized_value,
54 const UpdateCallback& callback) override; 56 const UpdateCallback& callback) override;
55 void RemoveRegistration(const std::string& serialized_key, 57 void RemoveRegistration(const std::string& serialized_key,
56 const UpdateCallback& callback) override; 58 const UpdateCallback& callback) override;
57 59
58 // Unacknowledged incoming message handling. 60 // Unacknowledged incoming message handling.
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after
145 scoped_refptr<base::SequencedTaskRunner> blocking_task_runner_; 147 scoped_refptr<base::SequencedTaskRunner> blocking_task_runner_;
146 148
147 base::WeakPtrFactory<GCMStoreImpl> weak_ptr_factory_; 149 base::WeakPtrFactory<GCMStoreImpl> weak_ptr_factory_;
148 150
149 DISALLOW_COPY_AND_ASSIGN(GCMStoreImpl); 151 DISALLOW_COPY_AND_ASSIGN(GCMStoreImpl);
150 }; 152 };
151 153
152 } // namespace gcm 154 } // namespace gcm
153 155
154 #endif // GOOGLE_APIS_GCM_ENGINE_GCM_STORE_IMPL_H_ 156 #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