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

Side by Side Diff: third_party/WebKit/Source/core/frame/DOMWindow.cpp

Issue 1854543002: Oilpan: Remove WillBe types (part 7) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 "core/frame/DOMWindow.h" 5 #include "core/frame/DOMWindow.h"
6 6
7 #include "bindings/core/v8/ScriptCallStack.h" 7 #include "bindings/core/v8/ScriptCallStack.h"
8 #include "core/dom/Document.h" 8 #include "core/dom/Document.h"
9 #include "core/dom/ExceptionCode.h" 9 #include "core/dom/ExceptionCode.h"
10 #include "core/dom/ExecutionContext.h" 10 #include "core/dom/ExecutionContext.h"
(...skipping 196 matching lines...) Expand 10 before | Expand all | Expand 10 after
207 207
208 String sourceOrigin = (hasSuborigin && securityOrigin->suborigin()->policyCo ntains(unsafeSendOpt)) ? securityOrigin->toPhysicalOriginString() : securityOrig in->toString(); 208 String sourceOrigin = (hasSuborigin && securityOrigin->suborigin()->policyCo ntains(unsafeSendOpt)) ? securityOrigin->toPhysicalOriginString() : securityOrig in->toString();
209 String sourceSuborigin = hasSuborigin ? securityOrigin->suborigin()->name() : String(); 209 String sourceSuborigin = hasSuborigin ? securityOrigin->suborigin()->name() : String();
210 210
211 KURL targetUrl = isLocalDOMWindow() ? document()->url() : KURL(KURL(), frame ()->securityContext()->getSecurityOrigin()->toString()); 211 KURL targetUrl = isLocalDOMWindow() ? document()->url() : KURL(KURL(), frame ()->securityContext()->getSecurityOrigin()->toString());
212 if (MixedContentChecker::isMixedContent(sourceDocument->getSecurityOrigin(), targetUrl)) 212 if (MixedContentChecker::isMixedContent(sourceDocument->getSecurityOrigin(), targetUrl))
213 UseCounter::count(frame(), UseCounter::PostMessageFromSecureToInsecure); 213 UseCounter::count(frame(), UseCounter::PostMessageFromSecureToInsecure);
214 else if (MixedContentChecker::isMixedContent(frame()->securityContext()->get SecurityOrigin(), sourceDocument->url())) 214 else if (MixedContentChecker::isMixedContent(frame()->securityContext()->get SecurityOrigin(), sourceDocument->url()))
215 UseCounter::count(frame(), UseCounter::PostMessageFromInsecureToSecure); 215 UseCounter::count(frame(), UseCounter::PostMessageFromInsecureToSecure);
216 216
217 RefPtrWillBeRawPtr<MessageEvent> event = MessageEvent::create(channels.relea se(), message, sourceOrigin, String(), source, sourceSuborigin); 217 RawPtr<MessageEvent> event = MessageEvent::create(channels.release(), messag e, sourceOrigin, String(), source, sourceSuborigin);
218 // Give the embedder a chance to intercept this postMessage. If the 218 // Give the embedder a chance to intercept this postMessage. If the
219 // target is a remote frame, the message will be forwarded through the 219 // target is a remote frame, the message will be forwarded through the
220 // browser process. 220 // browser process.
221 if (frame()->client()->willCheckAndDispatchMessageEvent(target.get(), event. get(), source->document()->frame())) 221 if (frame()->client()->willCheckAndDispatchMessageEvent(target.get(), event. get(), source->document()->frame()))
222 return; 222 return;
223 223
224 // Capture stack trace only when inspector front-end is loaded as it may be time consuming. 224 // Capture stack trace only when inspector front-end is loaded as it may be time consuming.
225 RefPtr<ScriptCallStack> stackTrace; 225 RefPtr<ScriptCallStack> stackTrace;
226 if (InspectorInstrumentation::consoleAgentEnabled(sourceDocument)) 226 if (InspectorInstrumentation::consoleAgentEnabled(sourceDocument))
227 stackTrace = ScriptCallStack::capture(); 227 stackTrace = ScriptCallStack::capture();
(...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after
369 page->focusController().focusDocumentView(frame(), true /* notifyEmbedder */ ); 369 page->focusController().focusDocumentView(frame(), true /* notifyEmbedder */ );
370 } 370 }
371 371
372 DEFINE_TRACE(DOMWindow) 372 DEFINE_TRACE(DOMWindow)
373 { 373 {
374 visitor->trace(m_location); 374 visitor->trace(m_location);
375 EventTargetWithInlineData::trace(visitor); 375 EventTargetWithInlineData::trace(visitor);
376 } 376 }
377 377
378 } // namespace blink 378 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/frame/DOMWindow.h ('k') | third_party/WebKit/Source/core/frame/DOMWindowProperty.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698