| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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_EXTENSION_LOADER_HANDLER_H_ | 5 #ifndef CHROME_BROWSER_UI_WEBUI_EXTENSIONS_EXTENSION_LOADER_HANDLER_H_ |
| 6 #define CHROME_BROWSER_UI_WEBUI_EXTENSIONS_EXTENSION_LOADER_HANDLER_H_ | 6 #define CHROME_BROWSER_UI_WEBUI_EXTENSIONS_EXTENSION_LOADER_HANDLER_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
| 11 #include "base/files/file_path.h" | 11 #include "base/files/file_path.h" |
| 12 #include "base/macros.h" | 12 #include "base/macros.h" |
| 13 #include "base/memory/scoped_ptr.h" | 13 #include "base/memory/scoped_ptr.h" |
| 14 #include "base/memory/weak_ptr.h" | 14 #include "base/memory/weak_ptr.h" |
| 15 #include "content/public/browser/web_ui_message_handler.h" | 15 #include "content/public/browser/web_ui_message_handler.h" |
| 16 | 16 |
| 17 namespace base { | 17 namespace base { |
| 18 class ListValue; | 18 class ListValue; |
| 19 } | 19 } |
| 20 | 20 |
| 21 namespace content { | 21 namespace content { |
| 22 class WebUIDataSource; | 22 class WebUIDataSource; |
| 23 } | 23 } |
| 24 | 24 |
| 25 class ExtensionService; | |
| 26 class Profile; | 25 class Profile; |
| 27 | 26 |
| 28 namespace extensions { | 27 namespace extensions { |
| 29 | 28 |
| 30 class Extension; | 29 class Extension; |
| 31 | 30 |
| 32 // The handler page for the Extension Commands UI overlay. | 31 // The handler page for the Extension Commands UI overlay. |
| 33 class ExtensionLoaderHandler : public content::WebUIMessageHandler { | 32 class ExtensionLoaderHandler : public content::WebUIMessageHandler { |
| 34 public: | 33 public: |
| 35 explicit ExtensionLoaderHandler(Profile* profile); | 34 explicit ExtensionLoaderHandler(Profile* profile); |
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 76 | 75 |
| 77 // Weak pointer factory for posting background tasks. | 76 // Weak pointer factory for posting background tasks. |
| 78 base::WeakPtrFactory<ExtensionLoaderHandler> weak_ptr_factory_; | 77 base::WeakPtrFactory<ExtensionLoaderHandler> weak_ptr_factory_; |
| 79 | 78 |
| 80 DISALLOW_COPY_AND_ASSIGN(ExtensionLoaderHandler); | 79 DISALLOW_COPY_AND_ASSIGN(ExtensionLoaderHandler); |
| 81 }; | 80 }; |
| 82 | 81 |
| 83 } // namespace extensions | 82 } // namespace extensions |
| 84 | 83 |
| 85 #endif // CHROME_BROWSER_UI_WEBUI_EXTENSIONS_EXTENSION_LOADER_HANDLER_H_ | 84 #endif // CHROME_BROWSER_UI_WEBUI_EXTENSIONS_EXTENSION_LOADER_HANDLER_H_ |
| OLD | NEW |