| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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_ERROR_HANDLER_H_ | 5 #ifndef CHROME_BROWSER_UI_WEBUI_EXTENSIONS_EXTENSION_ERROR_HANDLER_H_ |
| 6 #define CHROME_BROWSER_UI_WEBUI_EXTENSIONS_EXTENSION_ERROR_HANDLER_H_ | 6 #define CHROME_BROWSER_UI_WEBUI_EXTENSIONS_EXTENSION_ERROR_HANDLER_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
| (...skipping 19 matching lines...) Expand all Loading... |
| 30 // The handler page for the Extension Commands UI overlay. | 30 // The handler page for the Extension Commands UI overlay. |
| 31 class ExtensionErrorHandler : public content::WebUIMessageHandler { | 31 class ExtensionErrorHandler : public content::WebUIMessageHandler { |
| 32 public: | 32 public: |
| 33 explicit ExtensionErrorHandler(Profile* profile); | 33 explicit ExtensionErrorHandler(Profile* profile); |
| 34 virtual ~ExtensionErrorHandler(); | 34 virtual ~ExtensionErrorHandler(); |
| 35 | 35 |
| 36 // Fetches the localized values for the page and deposits them into |source|. | 36 // Fetches the localized values for the page and deposits them into |source|. |
| 37 void GetLocalizedValues(content::WebUIDataSource* source); | 37 void GetLocalizedValues(content::WebUIDataSource* source); |
| 38 | 38 |
| 39 // WebUIMessageHandler implementation. | 39 // WebUIMessageHandler implementation. |
| 40 virtual void RegisterMessages() OVERRIDE; | 40 virtual void RegisterMessages() override; |
| 41 | 41 |
| 42 private: | 42 private: |
| 43 friend class ManifestHighlightUnitTest; | 43 friend class ManifestHighlightUnitTest; |
| 44 | 44 |
| 45 // Handle the "requestFileSource" call. | 45 // Handle the "requestFileSource" call. |
| 46 void HandleRequestFileSource(const base::ListValue* args); | 46 void HandleRequestFileSource(const base::ListValue* args); |
| 47 | 47 |
| 48 // Called when |error_ui_util::HandleRequestFileSource| finishes. | 48 // Called when |error_ui_util::HandleRequestFileSource| finishes. |
| 49 void OnFileSourceHandled(const base::DictionaryValue& source); | 49 void OnFileSourceHandled(const base::DictionaryValue& source); |
| 50 | 50 |
| (...skipping 21 matching lines...) Expand all Loading... |
| 72 | 72 |
| 73 // Weak pointer factory for posting background tasks. | 73 // Weak pointer factory for posting background tasks. |
| 74 base::WeakPtrFactory<ExtensionErrorHandler> weak_ptr_factory_; | 74 base::WeakPtrFactory<ExtensionErrorHandler> weak_ptr_factory_; |
| 75 | 75 |
| 76 DISALLOW_COPY_AND_ASSIGN(ExtensionErrorHandler); | 76 DISALLOW_COPY_AND_ASSIGN(ExtensionErrorHandler); |
| 77 }; | 77 }; |
| 78 | 78 |
| 79 } // namespace extensions | 79 } // namespace extensions |
| 80 | 80 |
| 81 #endif // CHROME_BROWSER_UI_WEBUI_EXTENSIONS_EXTENSION_ERROR_HANDLER_H_ | 81 #endif // CHROME_BROWSER_UI_WEBUI_EXTENSIONS_EXTENSION_ERROR_HANDLER_H_ |
| OLD | NEW |