| Index: chrome/browser/ui/webui/extensions/extension_error_ui_util.h
|
| diff --git a/chrome/browser/ui/webui/extensions/extension_error_ui_util.h b/chrome/browser/ui/webui/extensions/extension_error_ui_util.h
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..249da6350a253df812361f80cb9531493a61ff56
|
| --- /dev/null
|
| +++ b/chrome/browser/ui/webui/extensions/extension_error_ui_util.h
|
| @@ -0,0 +1,36 @@
|
| +// Copyright 2014 The Chromium Authors. All rights reserved.
|
| +// Use of this source code is governed by a BSD-style license that can be
|
| +// found in the LICENSE file.
|
| +
|
| +#ifndef CHROME_BROWSER_UI_WEBUI_EXTENSIONS_EXTENSION_ERROR_UI_UTIL_H_
|
| +#define CHROME_BROWSER_UI_WEBUI_EXTENSIONS_EXTENSION_ERROR_UI_UTIL_H_
|
| +
|
| +#include "base/callback.h"
|
| +
|
| +class Profile;
|
| +
|
| +namespace base {
|
| +class DictionaryValue;
|
| +}
|
| +
|
| +namespace extensions {
|
| +namespace error_ui_util {
|
| +
|
| +typedef base::Callback<void(const base::DictionaryValue&)>
|
| + RequestFileSourceCallback;
|
| +
|
| +// Read an extension's file which caused an error. |args| specifies the file to
|
| +// be read and extra details about the file, |profile| is the active profile to
|
| +// use, and |response| is called upon completed.
|
| +void HandleRequestFileSource(const base::DictionaryValue* args,
|
| + Profile* profile,
|
| + const RequestFileSourceCallback& response);
|
| +
|
| +// Open the Developer Tools to inspect an error caused by an extension. |args|
|
| +// specify the context in which the error occurred.
|
| +void HandleOpenDevTools(const base::DictionaryValue* args);
|
| +
|
| +} // namespace error_ui_util
|
| +} // namespace extensions
|
| +
|
| +#endif // CHROME_BROWSER_UI_WEBUI_EXTENSIONS_EXTENSION_ERROR_UI_UTIL_H_
|
|
|