OLD | NEW |
---|---|
(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_INSTANCE_ID_DELETE_TOKEN_REQUEST_HANDLER_H_ | |
6 #define GOOGLE_APIS_GCM_ENGINE_INSTANCE_ID_DELETE_TOKEN_REQUEST_HANDLER_H_ | |
7 | |
8 #include "google_apis/gcm/engine/unregistration_request.h" | |
Nicolas Zea
2015/05/26 16:39:14
#include string
jianli
2015/05/26 20:49:38
Done.
| |
9 | |
10 namespace gcm { | |
11 | |
12 // Provides custom logic to handle DeleteToken request for InstanceID. | |
13 class GCM_EXPORT InstanceIDDeleteTokenRequestHandler : | |
14 public UnregistrationRequest::CustomRequestHandler { | |
15 public: | |
16 InstanceIDDeleteTokenRequestHandler( | |
17 const std::string& instance_id, | |
18 const std::string& authorized_entity, | |
19 const std::string& scope, | |
20 int gcm_version); | |
21 ~InstanceIDDeleteTokenRequestHandler() override; | |
22 | |
23 // UnregistrationRequest overrides: | |
24 void BuildRequestBody(std::string* body) override; | |
25 UnregistrationRequest::Status ParseResponse( | |
26 const net::URLFetcher* source) override; | |
27 | |
28 private: | |
29 std::string instance_id_; | |
30 std::string authorized_entity_; | |
31 std::string scope_; | |
32 int gcm_version_; | |
33 | |
34 DISALLOW_COPY_AND_ASSIGN(InstanceIDDeleteTokenRequestHandler); | |
35 }; | |
36 | |
37 } // namespace gcm | |
38 | |
39 #endif // GOOGLE_APIS_GCM_ENGINE_INSTANCE_ID_DELETE_TOKEN_REQUEST_HANDLER_H_ | |
OLD | NEW |