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_GCM_UNREGISTRATION_REQUEST_H_ |
| 6 #define GOOGLE_APIS_GCM_ENGINE_GCM_UNREGISTRATION_REQUEST_H_ |
| 7 |
| 8 #include "google_apis/gcm/engine/unregistration_request.h" |
| 9 |
| 10 namespace gcm { |
| 11 |
| 12 // Used to revoke the registration ID when unregister is called or the |
| 13 // application has been uninstalled. |
| 14 class GCM_EXPORT GCMUnregistrationRequest : public UnregistrationRequest { |
| 15 public: |
| 16 GCMUnregistrationRequest( |
| 17 const GURL& registration_url, |
| 18 const RequestInfo& request_info, |
| 19 const net::BackoffEntry::Policy& backoff_policy, |
| 20 const UnregistrationCallback& callback, |
| 21 scoped_refptr<net::URLRequestContextGetter> request_context_getter, |
| 22 GCMStatsRecorder* recorder); |
| 23 ~GCMUnregistrationRequest() override; |
| 24 |
| 25 // UnregistrationRequest overrides: |
| 26 void BuildRequestBody(std::string* body) override; |
| 27 bool ParseResponse(const net::URLFetcher* source, |
| 28 UnregistrationRequest::Status* status) override; |
| 29 |
| 30 private: |
| 31 DISALLOW_COPY_AND_ASSIGN(GCMUnregistrationRequest); |
| 32 }; |
| 33 |
| 34 } // namespace gcm |
| 35 |
| 36 #endif // GOOGLE_APIS_GCM_ENGINE_GCM_UNREGISTRATION_REQUEST_H_ |
OLD | NEW |