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

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

Issue 2732483004: Reinitialize WindowProxy on navigations. (Closed)
Patch Set: . Created 3 years, 9 months 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
« no previous file with comments | « no previous file | third_party/WebKit/Source/bindings/core/v8/LocalWindowProxy.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
78 // prototype chain do not get fully initialized yet, e.g. the window 78 // prototype chain do not get fully initialized yet, e.g. the window
79 // wrapper is not yet associated with the native DOMWindow object. 79 // wrapper is not yet associated with the native DOMWindow object.
80 void createContext(); 80 void createContext();
81 81
82 // Associates the window wrapper and its prototype chain with the native 82 // Associates the window wrapper and its prototype chain with the native
83 // DOMWindow object. Also does some more Window-specific initialization. 83 // DOMWindow object. Also does some more Window-specific initialization.
84 void setupWindowPrototypeChain(); 84 void setupWindowPrototypeChain();
85 85
86 void setSecurityToken(SecurityOrigin*); 86 void setSecurityToken(SecurityOrigin*);
87 87
88 // Triggers updates of objects that are associated with a Document:
89 // - the activity logger
90 // - the document DOM wrapper
91 // - the security origin
92 void updateDocumentInternal();
93
88 // The JavaScript wrapper for the document object is cached on the global 94 // The JavaScript wrapper for the document object is cached on the global
89 // object for fast access. UpdateDocumentProperty sets the wrapper 95 // object for fast access. UpdateDocumentProperty sets the wrapper
90 // for the current document on the global object. 96 // for the current document on the global object.
91 void updateDocumentProperty(); 97 void updateDocumentProperty();
92 98
93 // Updates Activity Logger for the current context. 99 // Updates Activity Logger for the current context.
94 void updateActivityLogger(); 100 void updateActivityLogger();
95 101
96 LocalFrame* frame() const { return toLocalFrame(WindowProxy::frame()); } 102 LocalFrame* frame() const { return toLocalFrame(WindowProxy::frame()); }
97 103
98 RefPtr<ScriptState> m_scriptState; 104 RefPtr<ScriptState> m_scriptState;
99 }; 105 };
100 106
101 } // namespace blink 107 } // namespace blink
102 108
103 #endif // LocalWindowProxy_h 109 #endif // LocalWindowProxy_h
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/Source/bindings/core/v8/LocalWindowProxy.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698