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

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: Self-review. 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 217 matching lines...) Expand 10 before | Expand all | Expand 10 after
563 #if defined(ENABLE_WEBVR) 564 #if defined(ENABLE_WEBVR)
564 blink::WebVRClient* webVRClient() override; 565 blink::WebVRClient* webVRClient() override;
565 #endif 566 #endif
566 567
567 // WebMediaPlayerDelegate implementation: 568 // WebMediaPlayerDelegate implementation:
568 void DidPlay(blink::WebMediaPlayer* player) override; 569 void DidPlay(blink::WebMediaPlayer* player) override;
569 void DidPause(blink::WebMediaPlayer* player) override; 570 void DidPause(blink::WebMediaPlayer* player) override;
570 void PlayerGone(blink::WebMediaPlayer* player) override; 571 void PlayerGone(blink::WebMediaPlayer* player) override;
571 572
572 // WebPageSerializerClient implementation: 573 // WebPageSerializerClient implementation:
573 void didSerializeDataForFrame( 574 void writeHtmlFragment(const blink::WebCString& data) override;
574 const blink::WebURL& frame_url, 575 void writeLocalPathForSubFrame(const blink::WebFrame& subframe) override;
575 const blink::WebCString& data, 576 void writeLocalPathForSavableResource(
576 blink::WebPageSerializerClient::PageSerializationStatus status) override; 577 const blink::WebURL& savable_resource_url) override;
578 void endOfFrame() override;
577 579
578 // Make this frame show an empty, unscriptable page. 580 // Make this frame show an empty, unscriptable page.
579 // TODO(nasko): Remove this method once swapped out state is no longer used. 581 // TODO(nasko): Remove this method once swapped out state is no longer used.
580 void NavigateToSwappedOutURL(); 582 void NavigateToSwappedOutURL();
581 583
582 // Binds this render frame's service registry. 584 // Binds this render frame's service registry.
583 void BindServiceRegistry( 585 void BindServiceRegistry(
584 mojo::InterfaceRequest<mojo::ServiceProvider> services, 586 mojo::InterfaceRequest<mojo::ServiceProvider> services,
585 mojo::ServiceProviderPtr exposed_services); 587 mojo::ServiceProviderPtr exposed_services);
586 588
(...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after
716 718
717 void OnCommitNavigation(const ResourceResponseHead& response, 719 void OnCommitNavigation(const ResourceResponseHead& response,
718 const GURL& stream_url, 720 const GURL& stream_url,
719 const CommonNavigationParams& common_params, 721 const CommonNavigationParams& common_params,
720 const RequestNavigationParams& request_params); 722 const RequestNavigationParams& request_params);
721 void OnFailedNavigation(const CommonNavigationParams& common_params, 723 void OnFailedNavigation(const CommonNavigationParams& common_params,
722 const RequestNavigationParams& request_params, 724 const RequestNavigationParams& request_params,
723 bool has_stale_copy_in_cache, 725 bool has_stale_copy_in_cache,
724 int error_code); 726 int error_code);
725 void OnGetSavableResourceLinks(); 727 void OnGetSavableResourceLinks();
726 void OnGetSerializedHtmlWithLocalLinks( 728 void OnGetSerializedHtmlWithLocalLinks();
727 std::vector<GURL> original_urls,
728 std::vector<base::FilePath> equivalent_local_paths,
729 base::FilePath local_directory_path);
730 729
731 // Virtual since overridden by WebTestProxy for layout tests. 730 // Virtual since overridden by WebTestProxy for layout tests.
732 virtual blink::WebNavigationPolicy DecidePolicyForNavigation( 731 virtual blink::WebNavigationPolicy DecidePolicyForNavigation(
733 RenderFrame* render_frame, 732 RenderFrame* render_frame,
734 const NavigationPolicyInfo& info); 733 const NavigationPolicyInfo& info);
735 void OpenURL(blink::WebFrame* frame, 734 void OpenURL(blink::WebFrame* frame,
736 const GURL& url, 735 const GURL& url,
737 const Referrer& referrer, 736 const Referrer& referrer,
738 blink::WebNavigationPolicy policy); 737 blink::WebNavigationPolicy policy);
739 738
(...skipping 315 matching lines...) Expand 10 before | Expand all | Expand 10 after
1055 #endif 1054 #endif
1056 1055
1057 base::WeakPtrFactory<RenderFrameImpl> weak_factory_; 1056 base::WeakPtrFactory<RenderFrameImpl> weak_factory_;
1058 1057
1059 DISALLOW_COPY_AND_ASSIGN(RenderFrameImpl); 1058 DISALLOW_COPY_AND_ASSIGN(RenderFrameImpl);
1060 }; 1059 };
1061 1060
1062 } // namespace content 1061 } // namespace content
1063 1062
1064 #endif // CONTENT_RENDERER_RENDER_FRAME_IMPL_H_ 1063 #endif // CONTENT_RENDERER_RENDER_FRAME_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698