OLD | NEW |
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 27 matching lines...) Expand all Loading... |
38 GURL GetChangelistUrl( | 38 GURL GetChangelistUrl( |
39 const GURL& override_url, int64 start_changestamp) const; | 39 const GURL& override_url, int64 start_changestamp) const; |
40 | 40 |
41 // Returns a URL to fetch a list of files with the given |search_string|. | 41 // Returns a URL to fetch a list of files with the given |search_string|. |
42 // override_url: | 42 // override_url: |
43 // The base url for the fetching. If empty, the default url is used. | 43 // The base url for the fetching. If empty, the default url is used. |
44 // search_string: The search query. | 44 // search_string: The search query. |
45 GURL GetFilelistUrl( | 45 GURL GetFilelistUrl( |
46 const GURL& override_url, const std::string& search_string) const; | 46 const GURL& override_url, const std::string& search_string) const; |
47 | 47 |
48 // Returns a URL to fecth a file content. | 48 // Returns a URL to fetch a file content. |
49 GURL GetFileUrl(const std::string& file_id) const; | 49 GURL GetFileUrl(const std::string& file_id) const; |
50 | 50 |
51 // Returns a URL to trash a resource with the given |resource_id|. | 51 // Returns a URL to trash a resource with the given |resource_id|. |
52 // Note that the |resource_id| is corresponding to the "file id" in the | 52 // Note that the |resource_id| is corresponding to the "file id" in the |
53 // document: https://developers.google.com/drive/v2/reference/files/trash | 53 // document: https://developers.google.com/drive/v2/reference/files/trash |
54 // but we use the term "resource" for consistency in our code. | 54 // but we use the term "resource" for consistency in our code. |
55 GURL GetFileTrashUrl(const std::string& resource_id) const; | 55 GURL GetFileTrashUrl(const std::string& resource_id) const; |
56 | 56 |
57 // Returns a URL to add a resource to a directory with |resource_id|. | 57 // Returns a URL to add a resource to a directory with |resource_id|. |
58 // Note that the |resource_id| is corresponding to the "folder id" in the | 58 // Note that the |resource_id| is corresponding to the "folder id" in the |
(...skipping 11 matching lines...) Expand all Loading... |
70 | 70 |
71 private: | 71 private: |
72 const GURL base_url_; | 72 const GURL base_url_; |
73 | 73 |
74 // This class is copyable hence no DISALLOW_COPY_AND_ASSIGN here. | 74 // This class is copyable hence no DISALLOW_COPY_AND_ASSIGN here. |
75 }; | 75 }; |
76 | 76 |
77 } // namespace google_apis | 77 } // namespace google_apis |
78 | 78 |
79 #endif // CHROME_BROWSER_GOOGLE_APIS_DRIVE_API_URL_GENERATOR_H_ | 79 #endif // CHROME_BROWSER_GOOGLE_APIS_DRIVE_API_URL_GENERATOR_H_ |
OLD | NEW |