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

Side by Side Diff: trunk/src/content/renderer/render_frame_impl.h

Issue 352013002: Revert 279557 "Support exposing Mojo services between render fra..." (Closed) Base URL: svn://svn.chromium.org/chrome/
Patch Set: Created 6 years, 5 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
« no previous file with comments | « trunk/src/content/renderer/BUILD.gn ('k') | trunk/src/content/renderer/render_frame_impl.cc » ('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 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"
11 #include "base/files/file_path.h" 11 #include "base/files/file_path.h"
12 #include "base/gtest_prod_util.h" 12 #include "base/gtest_prod_util.h"
13 #include "base/id_map.h" 13 #include "base/id_map.h"
14 #include "base/memory/weak_ptr.h" 14 #include "base/memory/weak_ptr.h"
15 #include "base/observer_list.h" 15 #include "base/observer_list.h"
16 #include "base/process/process_handle.h" 16 #include "base/process/process_handle.h"
17 #include "content/common/mojo/service_registry_impl.h"
18 #include "content/public/common/javascript_message_type.h" 17 #include "content/public/common/javascript_message_type.h"
19 #include "content/public/common/referrer.h" 18 #include "content/public/common/referrer.h"
20 #include "content/public/renderer/render_frame.h" 19 #include "content/public/renderer/render_frame.h"
21 #include "content/renderer/media/webmediaplayer_delegate.h" 20 #include "content/renderer/media/webmediaplayer_delegate.h"
22 #include "content/renderer/render_frame_proxy.h" 21 #include "content/renderer/render_frame_proxy.h"
23 #include "content/renderer/renderer_webcookiejar_impl.h" 22 #include "content/renderer/renderer_webcookiejar_impl.h"
24 #include "ipc/ipc_message.h" 23 #include "ipc/ipc_message.h"
25 #include "third_party/WebKit/public/web/WebDataSource.h" 24 #include "third_party/WebKit/public/web/WebDataSource.h"
26 #include "third_party/WebKit/public/web/WebFrameClient.h" 25 #include "third_party/WebKit/public/web/WebFrameClient.h"
27 #include "third_party/WebKit/public/web/WebHistoryCommitType.h" 26 #include "third_party/WebKit/public/web/WebHistoryCommitType.h"
(...skipping 188 matching lines...) Expand 10 before | Expand all | Expand 10 after
216 virtual blink::WebNode GetContextMenuNode() const OVERRIDE; 215 virtual blink::WebNode GetContextMenuNode() const OVERRIDE;
217 virtual blink::WebPlugin* CreatePlugin( 216 virtual blink::WebPlugin* CreatePlugin(
218 blink::WebFrame* frame, 217 blink::WebFrame* frame,
219 const WebPluginInfo& info, 218 const WebPluginInfo& info,
220 const blink::WebPluginParams& params) OVERRIDE; 219 const blink::WebPluginParams& params) OVERRIDE;
221 virtual void LoadURLExternally(blink::WebLocalFrame* frame, 220 virtual void LoadURLExternally(blink::WebLocalFrame* frame,
222 const blink::WebURLRequest& request, 221 const blink::WebURLRequest& request,
223 blink::WebNavigationPolicy policy) OVERRIDE; 222 blink::WebNavigationPolicy policy) OVERRIDE;
224 virtual void ExecuteJavaScript(const base::string16& javascript) OVERRIDE; 223 virtual void ExecuteJavaScript(const base::string16& javascript) OVERRIDE;
225 virtual bool IsHidden() OVERRIDE; 224 virtual bool IsHidden() OVERRIDE;
226 virtual ServiceRegistry* GetServiceRegistry() OVERRIDE;
227 225
228 // blink::WebFrameClient implementation: 226 // blink::WebFrameClient implementation:
229 virtual blink::WebPlugin* createPlugin(blink::WebLocalFrame* frame, 227 virtual blink::WebPlugin* createPlugin(blink::WebLocalFrame* frame,
230 const blink::WebPluginParams& params); 228 const blink::WebPluginParams& params);
231 virtual blink::WebMediaPlayer* createMediaPlayer( 229 virtual blink::WebMediaPlayer* createMediaPlayer(
232 blink::WebLocalFrame* frame, 230 blink::WebLocalFrame* frame,
233 const blink::WebURL& url, 231 const blink::WebURL& url,
234 blink::WebMediaPlayerClient* client); 232 blink::WebMediaPlayerClient* client);
235 virtual blink::WebContentDecryptionModule* createContentDecryptionModule( 233 virtual blink::WebContentDecryptionModule* createContentDecryptionModule(
236 blink::WebLocalFrame* frame, 234 blink::WebLocalFrame* frame,
(...skipping 155 matching lines...) Expand 10 before | Expand all | Expand 10 after
392 390
393 // WebMediaPlayerDelegate implementation: 391 // WebMediaPlayerDelegate implementation:
394 virtual void DidPlay(blink::WebMediaPlayer* player) OVERRIDE; 392 virtual void DidPlay(blink::WebMediaPlayer* player) OVERRIDE;
395 virtual void DidPause(blink::WebMediaPlayer* player) OVERRIDE; 393 virtual void DidPause(blink::WebMediaPlayer* player) OVERRIDE;
396 virtual void PlayerGone(blink::WebMediaPlayer* player) OVERRIDE; 394 virtual void PlayerGone(blink::WebMediaPlayer* player) OVERRIDE;
397 395
398 // TODO(nasko): Make all tests in RenderViewImplTest friends and then move 396 // TODO(nasko): Make all tests in RenderViewImplTest friends and then move
399 // this back to private member. 397 // this back to private member.
400 void OnNavigate(const FrameMsg_Navigate_Params& params); 398 void OnNavigate(const FrameMsg_Navigate_Params& params);
401 399
402 // Binds this render frame's service registry to a handle to the remote
403 // service registry.
404 void BindServiceRegistry(
405 mojo::ScopedMessagePipeHandle service_provider_handle);
406
407 protected: 400 protected:
408 RenderFrameImpl(RenderViewImpl* render_view, int32 routing_id); 401 RenderFrameImpl(RenderViewImpl* render_view, int32 routing_id);
409 402
410 private: 403 private:
411 friend class RenderFrameObserver; 404 friend class RenderFrameObserver;
412 FRIEND_TEST_ALL_PREFIXES(RendererAccessibilityTest, 405 FRIEND_TEST_ALL_PREFIXES(RendererAccessibilityTest,
413 AccessibilityMessagesQueueWhileSwappedOut); 406 AccessibilityMessagesQueueWhileSwappedOut);
414 FRIEND_TEST_ALL_PREFIXES(RenderFrameImplTest, 407 FRIEND_TEST_ALL_PREFIXES(RenderFrameImplTest,
415 ShouldUpdateSelectionTextFromContextMenuParams); 408 ShouldUpdateSelectionTextFromContextMenuParams);
416 FRIEND_TEST_ALL_PREFIXES(RenderViewImplTest, 409 FRIEND_TEST_ALL_PREFIXES(RenderViewImplTest,
(...skipping 214 matching lines...) Expand 10 before | Expand all | Expand 10 after
631 #if defined(ENABLE_BROWSER_CDMS) 624 #if defined(ENABLE_BROWSER_CDMS)
632 // Manage all CDMs in this render frame for communicating with the real CDM in 625 // Manage all CDMs in this render frame for communicating with the real CDM in
633 // the browser process. It's okay to use a raw pointer since it's a 626 // the browser process. It's okay to use a raw pointer since it's a
634 // RenderFrameObserver. 627 // RenderFrameObserver.
635 RendererCdmManager* cdm_manager_; 628 RendererCdmManager* cdm_manager_;
636 #endif 629 #endif
637 630
638 // The geolocation dispatcher attached to this view, lazily initialized. 631 // The geolocation dispatcher attached to this view, lazily initialized.
639 GeolocationDispatcher* geolocation_dispatcher_; 632 GeolocationDispatcher* geolocation_dispatcher_;
640 633
641 ServiceRegistryImpl service_registry_;
642
643 // The screen orientation dispatcher attached to the view, lazily initialized. 634 // The screen orientation dispatcher attached to the view, lazily initialized.
644 ScreenOrientationDispatcher* screen_orientation_dispatcher_; 635 ScreenOrientationDispatcher* screen_orientation_dispatcher_;
645 636
646 base::WeakPtrFactory<RenderFrameImpl> weak_factory_; 637 base::WeakPtrFactory<RenderFrameImpl> weak_factory_;
647 638
648 DISALLOW_COPY_AND_ASSIGN(RenderFrameImpl); 639 DISALLOW_COPY_AND_ASSIGN(RenderFrameImpl);
649 }; 640 };
650 641
651 } // namespace content 642 } // namespace content
652 643
653 #endif // CONTENT_RENDERER_RENDER_FRAME_IMPL_H_ 644 #endif // CONTENT_RENDERER_RENDER_FRAME_IMPL_H_
OLDNEW
« no previous file with comments | « trunk/src/content/renderer/BUILD.gn ('k') | trunk/src/content/renderer/render_frame_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698