| 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 "google_apis/drive/base_requests.h" | 15 #include "google_apis/drive/base_requests.h" |
| 16 #include "google_apis/drive/drive_api_requests.h" |
| 16 | 17 |
| 17 namespace drive { | 18 namespace drive { |
| 18 | 19 |
| 19 class FileSystemObserver; | 20 class FileSystemObserver; |
| 20 | 21 |
| 21 // Information about search result returned by Search Async callback. | 22 // 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 | 23 // This is data needed to create a file system entry that will be used by file |
| 23 // browser. | 24 // browser. |
| 24 struct SearchResultInfo { | 25 struct SearchResultInfo { |
| 25 SearchResultInfo(const base::FilePath& path, bool is_directory) | 26 SearchResultInfo(const base::FilePath& path, bool is_directory) |
| (...skipping 396 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 422 virtual void Reset(const FileOperationCallback& callback) = 0; | 423 virtual void Reset(const FileOperationCallback& callback) = 0; |
| 423 | 424 |
| 424 // Finds a path of an entry (a file or a directory) by |resource_id|. | 425 // Finds a path of an entry (a file or a directory) by |resource_id|. |
| 425 virtual void GetPathFromResourceId(const std::string& resource_id, | 426 virtual void GetPathFromResourceId(const std::string& resource_id, |
| 426 const GetFilePathCallback& callback) = 0; | 427 const GetFilePathCallback& callback) = 0; |
| 427 }; | 428 }; |
| 428 | 429 |
| 429 } // namespace drive | 430 } // namespace drive |
| 430 | 431 |
| 431 #endif // CHROME_BROWSER_CHROMEOS_DRIVE_FILE_SYSTEM_INTERFACE_H_ | 432 #endif // CHROME_BROWSER_CHROMEOS_DRIVE_FILE_SYSTEM_INTERFACE_H_ |
| OLD | NEW |