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

Unified Diff: google_apis/drive/gdata_wapi_url_generator.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: Remove more WAPI related code. 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
Index: google_apis/drive/gdata_wapi_url_generator.h
diff --git a/google_apis/drive/gdata_wapi_url_generator.h b/google_apis/drive/gdata_wapi_url_generator.h
deleted file mode 100644
index c0486cfff14a24471fc10afcdbb3370d2c1c65f3..0000000000000000000000000000000000000000
--- a/google_apis/drive/gdata_wapi_url_generator.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.
-//
-// URL utility functions for Google Documents List API (aka WAPI).
-
-#ifndef GOOGLE_APIS_DRIVE_GDATA_WAPI_URL_GENERATOR_H_
-#define GOOGLE_APIS_DRIVE_GDATA_WAPI_URL_GENERATOR_H_
-
-#include <string>
-
-#include "url/gurl.h"
-
-namespace google_apis {
-
-// The class is used to generate URLs for communicating with the WAPI server.
-// for production, and the local server for testing.
-class GDataWapiUrlGenerator {
- public:
- GDataWapiUrlGenerator(const GURL& base_url);
- ~GDataWapiUrlGenerator();
-
- // The base URL for communicating with the WAPI server for production.
- static const char kBaseUrlForProduction[];
-
- // The base URL for the file download server for production.
- static const char kBaseDownloadUrlForProduction[];
-
- // Adds additional parameters for API version, output content type and to
- // show folders in the feed are added to document feed URLs.
- static GURL AddStandardUrlParams(const GURL& url);
-
- // Generates a URL for getting or editing the resource entry of
- // the given resource ID.
- GURL GenerateEditUrl(const std::string& resource_id) const;
-
- // Generates a URL for getting or editing the resource entry of the
- // given resource ID without query params.
- // Note that, in order to access to the WAPI server, it is necessary to
- // append some query parameters to the URL. GenerateEditUrl declared above
- // should be used in such cases. This method is designed for constructing
- // the data, such as xml element/attributes in request body containing
- // edit urls.
- GURL GenerateEditUrlWithoutParams(const std::string& resource_id) const;
-
- // Generates a URL for getting or editing the resource entry of the given
- // resource ID with additionally passed embed origin. This is used to fetch
- // share urls for the sharing dialog to be embedded with the |embed_origin|
- // origin.
- GURL GenerateEditUrlWithEmbedOrigin(const std::string& resource_id,
- const GURL& embed_origin) const;
-
- private:
- const GURL base_url_;
-};
-
-} // namespace google_apis
-
-#endif // GOOGLE_APIS_DRIVE_GDATA_WAPI_URL_GENERATOR_H_

Powered by Google App Engine
This is Rietveld 408576698