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

Side by Side Diff: content/renderer/render_frame_impl.cc

Issue 2142523004: M52: Merge "Reland: service worker: Don't control a subframe of an insecure context" (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@2743
Patch Set: fix compile errors Created 4 years, 5 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 #include "content/renderer/render_frame_impl.h" 5 #include "content/renderer/render_frame_impl.h"
6 6
7 #include <map> 7 #include <map>
8 #include <string> 8 #include <string>
9 #include <utility> 9 #include <utility>
10 #include <vector> 10 #include <vector>
(...skipping 3055 matching lines...) Expand 10 before | Expand all | Expand 10 after
3066 // Create the serviceworker's per-document network observing object if it 3066 // Create the serviceworker's per-document network observing object if it
3067 // does not exist (When navigation happens within a page, the provider already 3067 // does not exist (When navigation happens within a page, the provider already
3068 // exists). 3068 // exists).
3069 if (ServiceWorkerNetworkProvider::FromDocumentState( 3069 if (ServiceWorkerNetworkProvider::FromDocumentState(
3070 DocumentState::FromDataSource(datasource))) 3070 DocumentState::FromDataSource(datasource)))
3071 return; 3071 return;
3072 3072
3073 ServiceWorkerNetworkProvider::AttachToDocumentState( 3073 ServiceWorkerNetworkProvider::AttachToDocumentState(
3074 DocumentState::FromDataSource(datasource), 3074 DocumentState::FromDataSource(datasource),
3075 ServiceWorkerNetworkProvider::CreateForNavigation( 3075 ServiceWorkerNetworkProvider::CreateForNavigation(
3076 routing_id_, navigation_state->request_params(), 3076 routing_id_, navigation_state->request_params(), frame,
3077 frame->effectiveSandboxFlags(), content_initiated)); 3077 content_initiated));
3078 } 3078 }
3079 3079
3080 void RenderFrameImpl::didStartProvisionalLoad(blink::WebLocalFrame* frame, 3080 void RenderFrameImpl::didStartProvisionalLoad(blink::WebLocalFrame* frame,
3081 double triggering_event_time) { 3081 double triggering_event_time) {
3082 DCHECK_EQ(frame_, frame); 3082 DCHECK_EQ(frame_, frame);
3083 WebDataSource* ds = frame->provisionalDataSource(); 3083 WebDataSource* ds = frame->provisionalDataSource();
3084 3084
3085 // In fast/loader/stop-provisional-loads.html, we abort the load before this 3085 // In fast/loader/stop-provisional-loads.html, we abort the load before this
3086 // callback is invoked. 3086 // callback is invoked.
3087 if (!ds) 3087 if (!ds)
(...skipping 3066 matching lines...) Expand 10 before | Expand all | Expand 10 after
6154 // event target. Potentially a Pepper plugin will receive the event. 6154 // event target. Potentially a Pepper plugin will receive the event.
6155 // In order to tell whether a plugin gets the last mouse event and which it 6155 // In order to tell whether a plugin gets the last mouse event and which it
6156 // is, we set |pepper_last_mouse_event_target_| to null here. If a plugin gets 6156 // is, we set |pepper_last_mouse_event_target_| to null here. If a plugin gets
6157 // the event, it will notify us via DidReceiveMouseEvent() and set itself as 6157 // the event, it will notify us via DidReceiveMouseEvent() and set itself as
6158 // |pepper_last_mouse_event_target_|. 6158 // |pepper_last_mouse_event_target_|.
6159 pepper_last_mouse_event_target_ = nullptr; 6159 pepper_last_mouse_event_target_ = nullptr;
6160 #endif 6160 #endif
6161 } 6161 }
6162 6162
6163 } // namespace content 6163 } // namespace content
OLDNEW
« no previous file with comments | « content/public/browser/content_browser_client.h ('k') | content/renderer/service_worker/service_worker_context_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698