| Index: content/renderer/render_frame_impl.cc
|
| diff --git a/content/renderer/render_frame_impl.cc b/content/renderer/render_frame_impl.cc
|
| index c90f88800f0f40bc6375f9588afe50958b8ee36e..7d3b97e11bbcc2ee8f4f6f45e1d0e455dfd858a7 100644
|
| --- a/content/renderer/render_frame_impl.cc
|
| +++ b/content/renderer/render_frame_impl.cc
|
| @@ -46,6 +46,7 @@
|
| #include "third_party/WebKit/public/web/WebStorageQuotaCallbacks.h"
|
| #include "third_party/WebKit/public/web/WebUserGestureIndicator.h"
|
| #include "third_party/WebKit/public/web/WebView.h"
|
| +#include "webkit/child/site_isolation_policy.h"
|
| #include "webkit/child/weburlresponse_extradata_impl.h"
|
|
|
| using WebKit::WebDataSource;
|
| @@ -72,6 +73,7 @@ using base::Time;
|
| using base::TimeDelta;
|
|
|
| using webkit_glue::WebURLResponseExtraDataImpl;
|
| +using webkit_glue::SiteIsolationPolicy;
|
|
|
| namespace content {
|
|
|
| @@ -603,12 +605,17 @@ void RenderFrameImpl::willSendRequest(
|
|
|
| if (!render_view_->renderer_preferences_.enable_referrers)
|
| request.clearHTTPHeaderField("Referer");
|
| +
|
| + SiteIsolationPolicy::WillSendRequest(identifier, request.targetType());
|
| }
|
|
|
| void RenderFrameImpl::didReceiveResponse(
|
| WebKit::WebFrame* frame,
|
| unsigned identifier,
|
| const WebKit::WebURLResponse& response) {
|
| +
|
| + SiteIsolationPolicy::DidReceiveResponse(frame, identifier, response);
|
| +
|
| // Only do this for responses that correspond to a provisional data source
|
| // of the top-most frame. If we have a provisional data source, then we
|
| // can't have any sub-resources yet, so we know that this response must
|
| @@ -658,6 +665,8 @@ void RenderFrameImpl::didFinishResourceLoad(WebKit::WebFrame* frame,
|
| // Needed methods:
|
| // * LoadNavigationErrorPage
|
| render_view_->didFinishResourceLoad(frame, identifier);
|
| +
|
| + SiteIsolationPolicy::DidFinishResourceLoad(identifier);
|
| }
|
|
|
| void RenderFrameImpl::didLoadResourceFromMemoryCache(
|
|
|