| 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_EXTENSIONS_EXTENSION_FILE_BROWSER_PRIVATE_API_H_ | 5 #ifndef CHROME_BROWSER_EXTENSIONS_EXTENSION_FILE_BROWSER_PRIVATE_API_H_ |
| 6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_FILE_BROWSER_PRIVATE_API_H_ | 6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_FILE_BROWSER_PRIVATE_API_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <map> | 9 #include <map> |
| 10 #include <string> | 10 #include <string> |
| 11 #include <vector> | 11 #include <vector> |
| 12 | 12 |
| 13 #include "base/platform_file.h" | 13 #include "base/platform_file.h" |
| 14 #include "chrome/browser/extensions/extension_function.h" | 14 #include "chrome/browser/extensions/extension_function.h" |
| 15 #include "googleurl/src/url_util.h" | 15 #include "googleurl/src/url_util.h" |
| 16 #include "webkit/fileapi/file_system_callback_dispatcher.h" | |
| 17 | 16 |
| 18 class GURL; | 17 class GURL; |
| 19 | 18 |
| 20 // Implements the chrome.fileBrowserPrivate.requestLocalFileSystem method. | 19 // Implements the chrome.fileBrowserPrivate.requestLocalFileSystem method. |
| 21 class RequestLocalFileSystemFunction : public AsyncExtensionFunction { | 20 class RequestLocalFileSystemFunction : public AsyncExtensionFunction { |
| 22 protected: | 21 protected: |
| 23 // AsyncExtensionFunction overrides. | 22 // AsyncExtensionFunction overrides. |
| 24 virtual bool RunImpl() OVERRIDE; | 23 virtual bool RunImpl() OVERRIDE; |
| 25 | 24 |
| 26 private: | 25 private: |
| (...skipping 319 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 346 virtual ~FileDialogStringsFunction() {} | 345 virtual ~FileDialogStringsFunction() {} |
| 347 | 346 |
| 348 // SyncExtensionFunction overrides. | 347 // SyncExtensionFunction overrides. |
| 349 virtual bool RunImpl() OVERRIDE; | 348 virtual bool RunImpl() OVERRIDE; |
| 350 | 349 |
| 351 private: | 350 private: |
| 352 DECLARE_EXTENSION_FUNCTION_NAME("fileBrowserPrivate.getStrings"); | 351 DECLARE_EXTENSION_FUNCTION_NAME("fileBrowserPrivate.getStrings"); |
| 353 }; | 352 }; |
| 354 | 353 |
| 355 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_FILE_BROWSER_PRIVATE_API_H_ | 354 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_FILE_BROWSER_PRIVATE_API_H_ |
| OLD | NEW |