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 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
67 | 67 |
68 // Update the security origin of a document | 68 // Update the security origin of a document |
69 // (e.g., after setting docoument.domain). | 69 // (e.g., after setting docoument.domain). |
70 void UpdateSecurityOrigin(SecurityOrigin*); | 70 void UpdateSecurityOrigin(SecurityOrigin*); |
71 | 71 |
72 private: | 72 private: |
73 LocalWindowProxy(v8::Isolate*, LocalFrame&, RefPtr<DOMWrapperWorld>); | 73 LocalWindowProxy(v8::Isolate*, LocalFrame&, RefPtr<DOMWrapperWorld>); |
74 | 74 |
75 bool IsLocal() const override { return true; } | 75 bool IsLocal() const override { return true; } |
76 void Initialize() override; | 76 void Initialize() override; |
77 void DisposeContext(GlobalDetachmentBehavior) override; | 77 void DisposeContext(Lifecycle next_status) override; |
78 | 78 |
79 // Creates a new v8::Context with the window wrapper object as the global | 79 // Creates a new v8::Context with the window wrapper object as the global |
80 // object (aka the inner global). Note that the window wrapper and its | 80 // object (aka the inner global). Note that the window wrapper and its |
81 // prototype chain do not get fully initialized yet, e.g. the window | 81 // prototype chain do not get fully initialized yet, e.g. the window |
82 // wrapper is not yet associated with the native DOMWindow object. | 82 // wrapper is not yet associated with the native DOMWindow object. |
83 void CreateContext(); | 83 void CreateContext(); |
84 | 84 |
85 // Associates the window wrapper and its prototype chain with the native | 85 // Associates the window wrapper and its prototype chain with the native |
86 // DOMWindow object. Also does some more Window-specific initialization. | 86 // DOMWindow object. Also does some more Window-specific initialization. |
87 void SetupWindowPrototypeChain(); | 87 void SetupWindowPrototypeChain(); |
(...skipping 21 matching lines...) Expand all Loading... |
109 | 109 |
110 DEFINE_TYPE_CASTS(LocalWindowProxy, | 110 DEFINE_TYPE_CASTS(LocalWindowProxy, |
111 WindowProxy, | 111 WindowProxy, |
112 windowProxy, | 112 windowProxy, |
113 windowProxy->IsLocal(), | 113 windowProxy->IsLocal(), |
114 windowProxy.IsLocal()); | 114 windowProxy.IsLocal()); |
115 | 115 |
116 } // namespace blink | 116 } // namespace blink |
117 | 117 |
118 #endif // LocalWindowProxy_h | 118 #endif // LocalWindowProxy_h |
OLD | NEW |