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

Side by Side Diff: sky/engine/tonic/dart_state.cc

Issue 1237563003: Remove some more WTF usage (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 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
« no previous file with comments | « sky/engine/tonic/dart_snapshot_loader.cc ('k') | 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 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 "sky/engine/tonic/dart_state.h" 5 #include "sky/engine/tonic/dart_state.h"
6 6
7 #include "sky/engine/tonic/dart_class_library.h" 7 #include "sky/engine/tonic/dart_class_library.h"
8 #include "sky/engine/tonic/dart_converter.h" 8 #include "sky/engine/tonic/dart_converter.h"
9 #include "sky/engine/tonic/dart_exception_factory.h" 9 #include "sky/engine/tonic/dart_exception_factory.h"
10 #include "sky/engine/tonic/dart_library_loader.h" 10 #include "sky/engine/tonic/dart_library_loader.h"
11 #include "sky/engine/tonic/dart_string_cache.h" 11 #include "sky/engine/tonic/dart_string_cache.h"
12 #include "sky/engine/tonic/dart_timer_heap.h" 12 #include "sky/engine/tonic/dart_timer_heap.h"
13 #include "sky/engine/wtf/PassOwnPtr.h"
14 13
15 namespace blink { 14 namespace blink {
16 15
17 DartState::Scope::Scope(DartState* dart_state) : scope_(dart_state->isolate()) { 16 DartState::Scope::Scope(DartState* dart_state) : scope_(dart_state->isolate()) {
18 } 17 }
19 18
20 DartState::Scope::~Scope() { 19 DartState::Scope::~Scope() {
21 } 20 }
22 21
23 DartState::DartState() 22 DartState::DartState()
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
56 55
57 DartState* DartState::Current() { 56 DartState* DartState::Current() {
58 return static_cast<DartState*>(Dart_CurrentIsolateData()); 57 return static_cast<DartState*>(Dart_CurrentIsolateData());
59 } 58 }
60 59
61 base::WeakPtr<DartState> DartState::GetWeakPtr() { 60 base::WeakPtr<DartState> DartState::GetWeakPtr() {
62 return weak_factory_.GetWeakPtr(); 61 return weak_factory_.GetWeakPtr();
63 } 62 }
64 63
65 } // namespace blink 64 } // namespace blink
OLDNEW
« no previous file with comments | « sky/engine/tonic/dart_snapshot_loader.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698