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

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

Issue 1137463003: Support getting and deleting token for Instance ID. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix trybots 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
(Empty)
1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef GOOGLE_APIS_GCM_ENGINE_GCM_REGISTRATION_REQUEST_H_
6 #define GOOGLE_APIS_GCM_ENGINE_GCM_REGISTRATION_REQUEST_H_
7
8 #include "google_apis/gcm/engine/registration_request.h"
9
10 namespace gcm {
11
12 // Used to obtain the registration ID for applications that want to use GCM.
13 class GCM_EXPORT GCMRegistrationRequest : public RegistrationRequest {
14 public:
15 // Additional info for GCM registration requests.
16 struct GCM_EXPORT ExtraRequestInfo {
17 ExtraRequestInfo(const std::vector<std::string>& sender_ids);
18 ~ExtraRequestInfo();
19
20 // List of IDs of senders. Allowed up to 100.
21 std::vector<std::string> sender_ids;
22 };
23
24 GCMRegistrationRequest(
25 const GURL& registration_url,
26 const RequestInfo& request_info,
27 const ExtraRequestInfo& extra_request_info,
28 const net::BackoffEntry::Policy& backoff_policy,
29 const RegistrationCallback& callback,
30 int max_retry_count,
31 scoped_refptr<net::URLRequestContextGetter> request_context_getter,
32 GCMStatsRecorder* recorder);
33 ~GCMRegistrationRequest() override;
34
35 // RegistrationRequest overrides:
36 void BuildRequestBody(std::string* body) override;
37 std::string GetSourceForRecorder() const override;
38
39 private:
40 ExtraRequestInfo extra_request_info_;
41
42 DISALLOW_COPY_AND_ASSIGN(GCMRegistrationRequest);
43 };
44
45 } // namespace gcm
46
47 #endif // GOOGLE_APIS_GCM_ENGINE_GCM_REGISTRATION_REQUEST_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698