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

Unified Diff: chrome/renderer/extensions/extension_helper.h

Issue 6735004: Move extension messages to their own file and add a RenderViewObserver to start moving the extens... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 9 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
« no previous file with comments | « chrome/renderer/extensions/event_bindings.cc ('k') | chrome/renderer/extensions/extension_helper.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/renderer/extensions/extension_helper.h
===================================================================
--- chrome/renderer/extensions/extension_helper.h (revision 0)
+++ chrome/renderer/extensions/extension_helper.h (revision 0)
@@ -0,0 +1,36 @@
+// Copyright (c) 2011 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_RENDERER_EXTENSIONS_EXTENSION_HELPER_H_
+#define CHROME_RENDERER_EXTENSIONS_EXTENSION_HELPER_H_
+#pragma once
+
+#include "content/renderer/render_view_observer.h"
+
+class GURL;
+class ListValue;
+
+// Filters extension related messages sent to RenderViews.
+class ExtensionHelper : public RenderViewObserver {
+ public:
+ explicit ExtensionHelper(RenderView* render_view);
+ virtual ~ExtensionHelper();
+
+ private:
+ // RenderViewObserver implementation.
+ virtual bool OnMessageReceived(const IPC::Message& message);
+
+ void OnExtensionResponse(int request_id, bool success,
+ const std::string& response,
+ const std::string& error);
+ void OnExtensionMessageInvoke(const std::string& extension_id,
+ const std::string& function_name,
+ const ListValue& args,
+ const GURL& event_url);
+
+
+ DISALLOW_COPY_AND_ASSIGN(ExtensionHelper);
+};
+
+#endif // CHROME_RENDERER_EXTENSIONS_EXTENSION_HELPER_H_
Property changes on: chrome\renderer\extensions\extension_helper.h
___________________________________________________________________
Added: svn:eol-style
+ LF
« no previous file with comments | « chrome/renderer/extensions/event_bindings.cc ('k') | chrome/renderer/extensions/extension_helper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698