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

Unified Diff: google_apis/drive/drive_api_requests.h

Issue 127663002: Implement DriveAPIService::UninstallApp(). (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 11 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 side-by-side diff with in-line comments
Download patch
Index: google_apis/drive/drive_api_requests.h
diff --git a/google_apis/drive/drive_api_requests.h b/google_apis/drive/drive_api_requests.h
index 6f10aa66d959d53638d215ffd0744a9be22d89ef..eabfb627590d1196951dd228b8dc97338eb831e6 100644
--- a/google_apis/drive/drive_api_requests.h
+++ b/google_apis/drive/drive_api_requests.h
@@ -504,6 +504,34 @@ class AppsListRequest : public DriveApiDataRequest {
DISALLOW_COPY_AND_ASSIGN(AppsListRequest);
};
+//============================= AppsDeleteRequest ==============================
+
+// This class performs the request for deleting a Drive app.
+// This request is mapped to
+// https://developers.google.com/drive/v2/reference/files/trash
+class AppsDeleteRequest : public EntryActionRequest {
+ public:
+ AppsDeleteRequest(RequestSender* sender,
+ const DriveApiUrlGenerator& url_generator,
+ const EntryActionCallback& callback);
+ virtual ~AppsDeleteRequest();
+
+ // Required parameter.
+ const std::string& app_id() const { return app_id_; }
+ void set_app_id(const std::string& app_id) { app_id_ = app_id; }
+
+ protected:
+ // Overridden from UrlFetchRequestBase.
+ virtual net::URLFetcher::RequestType GetRequestType() const OVERRIDE;
+ virtual GURL GetURL() const OVERRIDE;
+
+ private:
+ const DriveApiUrlGenerator url_generator_;
+ std::string app_id_;
+
+ DISALLOW_COPY_AND_ASSIGN(AppsDeleteRequest);
+};
+
//========================== ChildrenInsertRequest ============================
// This class performs the request for inserting a resource to a directory.

Powered by Google App Engine
This is Rietveld 408576698