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

Side by Side Diff: Source/bindings/core/v8/V8TestingScope.h

Issue 997003004: [bindings] Migrate V8TestingScope out of V8Binding.h/cpp (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 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
OLDNEW
(Empty)
1 // Copyright (c) 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef V8TestingScope_h
6 #define V8TestingScope_h
7
8 #include "bindings/core/v8/ScriptState.h"
9
10 #include <v8.h>
11
12 namespace blink {
13
14 class V8TestingScope {
15 public:
16 explicit V8TestingScope(v8::Isolate*);
17 ScriptState* scriptState() const;
18 v8::Isolate* isolate() const;
19 ~V8TestingScope();
20
21 private:
22 v8::HandleScope m_handleScope;
23 v8::Context::Scope m_contextScope;
24 RefPtr<ScriptState> m_scriptState;
25 };
26
27 } // namespace blink
28
29 #endif // V8TestingScope_h
OLDNEW
« no previous file with comments | « Source/bindings/core/v8/V8ScriptRunnerTest.cpp ('k') | Source/bindings/core/v8/V8TestingScope.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698