| OLD | NEW |
| (Empty) |
| 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 | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef CHROME_BROWSER_UI_WEBUI_EXTENSIONS_EXTENSION_ERROR_UI_UTIL_H_ | |
| 6 #define CHROME_BROWSER_UI_WEBUI_EXTENSIONS_EXTENSION_ERROR_UI_UTIL_H_ | |
| 7 | |
| 8 #include "base/callback.h" | |
| 9 | |
| 10 class Profile; | |
| 11 | |
| 12 namespace base { | |
| 13 class DictionaryValue; | |
| 14 } | |
| 15 | |
| 16 namespace extensions { | |
| 17 namespace error_ui_util { | |
| 18 | |
| 19 typedef base::Callback<void(const base::DictionaryValue&)> | |
| 20 RequestFileSourceCallback; | |
| 21 | |
| 22 // Read an extension's file which caused an error. |args| specifies the file to | |
| 23 // be read and extra details about the file, |profile| is the active profile to | |
| 24 // use, and |response| is called upon completed. | |
| 25 void HandleRequestFileSource(const base::DictionaryValue* args, | |
| 26 Profile* profile, | |
| 27 const RequestFileSourceCallback& response); | |
| 28 | |
| 29 // Open the Developer Tools to inspect an error caused by an extension. |args| | |
| 30 // specify the context in which the error occurred. | |
| 31 void HandleOpenDevTools(const base::DictionaryValue* args); | |
| 32 | |
| 33 } // namespace error_ui_util | |
| 34 } // namespace extensions | |
| 35 | |
| 36 #endif // CHROME_BROWSER_UI_WEBUI_EXTENSIONS_EXTENSION_ERROR_UI_UTIL_H_ | |
| OLD | NEW |