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

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

Issue 1373573002: ABANDONED: OOPIFs: Moving stitching of local paths from renderer to browser process. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@page-serialization-recursive-begone
Patch Set: Removed no longer needed WebKit dependency. Created 5 years, 2 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
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"
(...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after
157 int parent_routing_id, 157 int parent_routing_id,
158 int previous_sibling_routing_id, 158 int previous_sibling_routing_id,
159 const FrameReplicationState& replicated_state, 159 const FrameReplicationState& replicated_state,
160 CompositorDependencies* compositor_deps, 160 CompositorDependencies* compositor_deps,
161 const FrameMsg_NewFrame_WidgetParams& params); 161 const FrameMsg_NewFrame_WidgetParams& params);
162 162
163 // Returns the RenderFrameImpl for the given routing ID. 163 // Returns the RenderFrameImpl for the given routing ID.
164 static RenderFrameImpl* FromRoutingID(int routing_id); 164 static RenderFrameImpl* FromRoutingID(int routing_id);
165 165
166 // Just like RenderFrame::FromWebFrame but returns the implementation. 166 // Just like RenderFrame::FromWebFrame but returns the implementation.
167 static const RenderFrameImpl* FromWebFrame(const blink::WebFrame* web_frame);
167 static RenderFrameImpl* FromWebFrame(blink::WebFrame* web_frame); 168 static RenderFrameImpl* FromWebFrame(blink::WebFrame* web_frame);
168 169
169 // Used by content_layouttest_support to hook into the creation of 170 // Used by content_layouttest_support to hook into the creation of
170 // RenderFrameImpls. 171 // RenderFrameImpls.
171 struct CreateParams { 172 struct CreateParams {
172 CreateParams(RenderViewImpl* render_view, int32 routing_id) 173 CreateParams(RenderViewImpl* render_view, int32 routing_id)
173 : render_view(render_view), routing_id(routing_id) {} 174 : render_view(render_view), routing_id(routing_id) {}
174 ~CreateParams() {} 175 ~CreateParams() {}
175 176
176 RenderViewImpl* render_view; 177 RenderViewImpl* render_view;
(...skipping 148 matching lines...) Expand 10 before | Expand all | Expand 10 after
325 #endif 326 #endif
326 327
327 // IPC::Sender 328 // IPC::Sender
328 bool Send(IPC::Message* msg) override; 329 bool Send(IPC::Message* msg) override;
329 330
330 // IPC::Listener 331 // IPC::Listener
331 bool OnMessageReceived(const IPC::Message& msg) override; 332 bool OnMessageReceived(const IPC::Message& msg) override;
332 333
333 // RenderFrame implementation: 334 // RenderFrame implementation:
334 RenderView* GetRenderView() override; 335 RenderView* GetRenderView() override;
335 int GetRoutingID() override; 336 int GetRoutingID() const override;
336 blink::WebLocalFrame* GetWebFrame() override; 337 blink::WebLocalFrame* GetWebFrame() override;
337 blink::WebElement GetFocusedElement() const override; 338 blink::WebElement GetFocusedElement() const override;
338 WebPreferences& GetWebkitPreferences() override; 339 WebPreferences& GetWebkitPreferences() override;
339 int ShowContextMenu(ContextMenuClient* client, 340 int ShowContextMenu(ContextMenuClient* client,
340 const ContextMenuParams& params) override; 341 const ContextMenuParams& params) override;
341 void CancelContextMenu(int request_id) override; 342 void CancelContextMenu(int request_id) override;
342 blink::WebNode GetContextMenuNode() const override; 343 blink::WebNode GetContextMenuNode() const override;
343 blink::WebPlugin* CreatePlugin( 344 blink::WebPlugin* CreatePlugin(
344 blink::WebFrame* frame, 345 blink::WebFrame* frame,
345 const WebPluginInfo& info, 346 const WebPluginInfo& info,
(...skipping 218 matching lines...) Expand 10 before | Expand all | Expand 10 after
564 #if defined(ENABLE_WEBVR) 565 #if defined(ENABLE_WEBVR)
565 blink::WebVRClient* webVRClient() override; 566 blink::WebVRClient* webVRClient() override;
566 #endif 567 #endif
567 568
568 // WebMediaPlayerDelegate implementation: 569 // WebMediaPlayerDelegate implementation:
569 void DidPlay(blink::WebMediaPlayer* player) override; 570 void DidPlay(blink::WebMediaPlayer* player) override;
570 void DidPause(blink::WebMediaPlayer* player) override; 571 void DidPause(blink::WebMediaPlayer* player) override;
571 void PlayerGone(blink::WebMediaPlayer* player) override; 572 void PlayerGone(blink::WebMediaPlayer* player) override;
572 573
573 // WebPageSerializerClient implementation: 574 // WebPageSerializerClient implementation:
574 void didSerializeDataForFrame( 575 void writeHtmlFragment(const blink::WebCString& data) override;
575 const blink::WebURL& frame_url, 576 void writeLocalPathForSubFrame(const blink::WebFrame& subframe) override;
576 const blink::WebCString& data, 577 void writeLocalPathForSavableResource(
577 blink::WebPageSerializerClient::PageSerializationStatus status) override; 578 const blink::WebURL& savable_resource_url) override;
579 void endOfFrame() override;
578 580
579 // Make this frame show an empty, unscriptable page. 581 // Make this frame show an empty, unscriptable page.
580 // TODO(nasko): Remove this method once swapped out state is no longer used. 582 // TODO(nasko): Remove this method once swapped out state is no longer used.
581 void NavigateToSwappedOutURL(); 583 void NavigateToSwappedOutURL();
582 584
583 // Binds this render frame's service registry. 585 // Binds this render frame's service registry.
584 void BindServiceRegistry( 586 void BindServiceRegistry(
585 mojo::InterfaceRequest<mojo::ServiceProvider> services, 587 mojo::InterfaceRequest<mojo::ServiceProvider> services,
586 mojo::ServiceProviderPtr exposed_services); 588 mojo::ServiceProviderPtr exposed_services);
587 589
(...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after
723 725
724 void OnCommitNavigation(const ResourceResponseHead& response, 726 void OnCommitNavigation(const ResourceResponseHead& response,
725 const GURL& stream_url, 727 const GURL& stream_url,
726 const CommonNavigationParams& common_params, 728 const CommonNavigationParams& common_params,
727 const RequestNavigationParams& request_params); 729 const RequestNavigationParams& request_params);
728 void OnFailedNavigation(const CommonNavigationParams& common_params, 730 void OnFailedNavigation(const CommonNavigationParams& common_params,
729 const RequestNavigationParams& request_params, 731 const RequestNavigationParams& request_params,
730 bool has_stale_copy_in_cache, 732 bool has_stale_copy_in_cache,
731 int error_code); 733 int error_code);
732 void OnGetSavableResourceLinks(); 734 void OnGetSavableResourceLinks();
733 void OnGetSerializedHtmlWithLocalLinks( 735 void OnGetSerializedHtmlWithLocalLinks();
734 std::vector<GURL> original_urls,
735 std::vector<base::FilePath> equivalent_local_paths,
736 base::FilePath local_directory_path);
737 736
738 // Virtual since overridden by WebTestProxy for layout tests. 737 // Virtual since overridden by WebTestProxy for layout tests.
739 virtual blink::WebNavigationPolicy DecidePolicyForNavigation( 738 virtual blink::WebNavigationPolicy DecidePolicyForNavigation(
740 RenderFrame* render_frame, 739 RenderFrame* render_frame,
741 const NavigationPolicyInfo& info); 740 const NavigationPolicyInfo& info);
742 void OpenURL(blink::WebFrame* frame, 741 void OpenURL(blink::WebFrame* frame,
743 const GURL& url, 742 const GURL& url,
744 const Referrer& referrer, 743 const Referrer& referrer,
745 blink::WebNavigationPolicy policy); 744 blink::WebNavigationPolicy policy);
746 745
(...skipping 315 matching lines...) Expand 10 before | Expand all | Expand 10 after
1062 #endif 1061 #endif
1063 1062
1064 base::WeakPtrFactory<RenderFrameImpl> weak_factory_; 1063 base::WeakPtrFactory<RenderFrameImpl> weak_factory_;
1065 1064
1066 DISALLOW_COPY_AND_ASSIGN(RenderFrameImpl); 1065 DISALLOW_COPY_AND_ASSIGN(RenderFrameImpl);
1067 }; 1066 };
1068 1067
1069 } // namespace content 1068 } // namespace content
1070 1069
1071 #endif // CONTENT_RENDERER_RENDER_FRAME_IMPL_H_ 1070 #endif // CONTENT_RENDERER_RENDER_FRAME_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698