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

Side by Side 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 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 "core/CoreExport.h" 8 #include "core/CoreExport.h"
9 #include "core/events/EventTarget.h" 9 #include "core/events/EventTarget.h"
10 #include "core/frame/DOMWindowBase64.h" 10 #include "core/frame/DOMWindowBase64.h"
(...skipping 166 matching lines...) Expand 10 before | Expand all | Expand 10 after
177 void captureEvents() { } 177 void captureEvents() { }
178 void releaseEvents() { } 178 void releaseEvents() { }
179 179
180 // FIXME: This handles both window[index] and window.frames[index]. However, 180 // FIXME: This handles both window[index] and window.frames[index]. However,
181 // the spec exposes window.frames[index] across origins but not 181 // the spec exposes window.frames[index] across origins but not
182 // window[index]... 182 // window[index]...
183 DOMWindow* anonymousIndexedGetter(uint32_t) const; 183 DOMWindow* anonymousIndexedGetter(uint32_t) const;
184 184
185 void postMessage(PassRefPtr<SerializedScriptValue> message, const MessagePor tArray*, const String& targetOrigin, LocalDOMWindow* source, ExceptionState&); 185 void postMessage(PassRefPtr<SerializedScriptValue> message, const MessagePor tArray*, const String& targetOrigin, LocalDOMWindow* source, ExceptionState&);
186 186
187 String sanitizedCrossDomainAccessErrorMessage(LocalDOMWindow* callingWindow) ; 187 String sanitizedCrossDomainAccessErrorMessage(const LocalDOMWindow* callingW indow) const;
188 String crossDomainAccessErrorMessage(LocalDOMWindow* callingWindow); 188 String crossDomainAccessErrorMessage(const LocalDOMWindow* callingWindow) co nst;
189 bool isInsecureScriptAccess(LocalDOMWindow& callingWindow, const String& url String); 189 bool isInsecureScriptAccess(LocalDOMWindow& callingWindow, const String& url String);
190 190
191 // FIXME: When this DOMWindow is no longer the active DOMWindow (i.e., 191 // FIXME: When this DOMWindow is no longer the active DOMWindow (i.e.,
192 // when its document is no longer the document that is displayed in its 192 // when its document is no longer the document that is displayed in its
193 // frame), we would like to zero out m_frame to avoid being confused 193 // frame), we would like to zero out m_frame to avoid being confused
194 // by the document that is currently active in m_frame. 194 // by the document that is currently active in m_frame.
195 // See https://bugs.webkit.org/show_bug.cgi?id=62054 195 // See https://bugs.webkit.org/show_bug.cgi?id=62054
196 bool isCurrentlyDisplayedInFrame() const; 196 bool isCurrentlyDisplayedInFrame() const;
197 197
198 void resetLocation(); 198 void resetLocation();
(...skipping 24 matching lines...) Expand all
223 // implementation details to scripts. 223 // implementation details to scripts.
224 bool m_windowIsClosing; 224 bool m_windowIsClosing;
225 225
226 private: 226 private:
227 mutable RefPtrWillBeMember<Location> m_location; 227 mutable RefPtrWillBeMember<Location> m_location;
228 }; 228 };
229 229
230 } // namespace blink 230 } // namespace blink
231 231
232 #endif // DOMWindow_h 232 #endif // DOMWindow_h
OLDNEW
« 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