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

Side by Side 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 unified diff | Download patch | Annotate | Revision Log
Property Changes:
Added: svn:eol-style
+ LF
OLDNEW
(Empty)
1 // Copyright (c) 2011 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_RENDERER_EXTENSIONS_EXTENSION_HELPER_H_
6 #define CHROME_RENDERER_EXTENSIONS_EXTENSION_HELPER_H_
7 #pragma once
8
9 #include "content/renderer/render_view_observer.h"
10
11 class GURL;
12 class ListValue;
13
14 // Filters extension related messages sent to RenderViews.
15 class ExtensionHelper : public RenderViewObserver {
16 public:
17 explicit ExtensionHelper(RenderView* render_view);
18 virtual ~ExtensionHelper();
19
20 private:
21 // RenderViewObserver implementation.
22 virtual bool OnMessageReceived(const IPC::Message& message);
23
24 void OnExtensionResponse(int request_id, bool success,
25 const std::string& response,
26 const std::string& error);
27 void OnExtensionMessageInvoke(const std::string& extension_id,
28 const std::string& function_name,
29 const ListValue& args,
30 const GURL& event_url);
31
32
33 DISALLOW_COPY_AND_ASSIGN(ExtensionHelper);
34 };
35
36 #endif // CHROME_RENDERER_EXTENSIONS_EXTENSION_HELPER_H_
OLDNEW
« 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