Index: google_apis/gcm/engine/gcm_unregistration_request.h |
diff --git a/google_apis/gcm/engine/gcm_unregistration_request.h b/google_apis/gcm/engine/gcm_unregistration_request.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..9b493cd00a828a2e4997d0cbb9f8f2d9470056e7 |
--- /dev/null |
+++ b/google_apis/gcm/engine/gcm_unregistration_request.h |
@@ -0,0 +1,36 @@ |
+// Copyright 2015 The Chromium Authors. All rights reserved. |
+// Use of this source code is governed by a BSD-style license that can be |
+// found in the LICENSE file. |
+ |
+#ifndef GOOGLE_APIS_GCM_ENGINE_GCM_UNREGISTRATION_REQUEST_H_ |
+#define GOOGLE_APIS_GCM_ENGINE_GCM_UNREGISTRATION_REQUEST_H_ |
+ |
+#include "google_apis/gcm/engine/unregistration_request.h" |
+ |
+namespace gcm { |
+ |
+// Used to revoke the registration ID when unregister is called or the |
+// application has been uninstalled. |
+class GCM_EXPORT GCMUnregistrationRequest : public UnregistrationRequest { |
+ public: |
+ GCMUnregistrationRequest( |
+ const GURL& registration_url, |
+ const RequestInfo& request_info, |
+ const net::BackoffEntry::Policy& backoff_policy, |
+ const UnregistrationCallback& callback, |
+ scoped_refptr<net::URLRequestContextGetter> request_context_getter, |
+ GCMStatsRecorder* recorder); |
+ ~GCMUnregistrationRequest() override; |
+ |
+ // UnregistrationRequest overrides: |
+ void BuildRequestBody(std::string* body) override; |
+ bool ParseResponse(const net::URLFetcher* source, |
+ UnregistrationRequest::Status* status) override; |
+ |
+ private: |
+ DISALLOW_COPY_AND_ASSIGN(GCMUnregistrationRequest); |
+}; |
+ |
+} // namespace gcm |
+ |
+#endif // GOOGLE_APIS_GCM_ENGINE_GCM_UNREGISTRATION_REQUEST_H_ |