| 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/chromeos/gdata/gdata.h" | 14 #include "chrome/browser/chromeos/gdata/gdata.h" |
| 15 #include "chrome/browser/extensions/extension_function.h" | 15 #include "chrome/browser/extensions/extension_function.h" |
| 16 #include "googleurl/src/url_util.h" | 16 #include "googleurl/src/url_util.h" |
| 17 #include "webkit/fileapi/file_system_callback_dispatcher.h" |
| 17 | 18 |
| 18 class GURL; | 19 class GURL; |
| 19 | 20 |
| 20 // Implements the chrome.fileBrowserPrivate.requestLocalFileSystem method. | 21 // Implements the chrome.fileBrowserPrivate.requestLocalFileSystem method. |
| 21 class RequestLocalFileSystemFunction : public AsyncExtensionFunction { | 22 class RequestLocalFileSystemFunction : public AsyncExtensionFunction { |
| 22 protected: | 23 protected: |
| 23 // AsyncExtensionFunction overrides. | 24 // AsyncExtensionFunction overrides. |
| 24 virtual bool RunImpl() OVERRIDE; | 25 virtual bool RunImpl() OVERRIDE; |
| 25 | 26 |
| 26 private: | 27 private: |
| (...skipping 325 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 352 virtual ~FileDialogStringsFunction() {} | 353 virtual ~FileDialogStringsFunction() {} |
| 353 | 354 |
| 354 // SyncExtensionFunction overrides. | 355 // SyncExtensionFunction overrides. |
| 355 virtual bool RunImpl() OVERRIDE; | 356 virtual bool RunImpl() OVERRIDE; |
| 356 | 357 |
| 357 private: | 358 private: |
| 358 DECLARE_EXTENSION_FUNCTION_NAME("fileBrowserPrivate.getStrings"); | 359 DECLARE_EXTENSION_FUNCTION_NAME("fileBrowserPrivate.getStrings"); |
| 359 }; | 360 }; |
| 360 | 361 |
| 361 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_FILE_BROWSER_PRIVATE_API_H_ | 362 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_FILE_BROWSER_PRIVATE_API_H_ |
| OLD | NEW |