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

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

Issue 2823473002: Remove ScriptState::GetFromExtrasExports (Closed)
Patch Set: Rebase, remove unused var Created 3 years, 8 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/ScriptState.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 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef ScriptState_h 5 #ifndef ScriptState_h
6 #define ScriptState_h 6 #define ScriptState_h
7 7
8 #include <memory> 8 #include <memory>
9 9
10 #include "bindings/core/v8/ScopedPersistent.h" 10 #include "bindings/core/v8/ScopedPersistent.h"
(...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after
142 } 142 }
143 bool ContextIsValid() const { 143 bool ContextIsValid() const {
144 return !context_.IsEmpty() && per_context_data_; 144 return !context_.IsEmpty() && per_context_data_;
145 } 145 }
146 void DetachGlobalObject(); 146 void DetachGlobalObject();
147 void ClearContext() { return context_.Clear(); } 147 void ClearContext() { return context_.Clear(); }
148 148
149 V8PerContextData* PerContextData() const { return per_context_data_.get(); } 149 V8PerContextData* PerContextData() const { return per_context_data_.get(); }
150 void DisposePerContextData(); 150 void DisposePerContextData();
151 151
152 ScriptValue GetFromExtrasExports(const char* name);
153
154 protected: 152 protected:
155 ScriptState(v8::Local<v8::Context>, PassRefPtr<DOMWrapperWorld>); 153 ScriptState(v8::Local<v8::Context>, PassRefPtr<DOMWrapperWorld>);
156 154
157 private: 155 private:
158 v8::Isolate* isolate_; 156 v8::Isolate* isolate_;
159 // This persistent handle is weak. 157 // This persistent handle is weak.
160 ScopedPersistent<v8::Context> context_; 158 ScopedPersistent<v8::Context> context_;
161 159
162 // This RefPtr doesn't cause a cycle because all persistent handles that 160 // This RefPtr doesn't cause a cycle because all persistent handles that
163 // DOMWrapperWorld holds are weak. 161 // DOMWrapperWorld holds are weak.
(...skipping 30 matching lines...) Expand all
194 } 192 }
195 193
196 private: 194 private:
197 RefPtr<ScriptState> script_state_; 195 RefPtr<ScriptState> script_state_;
198 ScopedPersistent<v8::Context> context_; 196 ScopedPersistent<v8::Context> context_;
199 }; 197 };
200 198
201 } // namespace blink 199 } // namespace blink
202 200
203 #endif // ScriptState_h 201 #endif // ScriptState_h
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/Source/bindings/core/v8/ScriptState.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698