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

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

Issue 743773003: OOPIF: Data URLs are now rendered in the renderer that initiated the navigation. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years 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_entry_impl.h
diff --git a/content/browser/frame_host/navigation_entry_impl.h b/content/browser/frame_host/navigation_entry_impl.h
index 37de18213cbdd53ac969227d40466cf61e3a2adb..f0d42d70f136a32e2f01a66dc6d5e57446620a7f 100644
--- a/content/browser/frame_host/navigation_entry_impl.h
+++ b/content/browser/frame_host/navigation_entry_impl.h
@@ -107,6 +107,13 @@ class CONTENT_EXPORT NavigationEntryImpl
return site_instance_.get();
}
+ // The source_site_instance is used to identify the SiteInstance that
Charlie Reis 2014/12/06 00:18:50 nit: the SiteInstance of the frame that initiated
lfg 2014/12/08 20:45:32 Done.
+ // initiated the navigation in case of a cross-site navigation.
+ void set_source_site_instance(SiteInstanceImpl* source_site_instance);
+ SiteInstanceImpl* source_site_instance() const {
+ return source_site_instance_.get();
+ }
+
// Remember the set of bindings granted to this NavigationEntry at the time
// of commit, to ensure that we do not grant it additional bindings if we
// navigate back to it in the future. This can only be changed once.
@@ -227,6 +234,7 @@ class CONTENT_EXPORT NavigationEntryImpl
// See the accessors above for descriptions.
int unique_id_;
scoped_refptr<SiteInstanceImpl> site_instance_;
+ scoped_refptr<SiteInstanceImpl> source_site_instance_;
Charlie Reis 2014/12/06 00:18:50 This is solely used as input for determining site_
lfg 2014/12/08 20:45:32 Done.
// TODO(creis): Persist bindings_. http://crbug.com/173672.
int bindings_;
PageType page_type_;

Powered by Google App Engine
This is Rietveld 408576698