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

Side by Side Diff: google_apis/drive/drive_api_url_generator.h

Issue 140783006: drive: Support authorizing third-party Drive apps for opening files. (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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « google_apis/drive/drive_api_requests.cc ('k') | google_apis/drive/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 GOOGLE_APIS_DRIVE_DRIVE_API_URL_GENERATOR_H_ 5 #ifndef GOOGLE_APIS_DRIVE_DRIVE_API_URL_GENERATOR_H_
6 #define GOOGLE_APIS_DRIVE_DRIVE_API_URL_GENERATOR_H_ 6 #define GOOGLE_APIS_DRIVE_DRIVE_API_URL_GENERATOR_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "url/gurl.h" 10 #include "url/gurl.h"
(...skipping 20 matching lines...) Expand all
31 31
32 // Returns a URL to invoke "Apps: list" method. 32 // Returns a URL to invoke "Apps: list" method.
33 GURL GetAppsListUrl() const; 33 GURL GetAppsListUrl() const;
34 34
35 // Returns a URL to uninstall an app with the give |app_id|. 35 // Returns a URL to uninstall an app with the give |app_id|.
36 GURL GetAppsDeleteUrl(const std::string& app_id) const; 36 GURL GetAppsDeleteUrl(const std::string& app_id) const;
37 37
38 // Returns a URL to fetch a file metadata. 38 // Returns a URL to fetch a file metadata.
39 GURL GetFilesGetUrl(const std::string& file_id) const; 39 GURL GetFilesGetUrl(const std::string& file_id) const;
40 40
41 // Returns a URL to authorize an app to access a file.
42 GURL GetFilesAuthorizeUrl(const std::string& file_id,
43 const std::string& app_id) const;
44
41 // Returns a URL to create a resource. 45 // Returns a URL to create a resource.
42 GURL GetFilesInsertUrl() const; 46 GURL GetFilesInsertUrl() const;
43 47
44 // Returns a URL to patch file metadata. 48 // Returns a URL to patch file metadata.
45 GURL GetFilesPatchUrl(const std::string& file_id, 49 GURL GetFilesPatchUrl(const std::string& file_id,
46 bool set_modified_date, 50 bool set_modified_date,
47 bool update_viewed_date) const; 51 bool update_viewed_date) const;
48 52
49 // Returns a URL to copy a resource specified by |file_id|. 53 // Returns a URL to copy a resource specified by |file_id|.
50 GURL GetFilesCopyUrl(const std::string& file_id) const; 54 GURL GetFilesCopyUrl(const std::string& file_id) const;
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
87 private: 91 private:
88 const GURL base_url_; 92 const GURL base_url_;
89 const GURL base_download_url_; 93 const GURL base_download_url_;
90 94
91 // This class is copyable hence no DISALLOW_COPY_AND_ASSIGN here. 95 // This class is copyable hence no DISALLOW_COPY_AND_ASSIGN here.
92 }; 96 };
93 97
94 } // namespace google_apis 98 } // namespace google_apis
95 99
96 #endif // GOOGLE_APIS_DRIVE_DRIVE_API_URL_GENERATOR_H_ 100 #endif // GOOGLE_APIS_DRIVE_DRIVE_API_URL_GENERATOR_H_
OLDNEW
« no previous file with comments | « google_apis/drive/drive_api_requests.cc ('k') | google_apis/drive/drive_api_url_generator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698