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

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

Issue 23514007: Refactor TrashResourceRequest. (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 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
44 bool update_viewed_date) const; 44 bool update_viewed_date) const;
45 45
46 // Returns a URL to copy a resource specified by |file_id|. 46 // Returns a URL to copy a resource specified by |file_id|.
47 GURL GetFilesCopyUrl(const std::string& file_id) const; 47 GURL GetFilesCopyUrl(const std::string& file_id) const;
48 48
49 // Returns a URL to fetch file list. 49 // Returns a URL to fetch file list.
50 GURL GetFilesListUrl(int max_results, 50 GURL GetFilesListUrl(int max_results,
51 const std::string& page_token, 51 const std::string& page_token,
52 const std::string& q) const; 52 const std::string& q) const;
53 53
54 // Returns a URL to trash a resource with the given |file_id|.
55 GURL GetFilesTrashUrl(const std::string& file_id) const;
56
54 // Returns a URL to touch a resource specified by |resource_id|. 57 // Returns a URL to touch a resource specified by |resource_id|.
55 GURL GetFileTouchUrl(const std::string& resource_id) const; 58 GURL GetFileTouchUrl(const std::string& resource_id) const;
56 59
57 // Returns a URL to trash a resource with the given |resource_id|.
58 // Note that the |resource_id| is corresponding to the "file id" in the
59 // document: https://developers.google.com/drive/v2/reference/files/trash
60 // but we use the term "resource" for consistency in our code.
61 GURL GetFileTrashUrl(const std::string& resource_id) const;
62
63 // Returns a URL to fetch a list of changes. 60 // Returns a URL to fetch a list of changes.
64 GURL GetChangesListUrl(bool include_deleted, 61 GURL GetChangesListUrl(bool include_deleted,
65 int max_results, 62 int max_results,
66 const std::string& page_token, 63 const std::string& page_token,
67 int64 start_change_id) const; 64 int64 start_change_id) const;
68 65
69 // Returns a URL to add a resource to a directory with |resource_id|. 66 // Returns a URL to add a resource to a directory with |resource_id|.
70 // Note that the |resource_id| is corresponding to the "folder id" in the 67 // Note that the |resource_id| is corresponding to the "folder id" in the
71 // document: https://developers.google.com/drive/v2/reference/children/insert 68 // document: https://developers.google.com/drive/v2/reference/children/insert
72 // but we use the term "resource" for consistency in our code. 69 // but we use the term "resource" for consistency in our code.
(...skipping 20 matching lines...) Expand all
93 private: 90 private:
94 const GURL base_url_; 91 const GURL base_url_;
95 const GURL base_download_url_; 92 const GURL base_download_url_;
96 93
97 // This class is copyable hence no DISALLOW_COPY_AND_ASSIGN here. 94 // This class is copyable hence no DISALLOW_COPY_AND_ASSIGN here.
98 }; 95 };
99 96
100 } // namespace google_apis 97 } // namespace google_apis
101 98
102 #endif // CHROME_BROWSER_GOOGLE_APIS_DRIVE_API_URL_GENERATOR_H_ 99 #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