| 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_UI_WEBUI_EXTENSIONS_INSTALL_EXTENSION_HANDLER_H_ | 5 #ifndef CHROME_BROWSER_UI_WEBUI_EXTENSIONS_INSTALL_EXTENSION_HANDLER_H_ |
| 6 #define CHROME_BROWSER_UI_WEBUI_EXTENSIONS_INSTALL_EXTENSION_HANDLER_H_ | 6 #define CHROME_BROWSER_UI_WEBUI_EXTENSIONS_INSTALL_EXTENSION_HANDLER_H_ |
| 7 | 7 |
| 8 #include "base/files/file_path.h" | 8 #include "base/files/file_path.h" |
| 9 #include "base/strings/string16.h" | 9 #include "base/strings/string16.h" |
| 10 #include "base/values.h" | 10 #include "base/values.h" |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 45 // getting XSS'd. | 45 // getting XSS'd. |
| 46 void HandleInstallMessage(const base::ListValue* args); | 46 void HandleInstallMessage(const base::ListValue* args); |
| 47 | 47 |
| 48 // Handles a notification from the JavaScript to install the directory | 48 // Handles a notification from the JavaScript to install the directory |
| 49 // currently being dragged. | 49 // currently being dragged. |
| 50 void HandleInstallDirectoryMessage(const base::ListValue* args); | 50 void HandleInstallDirectoryMessage(const base::ListValue* args); |
| 51 | 51 |
| 52 // The path to the file that will be installed when HandleInstallMessage() is | 52 // The path to the file that will be installed when HandleInstallMessage() is |
| 53 // called. | 53 // called. |
| 54 base::FilePath file_to_install_; | 54 base::FilePath file_to_install_; |
| 55 base::string16 file_display_name_; | 55 base::FilePath file_display_name_; |
| 56 | 56 |
| 57 DISALLOW_COPY_AND_ASSIGN(InstallExtensionHandler); | 57 DISALLOW_COPY_AND_ASSIGN(InstallExtensionHandler); |
| 58 }; | 58 }; |
| 59 | 59 |
| 60 } // namespace extensions | 60 } // namespace extensions |
| 61 | 61 |
| 62 #endif // CHROME_BROWSER_UI_WEBUI_EXTENSIONS_INSTALL_EXTENSION_HANDLER_H_ | 62 #endif // CHROME_BROWSER_UI_WEBUI_EXTENSIONS_INSTALL_EXTENSION_HANDLER_H_ |
| OLD | NEW |