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

Side by Side Diff: sky/engine/tonic/dart_snapshot_loader.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_library_loader.cc ('k') | sky/engine/tonic/dart_state.cc » ('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 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_snapshot_loader.h" 5 #include "sky/engine/tonic/dart_snapshot_loader.h"
6 6
7 #include "base/callback.h" 7 #include "base/callback.h"
8 #include "base/trace_event/trace_event.h" 8 #include "base/trace_event/trace_event.h"
9 #include "sky/engine/tonic/dart_api_scope.h" 9 #include "sky/engine/tonic/dart_api_scope.h"
10 #include "sky/engine/tonic/dart_converter.h" 10 #include "sky/engine/tonic/dart_converter.h"
11 #include "sky/engine/tonic/dart_error.h" 11 #include "sky/engine/tonic/dart_error.h"
12 #include "sky/engine/tonic/dart_isolate_scope.h" 12 #include "sky/engine/tonic/dart_isolate_scope.h"
13 #include "sky/engine/wtf/MainThread.h"
14 13
15 using mojo::common::DataPipeDrainer; 14 using mojo::common::DataPipeDrainer;
16 15
17 namespace blink { 16 namespace blink {
18 17
19 DartSnapshotLoader::DartSnapshotLoader(DartState* dart_state) 18 DartSnapshotLoader::DartSnapshotLoader(DartState* dart_state)
20 : dart_state_(dart_state->GetWeakPtr()) { 19 : dart_state_(dart_state->GetWeakPtr()) {
21 } 20 }
22 21
23 DartSnapshotLoader::~DartSnapshotLoader() { 22 DartSnapshotLoader::~DartSnapshotLoader() {
(...skipping 20 matching lines...) Expand all
44 DartIsolateScope scope(dart_state_->isolate()); 43 DartIsolateScope scope(dart_state_->isolate());
45 DartApiScope api_scope; 44 DartApiScope api_scope;
46 45
47 LogIfError(Dart_LoadScriptFromSnapshot(buffer_.data(), buffer_.size())); 46 LogIfError(Dart_LoadScriptFromSnapshot(buffer_.data(), buffer_.size()));
48 } 47 }
49 48
50 callback_.Run(); 49 callback_.Run();
51 } 50 }
52 51
53 } // namespace blink 52 } // namespace blink
OLDNEW
« no previous file with comments | « sky/engine/tonic/dart_library_loader.cc ('k') | sky/engine/tonic/dart_state.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698