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

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

Issue 10270031: Add a first-class off-store install UI to chrome://extensions/. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: AppEngine, you suck Created 8 years, 8 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/install_extension_handler.h
diff --git a/chrome/browser/ui/webui/extensions/install_extension_handler.h b/chrome/browser/ui/webui/extensions/install_extension_handler.h
new file mode 100644
index 0000000000000000000000000000000000000000..64a0f6230c14def4428ad3840c92a1a55237e9ba
--- /dev/null
+++ b/chrome/browser/ui/webui/extensions/install_extension_handler.h
@@ -0,0 +1,33 @@
+// Copyright (c) 2012 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_INSTALL_EXTENSION_HANDLER_H_
+#define CHROME_BROWSER_UI_WEBUI_EXTENSIONS_INSTALL_EXTENSION_HANDLER_H_
+#pragma once
+
+#include "base/file_path.h"
+#include "base/values.h"
+#include "content/public/browser/web_ui_message_handler.h"
+
+class InstallExtensionHandler : public content::WebUIMessageHandler {
James Hawkins 2012/05/01 23:13:36 nit: Document class.
Aaron Boodman 2012/05/02 00:41:36 Done.
+ public:
+ InstallExtensionHandler();
+ virtual ~InstallExtensionHandler();
+
+ void GetLocalizedValues(DictionaryValue* localized_strings);
+
+ // WebUIMessageHandler implementation.
+ virtual void RegisterMessages() OVERRIDE;
+
+ private:
+ void HandleStartDragMessage(const ListValue* args);
+ void HandleStopDragMessage(const ListValue* args);
+ void HandleInstallMessage(const ListValue* args);
+
+ FilePath file_to_install_;
James Hawkins 2012/05/01 23:13:36 nit: Document member var. The var name alone is n
Aaron Boodman 2012/05/02 00:41:36 Done.
+
+ DISALLOW_COPY_AND_ASSIGN(InstallExtensionHandler);
+};
+
+#endif // CHROME_BROWSER_UI_WEBUI_EXTENSIONS_INSTALL_EXTENSION_HANDLER_H_

Powered by Google App Engine
This is Rietveld 408576698