| 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 #ifndef SKY_ENGINE_CORE_SCRIPT_DART_LOADER_H_ | 5 #ifndef SKY_ENGINE_CORE_SCRIPT_DART_LOADER_H_ |
| 6 #define SKY_ENGINE_CORE_SCRIPT_DART_LOADER_H_ | 6 #define SKY_ENGINE_CORE_SCRIPT_DART_LOADER_H_ |
| 7 | 7 |
| 8 #include "base/callback_forward.h" | 8 #include "base/callback_forward.h" |
| 9 #include "base/macros.h" | 9 #include "base/macros.h" |
| 10 #include "base/memory/weak_ptr.h" | 10 #include "base/memory/weak_ptr.h" |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 48 class Job; | 48 class Job; |
| 49 class ImportJob; | 49 class ImportJob; |
| 50 class SourceJob; | 50 class SourceJob; |
| 51 class DependencyWatcher; | 51 class DependencyWatcher; |
| 52 class WatcherSignaler; | 52 class WatcherSignaler; |
| 53 | 53 |
| 54 Dart_Handle Import(Dart_Handle library, Dart_Handle url); | 54 Dart_Handle Import(Dart_Handle library, Dart_Handle url); |
| 55 Dart_Handle Source(Dart_Handle library, Dart_Handle url); | 55 Dart_Handle Source(Dart_Handle library, Dart_Handle url); |
| 56 void DidCompleteImportJob(ImportJob* job, const Vector<uint8_t>& buffer); | 56 void DidCompleteImportJob(ImportJob* job, const Vector<uint8_t>& buffer); |
| 57 void DidCompleteSourceJob(SourceJob* job, const Vector<uint8_t>& buffer); | 57 void DidCompleteSourceJob(SourceJob* job, const Vector<uint8_t>& buffer); |
| 58 void DidFailJob(Job* job); |
| 58 | 59 |
| 59 base::WeakPtr<DartState> dart_state_; | 60 base::WeakPtr<DartState> dart_state_; |
| 60 HashMap<String, Job*> pending_libraries_; | 61 HashMap<String, Job*> pending_libraries_; |
| 61 HashSet<OwnPtr<Job>> jobs_; | 62 HashSet<OwnPtr<Job>> jobs_; |
| 62 HashSet<OwnPtr<DependencyWatcher>> dependency_watchers_; | 63 HashSet<OwnPtr<DependencyWatcher>> dependency_watchers_; |
| 63 DartDependencyCatcher* dependency_catcher_; | 64 DartDependencyCatcher* dependency_catcher_; |
| 64 | 65 |
| 65 DISALLOW_COPY_AND_ASSIGN(DartLoader); | 66 DISALLOW_COPY_AND_ASSIGN(DartLoader); |
| 66 }; | 67 }; |
| 67 | 68 |
| 68 } // namespace blink | 69 } // namespace blink |
| 69 | 70 |
| 70 #endif // SKY_ENGINE_CORE_SCRIPT_DART_LOADER_H_ | 71 #endif // SKY_ENGINE_CORE_SCRIPT_DART_LOADER_H_ |
| OLD | NEW |