| 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 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <map> | 9 #include <map> |
| 10 #include <string> | 10 #include <string> |
| (...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 109 protected: | 109 protected: |
| 110 // AsyncExtensionFunction overrides. | 110 // AsyncExtensionFunction overrides. |
| 111 virtual bool RunImpl() OVERRIDE; | 111 virtual bool RunImpl() OVERRIDE; |
| 112 | 112 |
| 113 private: | 113 private: |
| 114 class Executor; | 114 class Executor; |
| 115 | 115 |
| 116 DECLARE_EXTENSION_FUNCTION_NAME("fileBrowserPrivate.executeTask"); | 116 DECLARE_EXTENSION_FUNCTION_NAME("fileBrowserPrivate.executeTask"); |
| 117 }; | 117 }; |
| 118 | 118 |
| 119 // Implements the chrome.fileBrowserPrivate.setDefaultTask method. |
| 120 class SetDefaultTaskFileBrowserFunction : public AsyncExtensionFunction { |
| 121 public: |
| 122 SetDefaultTaskFileBrowserFunction(); |
| 123 virtual ~SetDefaultTaskFileBrowserFunction(); |
| 124 |
| 125 protected: |
| 126 // AsyncExtensionFunction overrides. |
| 127 virtual bool RunImpl() OVERRIDE; |
| 128 |
| 129 DECLARE_EXTENSION_FUNCTION_NAME("fileBrowserPrivate.setDefaultTask"); |
| 130 }; |
| 131 |
| 119 // Parent class for the chromium extension APIs for the file dialog. | 132 // Parent class for the chromium extension APIs for the file dialog. |
| 120 class FileBrowserFunction | 133 class FileBrowserFunction |
| 121 : public AsyncExtensionFunction { | 134 : public AsyncExtensionFunction { |
| 122 public: | 135 public: |
| 123 FileBrowserFunction(); | 136 FileBrowserFunction(); |
| 124 | 137 |
| 125 protected: | 138 protected: |
| 126 typedef std::vector<GURL> UrlList; | 139 typedef std::vector<GURL> UrlList; |
| 127 typedef std::vector<content::SelectedFileInfo> SelectedFileInfoList; | 140 typedef std::vector<content::SelectedFileInfo> SelectedFileInfoList; |
| 128 typedef base::Callback<void(const SelectedFileInfoList&)> | 141 typedef base::Callback<void(const SelectedFileInfoList&)> |
| (...skipping 478 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 607 // Implements the chrome.fileBrowserPrivate.getNetworkConnectionState method. | 620 // Implements the chrome.fileBrowserPrivate.getNetworkConnectionState method. |
| 608 class GetNetworkConnectionStateFunction : public SyncExtensionFunction { | 621 class GetNetworkConnectionStateFunction : public SyncExtensionFunction { |
| 609 protected: | 622 protected: |
| 610 virtual bool RunImpl() OVERRIDE; | 623 virtual bool RunImpl() OVERRIDE; |
| 611 private: | 624 private: |
| 612 DECLARE_EXTENSION_FUNCTION_NAME( | 625 DECLARE_EXTENSION_FUNCTION_NAME( |
| 613 "fileBrowserPrivate.getNetworkConnectionState"); | 626 "fileBrowserPrivate.getNetworkConnectionState"); |
| 614 }; | 627 }; |
| 615 | 628 |
| 616 #endif // CHROME_BROWSER_CHROMEOS_EXTENSIONS_FILE_BROWSER_PRIVATE_API_H_ | 629 #endif // CHROME_BROWSER_CHROMEOS_EXTENSIONS_FILE_BROWSER_PRIVATE_API_H_ |
| OLD | NEW |