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

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

Issue 2644633006: Add KURL::protocolIsJavascript member function (Closed)
Patch Set: Created 3 years, 11 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 #ifndef DOMWindow_h 5 #ifndef DOMWindow_h
6 #define DOMWindow_h 6 #define DOMWindow_h
7 7
8 #include "bindings/core/v8/Transferables.h" 8 #include "bindings/core/v8/Transferables.h"
9 #include "core/CoreExport.h" 9 #include "core/CoreExport.h"
10 #include "core/events/EventTarget.h" 10 #include "core/events/EventTarget.h"
(...skipping 206 matching lines...) Expand 10 before | Expand all | Expand 10 after
217 void postMessage(PassRefPtr<SerializedScriptValue> message, 217 void postMessage(PassRefPtr<SerializedScriptValue> message,
218 const MessagePortArray&, 218 const MessagePortArray&,
219 const String& targetOrigin, 219 const String& targetOrigin,
220 LocalDOMWindow* source, 220 LocalDOMWindow* source,
221 ExceptionState&); 221 ExceptionState&);
222 222
223 String sanitizedCrossDomainAccessErrorMessage( 223 String sanitizedCrossDomainAccessErrorMessage(
224 const LocalDOMWindow* callingWindow) const; 224 const LocalDOMWindow* callingWindow) const;
225 String crossDomainAccessErrorMessage( 225 String crossDomainAccessErrorMessage(
226 const LocalDOMWindow* callingWindow) const; 226 const LocalDOMWindow* callingWindow) const;
227 bool isInsecureScriptAccess(LocalDOMWindow& callingWindow, 227 bool isInsecureScriptAccess(LocalDOMWindow& callingWindow, const KURL&);
228 const String& urlString);
229 228
230 // FIXME: When this DOMWindow is no longer the active DOMWindow (i.e., 229 // FIXME: When this DOMWindow is no longer the active DOMWindow (i.e.,
231 // when its document is no longer the document that is displayed in its 230 // when its document is no longer the document that is displayed in its
232 // frame), we would like to zero out m_frame to avoid being confused 231 // frame), we would like to zero out m_frame to avoid being confused
233 // by the document that is currently active in m_frame. 232 // by the document that is currently active in m_frame.
234 // See https://bugs.webkit.org/show_bug.cgi?id=62054 233 // See https://bugs.webkit.org/show_bug.cgi?id=62054
235 bool isCurrentlyDisplayedInFrame() const; 234 bool isCurrentlyDisplayedInFrame() const;
236 235
237 void resetLocation(); 236 void resetLocation();
238 237
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
274 // only after the layout widget's deferred window close 273 // only after the layout widget's deferred window close
275 // operation has been performed, exposes (confusing) 274 // operation has been performed, exposes (confusing)
276 // implementation details to scripts. 275 // implementation details to scripts.
277 bool m_windowIsClosing; 276 bool m_windowIsClosing;
278 277
279 }; 278 };
280 279
281 } // namespace blink 280 } // namespace blink
282 281
283 #endif // DOMWindow_h 282 #endif // DOMWindow_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/dom/Document.cpp ('k') | third_party/WebKit/Source/core/frame/DOMWindow.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698