OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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_RENDERER_RENDER_FRAME_IMPL_H_ | 5 #ifndef CONTENT_RENDERER_RENDER_FRAME_IMPL_H_ |
6 #define CONTENT_RENDERER_RENDER_FRAME_IMPL_H_ | 6 #define CONTENT_RENDERER_RENDER_FRAME_IMPL_H_ |
7 | 7 |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
(...skipping 232 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
243 | 243 |
244 // May return NULL in some cases, especially if userMediaClient() returns | 244 // May return NULL in some cases, especially if userMediaClient() returns |
245 // NULL. | 245 // NULL. |
246 MediaStreamDispatcher* GetMediaStreamDispatcher(); | 246 MediaStreamDispatcher* GetMediaStreamDispatcher(); |
247 | 247 |
248 #if defined(OS_MACOSX) || defined(OS_ANDROID) | 248 #if defined(OS_MACOSX) || defined(OS_ANDROID) |
249 void DidHideExternalPopupMenu(); | 249 void DidHideExternalPopupMenu(); |
250 #endif | 250 #endif |
251 | 251 |
252 // IPC::Sender | 252 // IPC::Sender |
253 virtual bool Send(IPC::Message* msg) override; | 253 bool Send(IPC::Message* msg) override; |
254 | 254 |
255 // IPC::Listener | 255 // IPC::Listener |
256 virtual bool OnMessageReceived(const IPC::Message& msg) override; | 256 bool OnMessageReceived(const IPC::Message& msg) override; |
257 | 257 |
258 // RenderFrame implementation: | 258 // RenderFrame implementation: |
259 virtual RenderView* GetRenderView() override; | 259 RenderView* GetRenderView() override; |
260 virtual int GetRoutingID() override; | 260 int GetRoutingID() override; |
261 virtual blink::WebLocalFrame* GetWebFrame() override; | 261 blink::WebLocalFrame* GetWebFrame() override; |
262 virtual WebPreferences& GetWebkitPreferences() override; | 262 WebPreferences& GetWebkitPreferences() override; |
263 virtual int ShowContextMenu(ContextMenuClient* client, | 263 int ShowContextMenu(ContextMenuClient* client, |
264 const ContextMenuParams& params) override; | 264 const ContextMenuParams& params) override; |
265 virtual void CancelContextMenu(int request_id) override; | 265 void CancelContextMenu(int request_id) override; |
266 virtual blink::WebNode GetContextMenuNode() const override; | 266 blink::WebNode GetContextMenuNode() const override; |
267 virtual blink::WebPlugin* CreatePlugin( | 267 blink::WebPlugin* CreatePlugin(blink::WebFrame* frame, |
268 blink::WebFrame* frame, | 268 const WebPluginInfo& info, |
269 const WebPluginInfo& info, | 269 const blink::WebPluginParams& params) override; |
270 const blink::WebPluginParams& params) override; | 270 void LoadURLExternally(blink::WebLocalFrame* frame, |
271 virtual void LoadURLExternally(blink::WebLocalFrame* frame, | 271 const blink::WebURLRequest& request, |
272 const blink::WebURLRequest& request, | 272 blink::WebNavigationPolicy policy) override; |
273 blink::WebNavigationPolicy policy) override; | 273 void ExecuteJavaScript(const base::string16& javascript) override; |
274 virtual void ExecuteJavaScript(const base::string16& javascript) override; | 274 bool IsHidden() override; |
275 virtual bool IsHidden() override; | 275 ServiceRegistry* GetServiceRegistry() override; |
276 virtual ServiceRegistry* GetServiceRegistry() override; | 276 bool IsFTPDirectoryListing() override; |
277 virtual bool IsFTPDirectoryListing() override; | 277 void AttachGuest(int element_instance_id) override; |
278 virtual void AttachGuest(int element_instance_id) override; | 278 void SetSelectedText(const base::string16& selection_text, |
279 virtual void SetSelectedText(const base::string16& selection_text, | 279 size_t offset, |
280 size_t offset, | 280 const gfx::Range& range) override; |
281 const gfx::Range& range) override; | 281 void EnsureMojoBuiltinsAreAvailable(v8::Isolate* isolate, |
282 virtual void EnsureMojoBuiltinsAreAvailable( | 282 v8::Handle<v8::Context> context) override; |
283 v8::Isolate* isolate, | |
284 v8::Handle<v8::Context> context) override; | |
285 | 283 |
286 // blink::WebFrameClient implementation: | 284 // blink::WebFrameClient implementation: |
287 virtual blink::WebPlugin* createPlugin(blink::WebLocalFrame* frame, | 285 virtual blink::WebPlugin* createPlugin(blink::WebLocalFrame* frame, |
288 const blink::WebPluginParams& params); | 286 const blink::WebPluginParams& params); |
289 // TODO(jrummell): Remove this method once blink updated. | 287 // TODO(jrummell): Remove this method once blink updated. |
290 virtual blink::WebMediaPlayer* createMediaPlayer( | 288 virtual blink::WebMediaPlayer* createMediaPlayer( |
291 blink::WebLocalFrame* frame, | 289 blink::WebLocalFrame* frame, |
292 const blink::WebURL& url, | 290 const blink::WebURL& url, |
293 blink::WebMediaPlayerClient* client); | 291 blink::WebMediaPlayerClient* client); |
294 virtual blink::WebMediaPlayer* createMediaPlayer( | 292 virtual blink::WebMediaPlayer* createMediaPlayer( |
(...skipping 165 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
460 virtual bool allowWebGL(blink::WebLocalFrame* frame, bool default_value); | 458 virtual bool allowWebGL(blink::WebLocalFrame* frame, bool default_value); |
461 virtual void didLoseWebGLContext(blink::WebLocalFrame* frame, | 459 virtual void didLoseWebGLContext(blink::WebLocalFrame* frame, |
462 int arb_robustness_status_code); | 460 int arb_robustness_status_code); |
463 virtual blink::WebScreenOrientationClient* webScreenOrientationClient(); | 461 virtual blink::WebScreenOrientationClient* webScreenOrientationClient(); |
464 virtual bool isControlledByServiceWorker(blink::WebDataSource&); | 462 virtual bool isControlledByServiceWorker(blink::WebDataSource&); |
465 virtual void postAccessibilityEvent(const blink::WebAXObject& obj, | 463 virtual void postAccessibilityEvent(const blink::WebAXObject& obj, |
466 blink::WebAXEvent event); | 464 blink::WebAXEvent event); |
467 virtual void didChangeManifest(blink::WebLocalFrame*); | 465 virtual void didChangeManifest(blink::WebLocalFrame*); |
468 | 466 |
469 // WebMediaPlayerDelegate implementation: | 467 // WebMediaPlayerDelegate implementation: |
470 virtual void DidPlay(blink::WebMediaPlayer* player) override; | 468 void DidPlay(blink::WebMediaPlayer* player) override; |
471 virtual void DidPause(blink::WebMediaPlayer* player) override; | 469 void DidPause(blink::WebMediaPlayer* player) override; |
472 virtual void PlayerGone(blink::WebMediaPlayer* player) override; | 470 void PlayerGone(blink::WebMediaPlayer* player) override; |
473 | 471 |
474 // TODO(nasko): Make all tests in RenderViewImplTest friends and then move | 472 // TODO(nasko): Make all tests in RenderViewImplTest friends and then move |
475 // this back to private member. | 473 // this back to private member. |
476 void OnNavigate(const FrameMsg_Navigate_Params& params); | 474 void OnNavigate(const FrameMsg_Navigate_Params& params); |
477 | 475 |
478 // Binds this render frame's service registry to a handle to the remote | 476 // Binds this render frame's service registry to a handle to the remote |
479 // service registry. | 477 // service registry. |
480 void BindServiceRegistry( | 478 void BindServiceRegistry( |
481 mojo::ScopedMessagePipeHandle service_provider_handle); | 479 mojo::ScopedMessagePipeHandle service_provider_handle); |
482 | 480 |
(...skipping 301 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
784 #endif | 782 #endif |
785 | 783 |
786 base::WeakPtrFactory<RenderFrameImpl> weak_factory_; | 784 base::WeakPtrFactory<RenderFrameImpl> weak_factory_; |
787 | 785 |
788 DISALLOW_COPY_AND_ASSIGN(RenderFrameImpl); | 786 DISALLOW_COPY_AND_ASSIGN(RenderFrameImpl); |
789 }; | 787 }; |
790 | 788 |
791 } // namespace content | 789 } // namespace content |
792 | 790 |
793 #endif // CONTENT_RENDERER_RENDER_FRAME_IMPL_H_ | 791 #endif // CONTENT_RENDERER_RENDER_FRAME_IMPL_H_ |
OLD | NEW |