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

Side by Side Diff: chrome/browser/google_apis/gdata_wapi_url_generator.h

Issue 12226073: Implement GenerateInitiateUpload{New,Existing}FileUrl. (Closed) Base URL: http://git.chromium.org/chromium/src.git@b148632_split_initiate_upload_interface
Patch Set: Rebase Created 7 years, 10 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 unified diff | Download patch
« no previous file with comments | « no previous file | chrome/browser/google_apis/gdata_wapi_url_generator.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 // 4 //
5 // URL utility functions for Google Documents List API (aka WAPI). 5 // URL utility functions for Google Documents List API (aka WAPI).
6 6
7 #ifndef CHROME_BROWSER_GOOGLE_APIS_GDATA_WAPI_URL_GENERATOR_H_ 7 #ifndef CHROME_BROWSER_GOOGLE_APIS_GDATA_WAPI_URL_GENERATOR_H_
8 #define CHROME_BROWSER_GOOGLE_APIS_GDATA_WAPI_URL_GENERATOR_H_ 8 #define CHROME_BROWSER_GOOGLE_APIS_GDATA_WAPI_URL_GENERATOR_H_
9 9
10 #include <string> 10 #include <string>
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after
97 97
98 // Generates a URL for editing the contents in the directory specified 98 // Generates a URL for editing the contents in the directory specified
99 // by the given resource ID. 99 // by the given resource ID.
100 GURL GenerateContentUrl(const std::string& resource_id) const; 100 GURL GenerateContentUrl(const std::string& resource_id) const;
101 101
102 // Generates a URL to remove an entry specified by |resource_id| from 102 // Generates a URL to remove an entry specified by |resource_id| from
103 // the directory specified by the given |parent_resource_id|. 103 // the directory specified by the given |parent_resource_id|.
104 GURL GenerateResourceUrlForRemoval(const std::string& parent_resource_id, 104 GURL GenerateResourceUrlForRemoval(const std::string& parent_resource_id,
105 const std::string& resource_id) const; 105 const std::string& resource_id) const;
106 106
107 // Generates a URL to initiate uploading a new file to a directory
108 // specified by |parent_resource_id|.
109 GURL GenerateInitiateUploadNewFileUrl(
110 const std::string& parent_resource_id) const;
111
112 // Generates a URL to initiate uploading file content to overwrite a
113 // file specified by |resource_id|.
114 GURL GenerateInitiateUploadExistingFileUrl(
115 const std::string& resource_id) const;
116
107 // Generates a URL for getting the root resource list feed. 117 // Generates a URL for getting the root resource list feed.
108 // Used to make changes in the root directory (ex. create a directory in the 118 // Used to make changes in the root directory (ex. create a directory in the
109 // root directory) 119 // root directory)
110 GURL GenerateResourceListRootUrl() const; 120 GURL GenerateResourceListRootUrl() const;
111 121
112 // Generates a URL for getting the account metadata feed. 122 // Generates a URL for getting the account metadata feed.
113 GURL GenerateAccountMetadataUrl() const; 123 GURL GenerateAccountMetadataUrl() const;
114 124
115 private: 125 private:
116 const GURL base_url_; 126 const GURL base_url_;
117 }; 127 };
118 128
119 } // namespace google_apis 129 } // namespace google_apis
120 130
121 #endif // CHROME_BROWSER_GOOGLE_APIS_GDATA_WAPI_URL_GENERATOR_H_ 131 #endif // CHROME_BROWSER_GOOGLE_APIS_GDATA_WAPI_URL_GENERATOR_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/google_apis/gdata_wapi_url_generator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698