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

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

Issue 2619523003: Remove isGlobalInitialized (Closed)
Patch Set: Created 3 years, 11 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 | no next file » | 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 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
68 void namedItemAdded(HTMLDocument*, const AtomicString&); 68 void namedItemAdded(HTMLDocument*, const AtomicString&);
69 void namedItemRemoved(HTMLDocument*, const AtomicString&); 69 void namedItemRemoved(HTMLDocument*, const AtomicString&);
70 70
71 // Update the security origin of a document 71 // Update the security origin of a document
72 // (e.g., after setting docoument.domain). 72 // (e.g., after setting docoument.domain).
73 void updateSecurityOrigin(SecurityOrigin*); 73 void updateSecurityOrigin(SecurityOrigin*);
74 74
75 bool isContextInitialized() { 75 bool isContextInitialized() {
76 return m_scriptState && !!m_scriptState->perContextData(); 76 return m_scriptState && !!m_scriptState->perContextData();
77 } 77 }
78 bool isGlobalInitialized() { return !m_globalProxy.isEmpty(); }
79
80 void initializeIfNeeded(); 78 void initializeIfNeeded();
81 79
82 void clearForNavigation(); 80 void clearForNavigation();
83 void clearForClose(); 81 void clearForClose();
84 82
85 v8::Local<v8::Object> globalIfNotDetached(); 83 v8::Local<v8::Object> globalIfNotDetached();
86 v8::Local<v8::Object> releaseGlobal(); 84 v8::Local<v8::Object> releaseGlobal();
87 void setGlobal(v8::Local<v8::Object>); 85 void setGlobal(v8::Local<v8::Object>);
88 86
89 DOMWrapperWorld& world() { return *m_world; } 87 DOMWrapperWorld& world() { return *m_world; }
(...skipping 28 matching lines...) Expand all
118 Member<Frame> m_frame; 116 Member<Frame> m_frame;
119 v8::Isolate* m_isolate; 117 v8::Isolate* m_isolate;
120 RefPtr<ScriptState> m_scriptState; 118 RefPtr<ScriptState> m_scriptState;
121 RefPtr<DOMWrapperWorld> m_world; 119 RefPtr<DOMWrapperWorld> m_world;
122 ScopedPersistent<v8::Object> m_globalProxy; 120 ScopedPersistent<v8::Object> m_globalProxy;
123 }; 121 };
124 122
125 } // namespace blink 123 } // namespace blink
126 124
127 #endif // WindowProxy_h 125 #endif // WindowProxy_h
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698