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

Side by Side Diff: sky/engine/tonic/dart_library_loader.h

Issue 1237973002: Remove most usage of Vector (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 | « no previous file | sky/engine/tonic/dart_library_loader.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 #ifndef SKY_ENGINE_TONIC_DART_LIBRARY_LOADER_H_ 5 #ifndef SKY_ENGINE_TONIC_DART_LIBRARY_LOADER_H_
6 #define SKY_ENGINE_TONIC_DART_LIBRARY_LOADER_H_ 6 #define SKY_ENGINE_TONIC_DART_LIBRARY_LOADER_H_
7 7
8 #include <vector>
8 #include "base/callback_forward.h" 9 #include "base/callback_forward.h"
9 #include "base/macros.h" 10 #include "base/macros.h"
10 #include "base/memory/weak_ptr.h" 11 #include "base/memory/weak_ptr.h"
11 #include "dart/runtime/include/dart_api.h" 12 #include "dart/runtime/include/dart_api.h"
12 #include "sky/engine/wtf/HashMap.h" 13 #include "sky/engine/wtf/HashMap.h"
13 #include "sky/engine/wtf/HashSet.h" 14 #include "sky/engine/wtf/HashSet.h"
14 #include "sky/engine/wtf/OwnPtr.h" 15 #include "sky/engine/wtf/OwnPtr.h"
15 #include "sky/engine/wtf/Vector.h"
16 #include "sky/engine/wtf/text/WTFString.h" 16 #include "sky/engine/wtf/text/WTFString.h"
17 17
18 namespace blink { 18 namespace blink {
19 class DartDependency; 19 class DartDependency;
20 class DartDependencyCatcher; 20 class DartDependencyCatcher;
21 class DartLibraryProvider; 21 class DartLibraryProvider;
22 class DartState; 22 class DartState;
23 23
24 // TODO(abarth): This class seems more complicated than it needs to be. Is 24 // TODO(abarth): This class seems more complicated than it needs to be. Is
25 // there some way of simplifying this system? For example, we have a bunch 25 // there some way of simplifying this system? For example, we have a bunch
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
57 private: 57 private:
58 class Job; 58 class Job;
59 class ImportJob; 59 class ImportJob;
60 class SourceJob; 60 class SourceJob;
61 class DependencyWatcher; 61 class DependencyWatcher;
62 class WatcherSignaler; 62 class WatcherSignaler;
63 63
64 Dart_Handle Import(Dart_Handle library, Dart_Handle url); 64 Dart_Handle Import(Dart_Handle library, Dart_Handle url);
65 Dart_Handle Source(Dart_Handle library, Dart_Handle url); 65 Dart_Handle Source(Dart_Handle library, Dart_Handle url);
66 Dart_Handle CanonicalizeURL(Dart_Handle library, Dart_Handle url); 66 Dart_Handle CanonicalizeURL(Dart_Handle library, Dart_Handle url);
67 void DidCompleteImportJob(ImportJob* job, const Vector<uint8_t>& buffer); 67 void DidCompleteImportJob(ImportJob* job, const std::vector<uint8_t>& buffer);
68 void DidCompleteSourceJob(SourceJob* job, const Vector<uint8_t>& buffer); 68 void DidCompleteSourceJob(SourceJob* job, const std::vector<uint8_t>& buffer);
69 void DidFailJob(Job* job); 69 void DidFailJob(Job* job);
70 70
71 DartState* dart_state_; 71 DartState* dart_state_;
72 DartLibraryProvider* library_provider_; 72 DartLibraryProvider* library_provider_;
73 HashMap<String, Job*> pending_libraries_; 73 HashMap<String, Job*> pending_libraries_;
74 HashSet<OwnPtr<Job>> jobs_; 74 HashSet<OwnPtr<Job>> jobs_;
75 HashSet<OwnPtr<DependencyWatcher>> dependency_watchers_; 75 HashSet<OwnPtr<DependencyWatcher>> dependency_watchers_;
76 DartDependencyCatcher* dependency_catcher_; 76 DartDependencyCatcher* dependency_catcher_;
77 77
78 DISALLOW_COPY_AND_ASSIGN(DartLibraryLoader); 78 DISALLOW_COPY_AND_ASSIGN(DartLibraryLoader);
79 }; 79 };
80 80
81 } // namespace blink 81 } // namespace blink
82 82
83 #endif // SKY_ENGINE_TONIC_DART_LIBRARY_LOADER_H_ 83 #endif // SKY_ENGINE_TONIC_DART_LIBRARY_LOADER_H_
OLDNEW
« no previous file with comments | « no previous file | sky/engine/tonic/dart_library_loader.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698