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

Side by Side Diff: third_party/WebKit/Source/bindings/core/v8/BindingSecurity.h

Issue 2439013002: Implement cross-origin attributes using access check interceptors. (Closed)
Patch Set: etc2 Created 4 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 /* 1 /*
2 * Copyright (C) 2009 Google Inc. All rights reserved. 2 * Copyright (C) 2009 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after
108 const Frame* target, 108 const Frame* target,
109 ExceptionState&); 109 ExceptionState&);
110 static bool shouldAllowAccessToFrame(const LocalDOMWindow* accessingWindow, 110 static bool shouldAllowAccessToFrame(const LocalDOMWindow* accessingWindow,
111 const Frame* target, 111 const Frame* target,
112 ErrorReportOption); 112 ErrorReportOption);
113 // This overload must be used only for detached windows. 113 // This overload must be used only for detached windows.
114 static bool shouldAllowAccessToDetachedWindow( 114 static bool shouldAllowAccessToDetachedWindow(
115 const LocalDOMWindow* accessingWindow, 115 const LocalDOMWindow* accessingWindow,
116 const DOMWindow* target, 116 const DOMWindow* target,
117 ExceptionState&); 117 ExceptionState&);
118
119 static void failedAccessCheckFor(v8::Isolate*, const Frame* target);
118 }; 120 };
119 121
120 } // namespace blink 122 } // namespace blink
121 123
122 #endif // BindingSecurity_h 124 #endif // BindingSecurity_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698