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

Unified Diff: content/browser/frame_host/navigation_handle_impl.h

Issue 2745033002: Fix LoadDataWithBaseUrlTest#testloadDataWithBaseUrlCallsOnPageStarted with PlzNavigate. (Closed)
Patch Set: fix unittest Created 3 years, 9 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
Index: content/browser/frame_host/navigation_handle_impl.h
diff --git a/content/browser/frame_host/navigation_handle_impl.h b/content/browser/frame_host/navigation_handle_impl.h
index 853c2fbd2ff85b0f3492ef653388c133ce030fa7..8552ad4d8853fc7ed713a8412b4f0651d41fbd9c 100644
--- a/content/browser/frame_host/navigation_handle_impl.h
+++ b/content/browser/frame_host/navigation_handle_impl.h
@@ -162,6 +162,7 @@ class CONTENT_EXPORT NavigationHandleImpl : public NavigationHandle {
const std::string& GetSearchableFormEncoding() override;
ReloadType GetReloadType() override;
RestoreType GetRestoreType() override;
+ const GURL& GetBaseURLForDataURL() override;
const GlobalRequestID& GetGlobalRequestID() override;
NavigationData* GetNavigationData() override;
@@ -351,6 +352,10 @@ class CONTENT_EXPORT NavigationHandleImpl : public NavigationHandle {
complete_callback_for_testing_ = callback;
}
+ void set_base_url_for_data_url(const GURL& url) {
+ base_url_for_data_url_ = url;
+ }
+
private:
friend class NavigationHandleImplTest;
@@ -512,6 +517,7 @@ class CONTENT_EXPORT NavigationHandleImpl : public NavigationHandle {
GURL previous_url_;
GURL base_url_;
+ GURL base_url_for_data_url_;
net::HostPortPair socket_address_;
NavigationType navigation_type_;
« no previous file with comments | « components/navigation_interception/navigation_params_android.cc ('k') | content/browser/frame_host/navigation_handle_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698