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

Unified Diff: content/renderer/render_frame_impl.h

Issue 1320453004: OOPIFs: Moving GetSerializedHtmlData...WithLocalLinks away from RenderViewHost. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@page-serialization-link-gathering
Patch Set: Rebasing... Created 5 years, 3 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/common/view_messages.h ('k') | content/renderer/render_frame_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/render_frame_impl.h
diff --git a/content/renderer/render_frame_impl.h b/content/renderer/render_frame_impl.h
index 7e611d604388505ed6cf7397795933db2169945e..0189577e4e493ebf96418659b1617418041deedb 100644
--- a/content/renderer/render_frame_impl.h
+++ b/content/renderer/render_frame_impl.h
@@ -34,6 +34,7 @@
#include "third_party/WebKit/public/web/WebDataSource.h"
#include "third_party/WebKit/public/web/WebFrameClient.h"
#include "third_party/WebKit/public/web/WebHistoryCommitType.h"
+#include "third_party/WebKit/public/web/WebPageSerializerClient.h"
#include "third_party/WebKit/public/web/WebScriptExecutionCallback.h"
#include "ui/gfx/range/range.h"
@@ -131,7 +132,8 @@ class VRDispatcher;
class CONTENT_EXPORT RenderFrameImpl
: public RenderFrame,
NON_EXPORTED_BASE(public blink::WebFrameClient),
- NON_EXPORTED_BASE(public media::WebMediaPlayerDelegate) {
+ NON_EXPORTED_BASE(public media::WebMediaPlayerDelegate),
+ NON_EXPORTED_BASE(public blink::WebPageSerializerClient) {
public:
// Creates a new RenderFrame as the main frame of |render_view|.
static RenderFrameImpl* CreateMainFrame(RenderViewImpl* render_view,
@@ -568,6 +570,12 @@ class CONTENT_EXPORT RenderFrameImpl
void DidPause(blink::WebMediaPlayer* player) override;
void PlayerGone(blink::WebMediaPlayer* player) override;
+ // WebPageSerializerClient implementation:
+ void didSerializeDataForFrame(
+ const blink::WebURL& frame_url,
+ const blink::WebCString& data,
+ blink::WebPageSerializerClient::PageSerializationStatus status) override;
+
// Make this frame show an empty, unscriptable page.
// TODO(nasko): Remove this method once swapped out state is no longer used.
void NavigateToSwappedOutURL();
@@ -722,6 +730,10 @@ class CONTENT_EXPORT RenderFrameImpl
bool has_stale_copy_in_cache,
int error_code);
void OnGetSavableResourceLinks();
+ void OnGetSerializedHtmlWithLocalLinks(
+ std::vector<GURL> original_urls,
+ std::vector<base::FilePath> equivalent_local_paths,
+ base::FilePath local_directory_path);
// Virtual since overridden by WebTestProxy for layout tests.
virtual blink::WebNavigationPolicy DecidePolicyForNavigation(
« no previous file with comments | « content/common/view_messages.h ('k') | content/renderer/render_frame_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698