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

Side by Side Diff: sky/engine/core/script/dart_controller.h

Issue 1202283004: Factor DartLibraryProvider out of DartLoader (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 6 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/core/core.gni ('k') | sky/engine/core/script/dart_controller.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_CORE_SCRIPT_DART_CONTROLLER_H_ 5 #ifndef SKY_ENGINE_CORE_SCRIPT_DART_CONTROLLER_H_
6 #define SKY_ENGINE_CORE_SCRIPT_DART_CONTROLLER_H_ 6 #define SKY_ENGINE_CORE_SCRIPT_DART_CONTROLLER_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"
11 #include "dart/runtime/include/dart_api.h" 11 #include "dart/runtime/include/dart_api.h"
12 #include "mojo/services/network/public/interfaces/url_loader.mojom.h" 12 #include "mojo/services/network/public/interfaces/url_loader.mojom.h"
13 #include "sky/engine/wtf/OwnPtr.h" 13 #include "sky/engine/wtf/OwnPtr.h"
14 #include "sky/engine/wtf/text/AtomicString.h" 14 #include "sky/engine/wtf/text/AtomicString.h"
15 #include "sky/engine/wtf/text/TextPosition.h" 15 #include "sky/engine/wtf/text/TextPosition.h"
16 16
17 namespace blink { 17 namespace blink {
18 class AbstractModule; 18 class AbstractModule;
19 class BuiltinSky; 19 class BuiltinSky;
20 class DOMDartState; 20 class DOMDartState;
21 class DartLibraryProviderNetwork;
21 class DartSnapshotLoader; 22 class DartSnapshotLoader;
22 class DartValue; 23 class DartValue;
23 class HTMLScriptElement; 24 class HTMLScriptElement;
24 class KURL; 25 class KURL;
25 class View; 26 class View;
26 27
27 class DartController { 28 class DartController {
28 public: 29 public:
29 DartController(); 30 DartController();
30 ~DartController(); 31 ~DartController();
(...skipping 25 matching lines...) Expand all
56 bool ImportChildLibraries(AbstractModule* module, Dart_Handle library); 57 bool ImportChildLibraries(AbstractModule* module, Dart_Handle library);
57 Dart_Handle CreateLibrary(AbstractModule* module, 58 Dart_Handle CreateLibrary(AbstractModule* module,
58 const String& source, 59 const String& source,
59 const TextPosition& position); 60 const TextPosition& position);
60 61
61 void DidLoadMainLibrary(KURL url); 62 void DidLoadMainLibrary(KURL url);
62 void DidLoadSnapshot(); 63 void DidLoadSnapshot();
63 64
64 OwnPtr<DOMDartState> dom_dart_state_; 65 OwnPtr<DOMDartState> dom_dart_state_;
65 OwnPtr<BuiltinSky> builtin_sky_; 66 OwnPtr<BuiltinSky> builtin_sky_;
67 OwnPtr<DartLibraryProviderNetwork> library_provider_;
66 OwnPtr<DartSnapshotLoader> snapshot_loader_; 68 OwnPtr<DartSnapshotLoader> snapshot_loader_;
67 69
68 base::WeakPtrFactory<DartController> weak_factory_; 70 base::WeakPtrFactory<DartController> weak_factory_;
69 71
70 DISALLOW_COPY_AND_ASSIGN(DartController); 72 DISALLOW_COPY_AND_ASSIGN(DartController);
71 }; 73 };
72 74
73 } 75 }
74 76
75 #endif // SKY_ENGINE_CORE_SCRIPT_DART_CONTROLLER_H_ 77 #endif // SKY_ENGINE_CORE_SCRIPT_DART_CONTROLLER_H_
OLDNEW
« no previous file with comments | « sky/engine/core/core.gni ('k') | sky/engine/core/script/dart_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698