| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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_EXTENSIONS_UI_H_ | 5 #ifndef CHROME_BROWSER_EXTENSIONS_EXTENSIONS_UI_H_ |
| 6 #define CHROME_BROWSER_EXTENSIONS_EXTENSIONS_UI_H_ | 6 #define CHROME_BROWSER_EXTENSIONS_EXTENSIONS_UI_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <string> | 9 #include <string> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 117 | 117 |
| 118 // ContentScript JSON Struct for page. (static for ease of testing). | 118 // ContentScript JSON Struct for page. (static for ease of testing). |
| 119 static DictionaryValue* CreateContentScriptDetailValue( | 119 static DictionaryValue* CreateContentScriptDetailValue( |
| 120 const UserScript& script, | 120 const UserScript& script, |
| 121 const FilePath& extension_path); | 121 const FilePath& extension_path); |
| 122 | 122 |
| 123 // ExtensionPackJob::Client | 123 // ExtensionPackJob::Client |
| 124 virtual void OnPackSuccess(const FilePath& crx_file, | 124 virtual void OnPackSuccess(const FilePath& crx_file, |
| 125 const FilePath& key_file); | 125 const FilePath& key_file); |
| 126 | 126 |
| 127 virtual void OnPackFailure(const std::string& message); | 127 virtual void OnPackFailure(const std::string& error); |
| 128 | 128 |
| 129 // ExtensionInstallUI::Delegate implementation, used for receiving | 129 // ExtensionInstallUI::Delegate implementation, used for receiving |
| 130 // notification about uninstall confirmation dialog selections. | 130 // notification about uninstall confirmation dialog selections. |
| 131 virtual void InstallUIProceed(bool create_app_shortcut); | 131 virtual void InstallUIProceed(bool create_app_shortcut); |
| 132 virtual void InstallUIAbort(); | 132 virtual void InstallUIAbort(); |
| 133 | 133 |
| 134 private: | 134 private: |
| 135 // Callback for "requestExtensionsData" message. | 135 // Callback for "requestExtensionsData" message. |
| 136 void HandleRequestExtensionsData(const Value* value); | 136 void HandleRequestExtensionsData(const Value* value); |
| 137 | 137 |
| (...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 258 | 258 |
| 259 static RefCountedMemory* GetFaviconResourceBytes(); | 259 static RefCountedMemory* GetFaviconResourceBytes(); |
| 260 | 260 |
| 261 static void RegisterUserPrefs(PrefService* prefs); | 261 static void RegisterUserPrefs(PrefService* prefs); |
| 262 | 262 |
| 263 private: | 263 private: |
| 264 DISALLOW_COPY_AND_ASSIGN(ExtensionsUI); | 264 DISALLOW_COPY_AND_ASSIGN(ExtensionsUI); |
| 265 }; | 265 }; |
| 266 | 266 |
| 267 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSIONS_UI_H_ | 267 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSIONS_UI_H_ |
| OLD | NEW |