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

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

Issue 9316102: Update extension events, routing, and delivery to use user gesture. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: lint fix Created 8 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
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 #include <vector> 10 #include <vector>
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
60 virtual void FrameDetached(WebKit::WebFrame* frame) OVERRIDE; 60 virtual void FrameDetached(WebKit::WebFrame* frame) OVERRIDE;
61 virtual void DidCreateDataSource(WebKit::WebFrame* frame, 61 virtual void DidCreateDataSource(WebKit::WebFrame* frame,
62 WebKit::WebDataSource* ds) OVERRIDE; 62 WebKit::WebDataSource* ds) OVERRIDE;
63 63
64 void OnExtensionResponse(int request_id, bool success, 64 void OnExtensionResponse(int request_id, bool success,
65 const std::string& response, 65 const std::string& response,
66 const std::string& error); 66 const std::string& error);
67 void OnExtensionMessageInvoke(const std::string& extension_id, 67 void OnExtensionMessageInvoke(const std::string& extension_id,
68 const std::string& function_name, 68 const std::string& function_name,
69 const base::ListValue& args, 69 const base::ListValue& args,
70 const GURL& event_url); 70 const GURL& event_url,
71 bool user_gesture);
71 void OnExtensionDeliverMessage(int target_port_id, 72 void OnExtensionDeliverMessage(int target_port_id,
72 const std::string& message); 73 const std::string& message);
73 void OnExecuteCode(const ExtensionMsg_ExecuteCode_Params& params); 74 void OnExecuteCode(const ExtensionMsg_ExecuteCode_Params& params);
74 void OnGetApplicationInfo(int page_id); 75 void OnGetApplicationInfo(int page_id);
75 void OnNotifyRendererViewType(content::ViewType view_type); 76 void OnNotifyRendererViewType(content::ViewType view_type);
76 void OnUpdateBrowserWindowId(int window_id); 77 void OnUpdateBrowserWindowId(int window_id);
77 78
78 // Callback triggered when we finish downloading the application definition 79 // Callback triggered when we finish downloading the application definition
79 // file. 80 // file.
80 void DidDownloadApplicationDefinition(const WebKit::WebURLResponse& response, 81 void DidDownloadApplicationDefinition(const WebKit::WebURLResponse& response,
(...skipping 29 matching lines...) Expand all
110 // Type of view attached with RenderView. 111 // Type of view attached with RenderView.
111 content::ViewType view_type_; 112 content::ViewType view_type_;
112 113
113 // Id number of browser window which RenderView is attached to. 114 // Id number of browser window which RenderView is attached to.
114 int browser_window_id_; 115 int browser_window_id_;
115 116
116 DISALLOW_COPY_AND_ASSIGN(ExtensionHelper); 117 DISALLOW_COPY_AND_ASSIGN(ExtensionHelper);
117 }; 118 };
118 119
119 #endif // CHROME_RENDERER_EXTENSIONS_EXTENSION_HELPER_H_ 120 #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