| 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_CHROMEOS_DRIVE_FILE_SYSTEM_INTERFACE_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_DRIVE_FILE_SYSTEM_INTERFACE_H_ |
| 6 #define CHROME_BROWSER_CHROMEOS_DRIVE_FILE_SYSTEM_INTERFACE_H_ | 6 #define CHROME_BROWSER_CHROMEOS_DRIVE_FILE_SYSTEM_INTERFACE_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| 11 #include "base/memory/scoped_ptr.h" | 11 #include "base/memory/scoped_ptr.h" |
| 12 #include "chrome/browser/chromeos/drive/drive.pb.h" | 12 #include "chrome/browser/chromeos/drive/drive.pb.h" |
| 13 #include "chrome/browser/chromeos/drive/file_system_metadata.h" | 13 #include "chrome/browser/chromeos/drive/file_system_metadata.h" |
| 14 #include "chrome/browser/chromeos/drive/resource_metadata.h" | 14 #include "chrome/browser/chromeos/drive/resource_metadata.h" |
| 15 #include "chrome/browser/google_apis/base_requests.h" | 15 #include "google_apis/drive/base_requests.h" |
| 16 | 16 |
| 17 namespace drive { | 17 namespace drive { |
| 18 | 18 |
| 19 class FileSystemObserver; | 19 class FileSystemObserver; |
| 20 | 20 |
| 21 // Information about search result returned by Search Async callback. | 21 // Information about search result returned by Search Async callback. |
| 22 // This is data needed to create a file system entry that will be used by file | 22 // This is data needed to create a file system entry that will be used by file |
| 23 // browser. | 23 // browser. |
| 24 struct SearchResultInfo { | 24 struct SearchResultInfo { |
| 25 SearchResultInfo(const base::FilePath& path, bool is_directory) | 25 SearchResultInfo(const base::FilePath& path, bool is_directory) |
| (...skipping 402 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 428 virtual void GetCacheEntry(const base::FilePath& drive_file_path, | 428 virtual void GetCacheEntry(const base::FilePath& drive_file_path, |
| 429 const GetCacheEntryCallback& callback) = 0; | 429 const GetCacheEntryCallback& callback) = 0; |
| 430 | 430 |
| 431 // Reloads the resource metadata from the server. | 431 // Reloads the resource metadata from the server. |
| 432 virtual void Reload(const FileOperationCallback& callback) = 0; | 432 virtual void Reload(const FileOperationCallback& callback) = 0; |
| 433 }; | 433 }; |
| 434 | 434 |
| 435 } // namespace drive | 435 } // namespace drive |
| 436 | 436 |
| 437 #endif // CHROME_BROWSER_CHROMEOS_DRIVE_FILE_SYSTEM_INTERFACE_H_ | 437 #endif // CHROME_BROWSER_CHROMEOS_DRIVE_FILE_SYSTEM_INTERFACE_H_ |
| OLD | NEW |