| 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 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 69 void disposeContext(GlobalDetachmentBehavior) override; | 69 void disposeContext(GlobalDetachmentBehavior) override; |
| 70 | 70 |
| 71 // Creates a new v8::Context with the window wrapper object as the global | 71 // Creates a new v8::Context with the window wrapper object as the global |
| 72 // object (aka the inner global). Note that the window wrapper and its | 72 // object (aka the inner global). Note that the window wrapper and its |
| 73 // prototype chain do not get fully initialized yet, e.g. the window | 73 // prototype chain do not get fully initialized yet, e.g. the window |
| 74 // wrapper is not yet associated with the native DOMWindow object. | 74 // wrapper is not yet associated with the native DOMWindow object. |
| 75 void createContext(); | 75 void createContext(); |
| 76 | 76 |
| 77 void setSecurityToken(SecurityOrigin*); | 77 void setSecurityToken(SecurityOrigin*); |
| 78 | 78 |
| 79 // Triggers updates of objects that are associated with a Document: |
| 80 // - the activity logger |
| 81 // - the document DOM wrapper |
| 82 // - the security origin |
| 83 void updateDocumentInternal(); |
| 84 |
| 79 // The JavaScript wrapper for the document object is cached on the global | 85 // The JavaScript wrapper for the document object is cached on the global |
| 80 // object for fast access. UpdateDocumentProperty sets the wrapper | 86 // object for fast access. UpdateDocumentProperty sets the wrapper |
| 81 // for the current document on the global object. | 87 // for the current document on the global object. |
| 82 void updateDocumentProperty(); | 88 void updateDocumentProperty(); |
| 83 | 89 |
| 84 // Updates Activity Logger for the current context. | 90 // Updates Activity Logger for the current context. |
| 85 void updateActivityLogger(); | 91 void updateActivityLogger(); |
| 86 | 92 |
| 87 LocalFrame* frame() const { return toLocalFrame(WindowProxy::frame()); } | 93 LocalFrame* frame() const { return toLocalFrame(WindowProxy::frame()); } |
| 88 }; | 94 }; |
| 89 | 95 |
| 90 } // namespace blink | 96 } // namespace blink |
| 91 | 97 |
| 92 #endif // LocalWindowProxy_h | 98 #endif // LocalWindowProxy_h |
| OLD | NEW |