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

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

Issue 12225101: Implement GetInitiateUpload{New,Existing}FileUrl on Drive API v2. (Closed) Base URL: http://git.chromium.org/chromium/src.git@b148632_replace_url_to_resource_id_2
Patch Set: 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/drive_api_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) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 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 #ifndef CHROME_BROWSER_GOOGLE_APIS_DRIVE_API_URL_GENERATOR_H_ 5 #ifndef CHROME_BROWSER_GOOGLE_APIS_DRIVE_API_URL_GENERATOR_H_
6 #define CHROME_BROWSER_GOOGLE_APIS_DRIVE_API_URL_GENERATOR_H_ 6 #define CHROME_BROWSER_GOOGLE_APIS_DRIVE_API_URL_GENERATOR_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "googleurl/src/gurl.h" 10 #include "googleurl/src/gurl.h"
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
61 GURL GetChildrenUrl(const std::string& resource_id) const; 61 GURL GetChildrenUrl(const std::string& resource_id) const;
62 62
63 // Returns a URL to remove a resource with |child_id| from a directory 63 // Returns a URL to remove a resource with |child_id| from a directory
64 // with |folder_id|. 64 // with |folder_id|.
65 // Note that we use the name "folder" for the parameter, in order to be 65 // Note that we use the name "folder" for the parameter, in order to be
66 // consistent with the drive API document: 66 // consistent with the drive API document:
67 // https://developers.google.com/drive/v2/reference/children/delete 67 // https://developers.google.com/drive/v2/reference/children/delete
68 GURL GetChildrenUrlForRemoval(const std::string& folder_id, 68 GURL GetChildrenUrlForRemoval(const std::string& folder_id,
69 const std::string& child_id) const; 69 const std::string& child_id) const;
70 70
71 // Returns a URL to initiate uploading a new file.
72 GURL GetInitiateUploadNewFileUrl() const;
73
74 // Returns a URL to initiate uploading an existing file specified by
75 // |resource_id|.
76 GURL GetInitiateUploadExistingFileUrl(const std::string& resource_id) const;
77
71 private: 78 private:
72 const GURL base_url_; 79 const GURL base_url_;
73 80
74 // This class is copyable hence no DISALLOW_COPY_AND_ASSIGN here. 81 // This class is copyable hence no DISALLOW_COPY_AND_ASSIGN here.
75 }; 82 };
76 83
77 } // namespace google_apis 84 } // namespace google_apis
78 85
79 #endif // CHROME_BROWSER_GOOGLE_APIS_DRIVE_API_URL_GENERATOR_H_ 86 #endif // CHROME_BROWSER_GOOGLE_APIS_DRIVE_API_URL_GENERATOR_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/google_apis/drive_api_url_generator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698