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

Side by Side Diff: google_apis/gcm/engine/unregistration_request.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 4 years, 12 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_UNREGISTRATION_REQUEST_H_ 5 #ifndef GOOGLE_APIS_GCM_ENGINE_UNREGISTRATION_REQUEST_H_
6 #define GOOGLE_APIS_GCM_ENGINE_UNREGISTRATION_REQUEST_H_ 6 #define GOOGLE_APIS_GCM_ENGINE_UNREGISTRATION_REQUEST_H_
7 7
8 #include "base/basictypes.h" 8 #include <stdint.h>
9
9 #include "base/callback.h" 10 #include "base/callback.h"
11 #include "base/macros.h"
10 #include "base/memory/ref_counted.h" 12 #include "base/memory/ref_counted.h"
11 #include "base/memory/scoped_ptr.h" 13 #include "base/memory/scoped_ptr.h"
12 #include "base/memory/weak_ptr.h" 14 #include "base/memory/weak_ptr.h"
13 #include "base/time/time.h" 15 #include "base/time/time.h"
14 #include "google_apis/gcm/base/gcm_export.h" 16 #include "google_apis/gcm/base/gcm_export.h"
15 #include "net/base/backoff_entry.h" 17 #include "net/base/backoff_entry.h"
16 #include "net/url_request/url_fetcher_delegate.h" 18 #include "net/url_request/url_fetcher_delegate.h"
17 #include "url/gurl.h" 19 #include "url/gurl.h"
18 20
19 namespace net { 21 namespace net {
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
52 // histogram enum accordingly. 54 // histogram enum accordingly.
53 UNREGISTRATION_STATUS_COUNT, 55 UNREGISTRATION_STATUS_COUNT,
54 }; 56 };
55 57
56 // Callback completing the unregistration request. 58 // Callback completing the unregistration request.
57 typedef base::Callback<void(Status success)> UnregistrationCallback; 59 typedef base::Callback<void(Status success)> UnregistrationCallback;
58 60
59 // Defines the common info about an unregistration/token-deletion request. 61 // Defines the common info about an unregistration/token-deletion request.
60 // All parameters are mandatory. 62 // All parameters are mandatory.
61 struct GCM_EXPORT RequestInfo { 63 struct GCM_EXPORT RequestInfo {
62 RequestInfo(uint64 android_id, 64 RequestInfo(uint64_t android_id,
63 uint64 security_token, 65 uint64_t security_token,
64 const std::string& app_id); 66 const std::string& app_id);
65 ~RequestInfo(); 67 ~RequestInfo();
66 68
67 // Android ID of the device. 69 // Android ID of the device.
68 uint64 android_id; 70 uint64_t android_id;
69 // Security token of the device. 71 // Security token of the device.
70 uint64 security_token; 72 uint64_t security_token;
71 // Application ID. 73 // Application ID.
72 std::string app_id; 74 std::string app_id;
73 }; 75 };
74 76
75 // Encapsulates the custom logic that is needed to build and process the 77 // Encapsulates the custom logic that is needed to build and process the
76 // unregistration request. 78 // unregistration request.
77 class GCM_EXPORT CustomRequestHandler { 79 class GCM_EXPORT CustomRequestHandler {
78 public: 80 public:
79 CustomRequestHandler(); 81 CustomRequestHandler();
80 virtual ~CustomRequestHandler(); 82 virtual ~CustomRequestHandler();
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
139 std::string source_to_record_; 141 std::string source_to_record_;
140 142
141 base::WeakPtrFactory<UnregistrationRequest> weak_ptr_factory_; 143 base::WeakPtrFactory<UnregistrationRequest> weak_ptr_factory_;
142 144
143 DISALLOW_COPY_AND_ASSIGN(UnregistrationRequest); 145 DISALLOW_COPY_AND_ASSIGN(UnregistrationRequest);
144 }; 146 };
145 147
146 } // namespace gcm 148 } // namespace gcm
147 149
148 #endif // GOOGLE_APIS_GCM_ENGINE_UNREGISTRATION_REQUEST_H_ 150 #endif // GOOGLE_APIS_GCM_ENGINE_UNREGISTRATION_REQUEST_H_
OLDNEW
« no previous file with comments | « google_apis/gcm/engine/registration_request_unittest.cc ('k') | google_apis/gcm/engine/unregistration_request.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698