Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(3689)

Unified Diff: chrome/browser/ui/webui/extensions/extension_error_handler.h

Issue 22938005: Add ErrorConsole UI for Extension Install Warnings (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@dc_ec_install_warnings
Patch Set: License Created 7 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/ui/webui/extensions/extension_error_handler.h
diff --git a/chrome/browser/ui/webui/extensions/extension_error_handler.h b/chrome/browser/ui/webui/extensions/extension_error_handler.h
new file mode 100644
index 0000000000000000000000000000000000000000..75079fa246306cc138b093b17a65668039b4f23a
--- /dev/null
+++ b/chrome/browser/ui/webui/extensions/extension_error_handler.h
@@ -0,0 +1,64 @@
+// Copyright 2013 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_HANDLER_H_
+#define CHROME_BROWSER_UI_WEBUI_EXTENSIONS_EXTENSION_ERROR_HANDLER_H_
+
+#include <string>
+
+#include "base/basictypes.h"
+#include "base/compiler_specific.h"
+#include "content/public/browser/web_ui_message_handler.h"
+
+namespace base {
+class DictionaryValue;
+class ListValue;
+}
+
+namespace content {
+class WebUIDataSource;
+}
+
+class Profile;
+
+namespace extensions {
+
+class Extension;
+
+// The handler page for the Extension Commands UI overlay.
+class ExtensionErrorHandler : public content::WebUIMessageHandler {
+ public:
+ explicit ExtensionErrorHandler(Profile* profile);
+ virtual ~ExtensionErrorHandler();
+
+ // Fetches the localized values for the page and deposits them into |source|.
+ void GetLocalizedValues(content::WebUIDataSource* source);
+
+ // WebUIMessageHandler implementation.
+ virtual void RegisterMessages() OVERRIDE;
+
+ private:
+ friend class ManifestHighlightUnitTest;
+
+ // Handle the "requestFileSource" call.
+ void HandleRequestFileSource(const base::ListValue* args);
+
+ // Populate the results for a manifest file's content in response to the
+ // "requestFileSource" call. Highlight the part of the manifest which
+ // corresponds to the given |key| and |specific| locations. Caller owns
+ // |dict| and |contents|.
+ void GetManifestFileCallback(base::DictionaryValue* dict,
+ const std::string& key,
+ const std::string& specific,
+ std::string* contents);
+
+ // The profile with which this Handler is associated.
+ Profile* profile_;
+
+ DISALLOW_COPY_AND_ASSIGN(ExtensionErrorHandler);
+};
+
+} // namespace extensions
+
+#endif // CHROME_BROWSER_UI_WEBUI_EXTENSIONS_EXTENSION_ERROR_HANDLER_H_
« no previous file with comments | « chrome/browser/resources/extensions/extensions.js ('k') | chrome/browser/ui/webui/extensions/extension_error_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698