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

Side by Side Diff: content/public/browser/render_view_host.h

Issue 208793005: Remove JavaScript execution from RenderViewHost. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: rebase Created 6 years, 8 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
« no previous file with comments | « content/common/view_messages.h ('k') | content/renderer/render_view_impl.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 CONTENT_PUBLIC_BROWSER_RENDER_VIEW_HOST_H_ 5 #ifndef CONTENT_PUBLIC_BROWSER_RENDER_VIEW_HOST_H_
6 #define CONTENT_PUBLIC_BROWSER_RENDER_VIEW_HOST_H_ 6 #define CONTENT_PUBLIC_BROWSER_RENDER_VIEW_HOST_H_
7 7
8 #include <list> 8 #include <list>
9 9
10 #include "base/callback_forward.h" 10 #include "base/callback_forward.h"
(...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after
155 155
156 // Instructs the RenderView to send back updates to the preferred size. 156 // Instructs the RenderView to send back updates to the preferred size.
157 virtual void EnablePreferredSizeMode() = 0; 157 virtual void EnablePreferredSizeMode() = 0;
158 158
159 // Tells the renderer to perform the given action on the media player 159 // Tells the renderer to perform the given action on the media player
160 // located at the given point. 160 // located at the given point.
161 virtual void ExecuteMediaPlayerActionAtLocation( 161 virtual void ExecuteMediaPlayerActionAtLocation(
162 const gfx::Point& location, 162 const gfx::Point& location,
163 const blink::WebMediaPlayerAction& action) = 0; 163 const blink::WebMediaPlayerAction& action) = 0;
164 164
165 // Runs some javascript within the context of a frame in the page.
166 // OBSOLETE; DO NOT USE! Use RenderFrameHost::ExecuteJavaScript instead.
167 virtual void ExecuteJavascriptInWebFrame(const base::string16& frame_xpath,
168 const base::string16& jscript) = 0;
169
170 // Runs some javascript within the context of a frame in the page. The result
171 // is sent back via the provided callback.
172 // OBSOLETE; DO NOT USE! Use RenderFrameHost::ExecuteJavaScript instead.
173 typedef base::Callback<void(const base::Value*)> JavascriptResultCallback;
174 virtual void ExecuteJavascriptInWebFrameCallbackResult(
175 const base::string16& frame_xpath,
176 const base::string16& jscript,
177 const JavascriptResultCallback& callback) = 0;
178
179 // Tells the renderer to perform the given action on the plugin located at 165 // Tells the renderer to perform the given action on the plugin located at
180 // the given point. 166 // the given point.
181 virtual void ExecutePluginActionAtLocation( 167 virtual void ExecutePluginActionAtLocation(
182 const gfx::Point& location, const blink::WebPluginAction& action) = 0; 168 const gfx::Point& location, const blink::WebPluginAction& action) = 0;
183 169
184 // Asks the renderer to exit fullscreen 170 // Asks the renderer to exit fullscreen
185 virtual void ExitFullscreen() = 0; 171 virtual void ExitFullscreen() = 0;
186 172
187 // Notifies the Listener that one or more files have been chosen by the user 173 // Notifies the Listener that one or more files have been chosen by the user
188 // from a file chooser dialog for the form. |permissions| is the file 174 // from a file chooser dialog for the form. |permissions| is the file
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
259 245
260 private: 246 private:
261 // This interface should only be implemented inside content. 247 // This interface should only be implemented inside content.
262 friend class RenderViewHostImpl; 248 friend class RenderViewHostImpl;
263 RenderViewHost() {} 249 RenderViewHost() {}
264 }; 250 };
265 251
266 } // namespace content 252 } // namespace content
267 253
268 #endif // CONTENT_PUBLIC_BROWSER_RENDER_VIEW_HOST_H_ 254 #endif // CONTENT_PUBLIC_BROWSER_RENDER_VIEW_HOST_H_
OLDNEW
« no previous file with comments | « content/common/view_messages.h ('k') | content/renderer/render_view_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698