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

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: Created 8 years, 10 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 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
64 virtual void FrameDetached(WebKit::WebFrame* frame) OVERRIDE; 64 virtual void FrameDetached(WebKit::WebFrame* frame) OVERRIDE;
65 virtual void DidCreateDataSource(WebKit::WebFrame* frame, 65 virtual void DidCreateDataSource(WebKit::WebFrame* frame,
66 WebKit::WebDataSource* ds) OVERRIDE; 66 WebKit::WebDataSource* ds) OVERRIDE;
67 67
68 void OnExtensionResponse(int request_id, bool success, 68 void OnExtensionResponse(int request_id, bool success,
69 const std::string& response, 69 const std::string& response,
70 const std::string& error); 70 const std::string& error);
71 void OnExtensionMessageInvoke(const std::string& extension_id, 71 void OnExtensionMessageInvoke(const std::string& extension_id,
72 const std::string& function_name, 72 const std::string& function_name,
73 const base::ListValue& args, 73 const base::ListValue& args,
74 const GURL& event_url); 74 const GURL& event_url,
75 bool user_caused);
75 void OnExtensionDeliverMessage(int target_port_id, 76 void OnExtensionDeliverMessage(int target_port_id,
76 const std::string& message); 77 const std::string& message);
77 void OnExecuteCode(const ExtensionMsg_ExecuteCode_Params& params); 78 void OnExecuteCode(const ExtensionMsg_ExecuteCode_Params& params);
78 void OnGetApplicationInfo(int page_id); 79 void OnGetApplicationInfo(int page_id);
79 void OnNotifyRendererViewType(content::ViewType view_type); 80 void OnNotifyRendererViewType(content::ViewType view_type);
80 void OnUpdateBrowserWindowId(int window_id); 81 void OnUpdateBrowserWindowId(int window_id);
81 void OnInlineWebstoreInstallResponse( 82 void OnInlineWebstoreInstallResponse(
82 int install_id, bool success, const std::string& error); 83 int install_id, bool success, const std::string& error);
83 84
84 // Callback triggered when we finish downloading the application definition 85 // Callback triggered when we finish downloading the application definition
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
116 // Type of view attached with RenderView. 117 // Type of view attached with RenderView.
117 content::ViewType view_type_; 118 content::ViewType view_type_;
118 119
119 // Id number of browser window which RenderView is attached to. 120 // Id number of browser window which RenderView is attached to.
120 int browser_window_id_; 121 int browser_window_id_;
121 122
122 DISALLOW_COPY_AND_ASSIGN(ExtensionHelper); 123 DISALLOW_COPY_AND_ASSIGN(ExtensionHelper);
123 }; 124 };
124 125
125 #endif // CHROME_RENDERER_EXTENSIONS_EXTENSION_HELPER_H_ 126 #endif // CHROME_RENDERER_EXTENSIONS_EXTENSION_HELPER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698