| OLD | NEW |
| 1 // Copyright (c) 2006-2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2009 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 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 30 matching lines...) Expand all Loading... |
| 41 return "text/html"; | 41 return "text/html"; |
| 42 } | 42 } |
| 43 | 43 |
| 44 private: | 44 private: |
| 45 DISALLOW_COPY_AND_ASSIGN(ExtensionsUIHTMLSource); | 45 DISALLOW_COPY_AND_ASSIGN(ExtensionsUIHTMLSource); |
| 46 }; | 46 }; |
| 47 | 47 |
| 48 // The handler for Javascript messages related to the "extensions" view. | 48 // The handler for Javascript messages related to the "extensions" view. |
| 49 class ExtensionsDOMHandler : public DOMMessageHandler { | 49 class ExtensionsDOMHandler : public DOMMessageHandler { |
| 50 public: | 50 public: |
| 51 ExtensionsDOMHandler(DOMUI* dom_ui, | 51 ExtensionsDOMHandler(ExtensionsService* extension_service); |
| 52 ExtensionsService* extension_service); | |
| 53 | |
| 54 virtual ~ExtensionsDOMHandler(); | 52 virtual ~ExtensionsDOMHandler(); |
| 55 void Init(); | 53 |
| 54 // DOMMessageHandler implementation. |
| 55 virtual void RegisterMessages(); |
| 56 | 56 |
| 57 // Extension Detail JSON Struct for page. (static for ease of testing). | 57 // Extension Detail JSON Struct for page. (static for ease of testing). |
| 58 static DictionaryValue* CreateExtensionDetailValue( | 58 static DictionaryValue* CreateExtensionDetailValue( |
| 59 const Extension *extension, | 59 const Extension *extension, |
| 60 const std::vector<ExtensionPage>&); | 60 const std::vector<ExtensionPage>&); |
| 61 | 61 |
| 62 // ContentScript JSON Struct for page. (static for ease of testing). | 62 // ContentScript JSON Struct for page. (static for ease of testing). |
| 63 static DictionaryValue* CreateContentScriptDetailValue( | 63 static DictionaryValue* CreateContentScriptDetailValue( |
| 64 const UserScript& script, | 64 const UserScript& script, |
| 65 const FilePath& extension_path); | 65 const FilePath& extension_path); |
| (...skipping 20 matching lines...) Expand all Loading... |
| 86 | 86 |
| 87 class ExtensionsUI : public DOMUI { | 87 class ExtensionsUI : public DOMUI { |
| 88 public: | 88 public: |
| 89 explicit ExtensionsUI(TabContents* contents); | 89 explicit ExtensionsUI(TabContents* contents); |
| 90 | 90 |
| 91 private: | 91 private: |
| 92 DISALLOW_COPY_AND_ASSIGN(ExtensionsUI); | 92 DISALLOW_COPY_AND_ASSIGN(ExtensionsUI); |
| 93 }; | 93 }; |
| 94 | 94 |
| 95 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSIONS_UI_H_ | 95 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSIONS_UI_H_ |
| OLD | NEW |