| OLD | NEW |
| 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 Loading... |
| 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 |
| OLD | NEW |