| OLD | NEW |
| 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 17 matching lines...) Expand all Loading... |
| 28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| 29 */ | 29 */ |
| 30 | 30 |
| 31 #ifndef LocalWindowProxy_h | 31 #ifndef LocalWindowProxy_h |
| 32 #define LocalWindowProxy_h | 32 #define LocalWindowProxy_h |
| 33 | 33 |
| 34 #include "bindings/core/v8/DOMWrapperWorld.h" | 34 #include "bindings/core/v8/DOMWrapperWorld.h" |
| 35 #include "bindings/core/v8/ScriptState.h" | 35 #include "bindings/core/v8/ScriptState.h" |
| 36 #include "bindings/core/v8/WindowProxy.h" | 36 #include "bindings/core/v8/WindowProxy.h" |
| 37 #include "core/frame/LocalFrame.h" | 37 #include "core/frame/LocalFrame.h" |
| 38 #include "platform/wtf/Assertions.h" |
| 39 #include "platform/wtf/RefPtr.h" |
| 40 #include "platform/wtf/text/AtomicString.h" |
| 38 #include "v8/include/v8.h" | 41 #include "v8/include/v8.h" |
| 39 #include "wtf/Assertions.h" | |
| 40 #include "wtf/RefPtr.h" | |
| 41 #include "wtf/text/AtomicString.h" | |
| 42 | 42 |
| 43 namespace blink { | 43 namespace blink { |
| 44 | 44 |
| 45 class HTMLDocument; | 45 class HTMLDocument; |
| 46 class SecurityOrigin; | 46 class SecurityOrigin; |
| 47 | 47 |
| 48 // Subclass of WindowProxy that only handles LocalFrame. | 48 // Subclass of WindowProxy that only handles LocalFrame. |
| 49 class LocalWindowProxy final : public WindowProxy { | 49 class LocalWindowProxy final : public WindowProxy { |
| 50 public: | 50 public: |
| 51 static LocalWindowProxy* create(v8::Isolate* isolate, | 51 static LocalWindowProxy* create(v8::Isolate* isolate, |
| (...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 108 | 108 |
| 109 DEFINE_TYPE_CASTS(LocalWindowProxy, | 109 DEFINE_TYPE_CASTS(LocalWindowProxy, |
| 110 WindowProxy, | 110 WindowProxy, |
| 111 windowProxy, | 111 windowProxy, |
| 112 windowProxy->isLocal(), | 112 windowProxy->isLocal(), |
| 113 windowProxy.isLocal()); | 113 windowProxy.isLocal()); |
| 114 | 114 |
| 115 } // namespace blink | 115 } // namespace blink |
| 116 | 116 |
| 117 #endif // LocalWindowProxy_h | 117 #endif // LocalWindowProxy_h |
| OLD | NEW |