| 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_EXTENSIONS_FILE_BROWSER_PRIVATE_API_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_EXTENSIONS_FILE_BROWSER_PRIVATE_API_H_ |
| 6 #define CHROME_BROWSER_CHROMEOS_EXTENSIONS_FILE_BROWSER_PRIVATE_API_H_ | 6 #define CHROME_BROWSER_CHROMEOS_EXTENSIONS_FILE_BROWSER_PRIVATE_API_H_ |
| 7 | 7 |
| 8 #include <map> | 8 #include <map> |
| 9 #include <string> | 9 #include <string> |
| 10 #include <queue> | 10 #include <queue> |
| (...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 65 virtual bool PerformFileWatchOperation( | 65 virtual bool PerformFileWatchOperation( |
| 66 scoped_refptr<FileBrowserEventRouter> event_router, | 66 scoped_refptr<FileBrowserEventRouter> event_router, |
| 67 const FilePath& local_path, const FilePath& virtual_path, | 67 const FilePath& local_path, const FilePath& virtual_path, |
| 68 const std::string& extension_id) = 0; | 68 const std::string& extension_id) = 0; |
| 69 | 69 |
| 70 // AsyncExtensionFunction overrides. | 70 // AsyncExtensionFunction overrides. |
| 71 virtual bool RunImpl() OVERRIDE; | 71 virtual bool RunImpl() OVERRIDE; |
| 72 | 72 |
| 73 private: | 73 private: |
| 74 bool GetLocalFilePath( | 74 bool GetLocalFilePath( |
| 75 scoped_refptr<fileapi::FileSystemContext> file_system_context, | |
| 76 const GURL& file_url, FilePath* local_path, FilePath* virtual_path); | 75 const GURL& file_url, FilePath* local_path, FilePath* virtual_path); |
| 77 void RespondOnUIThread(bool success); | 76 void RespondOnUIThread(bool success); |
| 78 void RunFileWatchOperationOnFileThread( | 77 void RunFileWatchOperationOnFileThread( |
| 79 scoped_refptr<fileapi::FileSystemContext> file_system_context, | 78 scoped_refptr<fileapi::FileSystemContext> file_system_context, |
| 80 scoped_refptr<FileBrowserEventRouter> event_router, | 79 scoped_refptr<FileBrowserEventRouter> event_router, |
| 81 const GURL& file_url, | 80 const GURL& file_url, |
| 82 const std::string& extension_id); | 81 const std::string& extension_id); |
| 83 }; | 82 }; |
| 84 | 83 |
| 85 // Implements the chrome.fileBrowserPrivate.addFileWatch method. | 84 // Implements the chrome.fileBrowserPrivate.addFileWatch method. |
| (...skipping 616 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 702 DECLARE_EXTENSION_FUNCTION_NAME( | 701 DECLARE_EXTENSION_FUNCTION_NAME( |
| 703 "fileBrowserPrivate.requestDirectoryRefresh"); | 702 "fileBrowserPrivate.requestDirectoryRefresh"); |
| 704 | 703 |
| 705 protected: | 704 protected: |
| 706 virtual ~RequestDirectoryRefreshFunction() {} | 705 virtual ~RequestDirectoryRefreshFunction() {} |
| 707 | 706 |
| 708 virtual bool RunImpl() OVERRIDE; | 707 virtual bool RunImpl() OVERRIDE; |
| 709 }; | 708 }; |
| 710 | 709 |
| 711 #endif // CHROME_BROWSER_CHROMEOS_EXTENSIONS_FILE_BROWSER_PRIVATE_API_H_ | 710 #endif // CHROME_BROWSER_CHROMEOS_EXTENSIONS_FILE_BROWSER_PRIVATE_API_H_ |
| OLD | NEW |