OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_DRIVE_FAKE_DRIVE_SERVICE_H_ | 5 #ifndef CHROME_BROWSER_DRIVE_FAKE_DRIVE_SERVICE_H_ |
6 #define CHROME_BROWSER_DRIVE_FAKE_DRIVE_SERVICE_H_ | 6 #define CHROME_BROWSER_DRIVE_FAKE_DRIVE_SERVICE_H_ |
7 | 7 |
8 #include "base/files/file_path.h" | 8 #include "base/files/file_path.h" |
9 #include "base/values.h" | 9 #include "base/values.h" |
10 #include "chrome/browser/drive/drive_service_interface.h" | 10 #include "chrome/browser/drive/drive_service_interface.h" |
(...skipping 14 matching lines...) Expand all Loading... |
25 // 2) Return valid responses based on the the in-memory resource list. | 25 // 2) Return valid responses based on the the in-memory resource list. |
26 // 3) Update the in-memory resource list by requests like DeleteResource(). | 26 // 3) Update the in-memory resource list by requests like DeleteResource(). |
27 class FakeDriveService : public DriveServiceInterface { | 27 class FakeDriveService : public DriveServiceInterface { |
28 public: | 28 public: |
29 FakeDriveService(); | 29 FakeDriveService(); |
30 virtual ~FakeDriveService(); | 30 virtual ~FakeDriveService(); |
31 | 31 |
32 // Loads the resource list for WAPI. Returns true on success. | 32 // Loads the resource list for WAPI. Returns true on success. |
33 bool LoadResourceListForWapi(const std::string& relative_path); | 33 bool LoadResourceListForWapi(const std::string& relative_path); |
34 | 34 |
| 35 // DEPRECATED DO NOT USE |
| 36 // |
35 // Loads the account metadata for WAPI. Returns true on success. Also adds | 37 // Loads the account metadata for WAPI. Returns true on success. Also adds |
36 // the largest changestamp in the account metadata to the existing | 38 // the largest changestamp in the account metadata to the existing |
37 // entries. The changestamp information will be used to generate change | 39 // entries. The changestamp information will be used to generate change |
38 // lists in GetResourceList() when non-zero |start_changestamp| is | 40 // lists in GetResourceList() when non-zero |start_changestamp| is |
39 // specified. | 41 // specified. |
40 bool LoadAccountMetadataForWapi(const std::string& relative_path); | 42 bool LoadAccountMetadataForWapi(const std::string& relative_path); |
41 | 43 |
42 // Loads the app list for Drive API. Returns true on success. | 44 // Loads the app list for Drive API. Returns true on success. |
43 bool LoadAppListForDriveApi(const std::string& relative_path); | 45 bool LoadAppListForDriveApi(const std::string& relative_path); |
44 | 46 |
(...skipping 289 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
334 bool never_return_all_resource_list_; | 336 bool never_return_all_resource_list_; |
335 base::FilePath last_cancelled_file_; | 337 base::FilePath last_cancelled_file_; |
336 GURL share_url_base_; | 338 GURL share_url_base_; |
337 | 339 |
338 DISALLOW_COPY_AND_ASSIGN(FakeDriveService); | 340 DISALLOW_COPY_AND_ASSIGN(FakeDriveService); |
339 }; | 341 }; |
340 | 342 |
341 } // namespace drive | 343 } // namespace drive |
342 | 344 |
343 #endif // CHROME_BROWSER_DRIVE_FAKE_DRIVE_SERVICE_H_ | 345 #endif // CHROME_BROWSER_DRIVE_FAKE_DRIVE_SERVICE_H_ |
OLD | NEW |