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

Unified Diff: third_party/WebKit/Source/core/frame/DOMWindow.h

Issue 1417023006: bindings: Refactors BindingSecurity::shouldAllowAccessToXXX. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed the assertion condition. Created 5 years, 1 month 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: third_party/WebKit/Source/core/frame/DOMWindow.h
diff --git a/third_party/WebKit/Source/core/frame/DOMWindow.h b/third_party/WebKit/Source/core/frame/DOMWindow.h
index f8bedc427a4b9520698f61e86554c7496bf4159b..7c2a6e4c314b1561cef0da2fa35a9ccbe447ade0 100644
--- a/third_party/WebKit/Source/core/frame/DOMWindow.h
+++ b/third_party/WebKit/Source/core/frame/DOMWindow.h
@@ -184,8 +184,8 @@ public:
void postMessage(PassRefPtr<SerializedScriptValue> message, const MessagePortArray*, const String& targetOrigin, LocalDOMWindow* source, ExceptionState&);
- String sanitizedCrossDomainAccessErrorMessage(LocalDOMWindow* callingWindow);
- String crossDomainAccessErrorMessage(LocalDOMWindow* callingWindow);
+ String sanitizedCrossDomainAccessErrorMessage(const LocalDOMWindow* callingWindow) const;
+ String crossDomainAccessErrorMessage(const LocalDOMWindow* callingWindow) const;
bool isInsecureScriptAccess(LocalDOMWindow& callingWindow, const String& urlString);
// FIXME: When this DOMWindow is no longer the active DOMWindow (i.e.,
« no previous file with comments | « third_party/WebKit/Source/core/events/EventTarget.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