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

Side by Side Diff: Source/bindings/core/v8/ScriptState.cpp

Issue 398673003: Rename WebCore namespace to blink in bindings and web (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 5 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 | Annotate | Revision Log
« no previous file with comments | « Source/bindings/core/v8/ScriptState.h ('k') | Source/bindings/core/v8/ScriptString.h » ('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 #include "config.h" 5 #include "config.h"
6 #include "bindings/core/v8/ScriptState.h" 6 #include "bindings/core/v8/ScriptState.h"
7 7
8 #include "bindings/core/v8/V8Binding.h" 8 #include "bindings/core/v8/V8Binding.h"
9 #include "core/dom/ExecutionContext.h" 9 #include "core/dom/ExecutionContext.h"
10 #include "core/frame/LocalFrame.h" 10 #include "core/frame/LocalFrame.h"
11 11
12 namespace WebCore { 12 namespace blink {
13 13
14 PassRefPtr<ScriptState> ScriptState::create(v8::Handle<v8::Context> context, Pas sRefPtr<DOMWrapperWorld> world) 14 PassRefPtr<ScriptState> ScriptState::create(v8::Handle<v8::Context> context, Pas sRefPtr<DOMWrapperWorld> world)
15 { 15 {
16 RefPtr<ScriptState> scriptState = adoptRef(new ScriptState(context, world)); 16 RefPtr<ScriptState> scriptState = adoptRef(new ScriptState(context, world));
17 // This ref() is for keeping this ScriptState alive as long as the v8::Conte xt is alive. 17 // This ref() is for keeping this ScriptState alive as long as the v8::Conte xt is alive.
18 // This is deref()ed in the weak callback of the v8::Context. 18 // This is deref()ed in the weak callback of the v8::Context.
19 scriptState->ref(); 19 scriptState->ref();
20 return scriptState; 20 return scriptState;
21 } 21 }
22 22
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after
105 { 105 {
106 return m_executionContext; 106 return m_executionContext;
107 } 107 }
108 108
109 void ScriptStateForTesting::setExecutionContext(ExecutionContext* executionConte xt) 109 void ScriptStateForTesting::setExecutionContext(ExecutionContext* executionConte xt)
110 { 110 {
111 m_executionContext = executionContext; 111 m_executionContext = executionContext;
112 } 112 }
113 113
114 } 114 }
OLDNEW
« no previous file with comments | « Source/bindings/core/v8/ScriptState.h ('k') | Source/bindings/core/v8/ScriptString.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698