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

Unified Diff: google_apis/drive/gdata_wapi_requests.h

Issue 861133002: Remove WAPI-related code, except the type definition of ResourceEntry. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Respond to review comments. Created 5 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
« no previous file with comments | « google_apis/drive/gdata_wapi_parser_unittest.cc ('k') | google_apis/drive/gdata_wapi_requests.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: google_apis/drive/gdata_wapi_requests.h
diff --git a/google_apis/drive/gdata_wapi_requests.h b/google_apis/drive/gdata_wapi_requests.h
deleted file mode 100644
index 4a9962bae854a8953c98962fbf5e562a34c87e93..0000000000000000000000000000000000000000
--- a/google_apis/drive/gdata_wapi_requests.h
+++ /dev/null
@@ -1,59 +0,0 @@
-// Copyright (c) 2012 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_DRIVE_GDATA_WAPI_REQUESTS_H_
-#define GOOGLE_APIS_DRIVE_GDATA_WAPI_REQUESTS_H_
-
-#include <string>
-
-#include "google_apis/drive/base_requests.h"
-#include "google_apis/drive/gdata_wapi_url_generator.h"
-
-namespace google_apis {
-
-class ResourceEntry;
-
-// Callback type for GetResourceEntryRequest.
-typedef base::Callback<void(GDataErrorCode error,
- scoped_ptr<ResourceEntry> entry)>
- GetResourceEntryCallback;
-
-// This class performs the request for fetching a single resource entry.
-class GetResourceEntryRequest : public UrlFetchRequestBase {
- public:
- // |callback| must not be null.
- GetResourceEntryRequest(RequestSender* sender,
- const GDataWapiUrlGenerator& url_generator,
- const std::string& resource_id,
- const GURL& embed_origin,
- const GetResourceEntryCallback& callback);
- ~GetResourceEntryRequest() override;
-
- protected:
- // UrlFetchRequestBase overrides.
- void ProcessURLFetchResults(const net::URLFetcher* source) override;
- void RunCallbackOnPrematureFailure(GDataErrorCode error) override;
- GURL GetURL() const override;
-
- private:
- void OnDataParsed(GDataErrorCode error, scoped_ptr<ResourceEntry> entry);
-
- const GDataWapiUrlGenerator url_generator_;
- // Resource id of the requested entry.
- const std::string resource_id_;
- // Embed origin for an url to the sharing dialog. Can be empty.
- GURL embed_origin_;
-
- const GetResourceEntryCallback callback_;
-
- // Note: This should remain the last member so it'll be destroyed and
- // invalidate its weak pointers before any other members are destroyed.
- base::WeakPtrFactory<GetResourceEntryRequest> weak_ptr_factory_;
-
- DISALLOW_COPY_AND_ASSIGN(GetResourceEntryRequest);
-};
-
-} // namespace google_apis
-
-#endif // GOOGLE_APIS_DRIVE_GDATA_WAPI_REQUESTS_H_
« no previous file with comments | « google_apis/drive/gdata_wapi_parser_unittest.cc ('k') | google_apis/drive/gdata_wapi_requests.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698