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

Side by Side Diff: chrome/renderer/extensions/extension_helper.h

Issue 8103003: Revert 103263 - Merge 101221 - Reland 101111 - Only deliver extension messages to contexts that c... (Closed) Base URL: svn://svn.chromium.org/chrome/branches/874/src/
Patch Set: Created 9 years, 2 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
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_RENDERER_EXTENSIONS_EXTENSION_HELPER_H_ 5 #ifndef CHROME_RENDERER_EXTENSIONS_EXTENSION_HELPER_H_
6 #define CHROME_RENDERER_EXTENSIONS_EXTENSION_HELPER_H_ 6 #define CHROME_RENDERER_EXTENSIONS_EXTENSION_HELPER_H_
7 #pragma once 7 #pragma once
8 8
9 #include <map> 9 #include <map>
10 10
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
59 virtual void DidCreateDataSource(WebKit::WebFrame* frame, 59 virtual void DidCreateDataSource(WebKit::WebFrame* frame,
60 WebKit::WebDataSource* ds); 60 WebKit::WebDataSource* ds);
61 61
62 void OnExtensionResponse(int request_id, bool success, 62 void OnExtensionResponse(int request_id, bool success,
63 const std::string& response, 63 const std::string& response,
64 const std::string& error); 64 const std::string& error);
65 void OnExtensionMessageInvoke(const std::string& extension_id, 65 void OnExtensionMessageInvoke(const std::string& extension_id,
66 const std::string& function_name, 66 const std::string& function_name,
67 const base::ListValue& args, 67 const base::ListValue& args,
68 const GURL& event_url); 68 const GURL& event_url);
69 void OnExtensionDeliverMessage(int target_port_id,
70 const std::string& message);
71 void OnExecuteCode(const ExtensionMsg_ExecuteCode_Params& params); 69 void OnExecuteCode(const ExtensionMsg_ExecuteCode_Params& params);
72 void OnGetApplicationInfo(int page_id); 70 void OnGetApplicationInfo(int page_id);
73 void OnNotifyRendererViewType(ViewType::Type view_type); 71 void OnNotifyRendererViewType(ViewType::Type view_type);
74 void OnUpdateBrowserWindowId(int window_id); 72 void OnUpdateBrowserWindowId(int window_id);
75 void OnInlineWebstoreInstallResponse( 73 void OnInlineWebstoreInstallResponse(
76 int install_id, bool success, const std::string& error); 74 int install_id, bool success, const std::string& error);
77 75
78 // Callback triggered when we finish downloading the application definition 76 // Callback triggered when we finish downloading the application definition
79 // file. 77 // file.
80 void DidDownloadApplicationDefinition(const WebKit::WebURLResponse& response, 78 void DidDownloadApplicationDefinition(const WebKit::WebURLResponse& response,
(...skipping 27 matching lines...) Expand all
108 // Type of view attached with RenderView. 106 // Type of view attached with RenderView.
109 ViewType::Type view_type_; 107 ViewType::Type view_type_;
110 108
111 // Id number of browser window which RenderView is attached to. 109 // Id number of browser window which RenderView is attached to.
112 int browser_window_id_; 110 int browser_window_id_;
113 111
114 DISALLOW_COPY_AND_ASSIGN(ExtensionHelper); 112 DISALLOW_COPY_AND_ASSIGN(ExtensionHelper);
115 }; 113 };
116 114
117 #endif // CHROME_RENDERER_EXTENSIONS_EXTENSION_HELPER_H_ 115 #endif // CHROME_RENDERER_EXTENSIONS_EXTENSION_HELPER_H_
OLDNEW
« no previous file with comments | « chrome/renderer/extensions/extension_dispatcher.cc ('k') | chrome/renderer/extensions/extension_helper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698