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

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

Issue 23575004: Refactor CreateDiretoryRequest. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 7 years, 3 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
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 "url/gurl.h" 10 #include "url/gurl.h"
(...skipping 14 matching lines...) Expand all
25 25
26 // The base URL for the file download server for production. 26 // The base URL for the file download server for production.
27 static const char kBaseDownloadUrlForProduction[]; 27 static const char kBaseDownloadUrlForProduction[];
28 28
29 // Returns a URL to invoke "About: get" method. 29 // Returns a URL to invoke "About: get" method.
30 GURL GetAboutGetUrl() const; 30 GURL GetAboutGetUrl() const;
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 edit (especially add) a resource, such as inserting
36 // a file metadata or creating a new directory.
37 GURL GetFilesUrl() const;
38
39 // Returns a URL to fetch a file metadata. 35 // Returns a URL to fetch a file metadata.
40 GURL GetFilesGetUrl(const std::string& file_id) const; 36 GURL GetFilesGetUrl(const std::string& file_id) const;
41 37
38 // Returns a URL to create a resource.
39 GURL GetFilesInsertUrl() const;
40
42 // Returns a URL to patch file metadata. 41 // Returns a URL to patch file metadata.
43 GURL GetFilesPatchUrl(const std::string& file_id, 42 GURL GetFilesPatchUrl(const std::string& file_id,
44 bool set_modified_date, 43 bool set_modified_date,
45 bool update_viewed_date) const; 44 bool update_viewed_date) const;
46 45
47 // Returns a URL to copy a resource specified by |file_id|. 46 // Returns a URL to copy a resource specified by |file_id|.
48 GURL GetFilesCopyUrl(const std::string& file_id) const; 47 GURL GetFilesCopyUrl(const std::string& file_id) const;
49 48
50 // Returns a URL to fetch file list. 49 // Returns a URL to fetch file list.
51 GURL GetFilesListUrl(int max_results, 50 GURL GetFilesListUrl(int max_results,
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
94 private: 93 private:
95 const GURL base_url_; 94 const GURL base_url_;
96 const GURL base_download_url_; 95 const GURL base_download_url_;
97 96
98 // This class is copyable hence no DISALLOW_COPY_AND_ASSIGN here. 97 // This class is copyable hence no DISALLOW_COPY_AND_ASSIGN here.
99 }; 98 };
100 99
101 } // namespace google_apis 100 } // namespace google_apis
102 101
103 #endif // CHROME_BROWSER_GOOGLE_APIS_DRIVE_API_URL_GENERATOR_H_ 102 #endif // CHROME_BROWSER_GOOGLE_APIS_DRIVE_API_URL_GENERATOR_H_
OLDNEW
« no previous file with comments | « chrome/browser/google_apis/drive_api_requests_unittest.cc ('k') | chrome/browser/google_apis/drive_api_url_generator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698