| 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 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 106 protected: | 106 protected: |
| 107 // AsyncExtensionFunction overrides. | 107 // AsyncExtensionFunction overrides. |
| 108 virtual bool RunImpl() OVERRIDE; | 108 virtual bool RunImpl() OVERRIDE; |
| 109 | 109 |
| 110 private: | 110 private: |
| 111 class Executor; | 111 class Executor; |
| 112 | 112 |
| 113 DECLARE_EXTENSION_FUNCTION_NAME("fileBrowserPrivate.executeTask"); | 113 DECLARE_EXTENSION_FUNCTION_NAME("fileBrowserPrivate.executeTask"); |
| 114 }; | 114 }; |
| 115 | 115 |
| 116 // Implements the chrome.fileBrowserPrivate.setDefaultTask method. |
| 117 class SetDefaultTaskFileBrowserFunction : public SyncExtensionFunction { |
| 118 public: |
| 119 SetDefaultTaskFileBrowserFunction(); |
| 120 virtual ~SetDefaultTaskFileBrowserFunction(); |
| 121 |
| 122 protected: |
| 123 // AsyncExtensionFunction overrides. |
| 124 virtual bool RunImpl() OVERRIDE; |
| 125 |
| 126 DECLARE_EXTENSION_FUNCTION_NAME("fileBrowserPrivate.setDefaultTask"); |
| 127 }; |
| 128 |
| 116 // Parent class for the chromium extension APIs for the file dialog. | 129 // Parent class for the chromium extension APIs for the file dialog. |
| 117 class FileBrowserFunction | 130 class FileBrowserFunction |
| 118 : public AsyncExtensionFunction { | 131 : public AsyncExtensionFunction { |
| 119 public: | 132 public: |
| 120 FileBrowserFunction(); | 133 FileBrowserFunction(); |
| 121 | 134 |
| 122 protected: | 135 protected: |
| 123 typedef std::vector<GURL> UrlList; | 136 typedef std::vector<GURL> UrlList; |
| 124 typedef std::vector<content::SelectedFileInfo> SelectedFileInfoList; | 137 typedef std::vector<content::SelectedFileInfo> SelectedFileInfoList; |
| 125 typedef base::Callback<void(const SelectedFileInfoList&)> | 138 typedef base::Callback<void(const SelectedFileInfoList&)> |
| (...skipping 487 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 613 // Implements the chrome.fileBrowserPrivate.requestDirectoryRefresh method. | 626 // Implements the chrome.fileBrowserPrivate.requestDirectoryRefresh method. |
| 614 class RequestDirectoryRefreshFunction : public SyncExtensionFunction { | 627 class RequestDirectoryRefreshFunction : public SyncExtensionFunction { |
| 615 protected: | 628 protected: |
| 616 virtual bool RunImpl() OVERRIDE; | 629 virtual bool RunImpl() OVERRIDE; |
| 617 private: | 630 private: |
| 618 DECLARE_EXTENSION_FUNCTION_NAME( | 631 DECLARE_EXTENSION_FUNCTION_NAME( |
| 619 "fileBrowserPrivate.requestDirectoryRefresh"); | 632 "fileBrowserPrivate.requestDirectoryRefresh"); |
| 620 }; | 633 }; |
| 621 | 634 |
| 622 #endif // CHROME_BROWSER_CHROMEOS_EXTENSIONS_FILE_BROWSER_PRIVATE_API_H_ | 635 #endif // CHROME_BROWSER_CHROMEOS_EXTENSIONS_FILE_BROWSER_PRIVATE_API_H_ |
| OLD | NEW |