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

Side by Side Diff: services/dart/dart_app.h

Issue 816113004: Dart: Adds a content handler and a test. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Merge CLs that address comments Created 5 years, 11 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
OLDNEW
(Empty)
1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef SERVICES_DART_DART_APP_H_
6 #define SERVICES_DART_DART_APP_H_
7
8 #include "mojo/application/content_handler_factory.h"
9 #include "mojo/dart/embedder/dart_controller.h"
10 #include "mojo/public/cpp/system/message_pipe.h"
11 #include "mojo/public/interfaces/application/application.mojom.h"
12 #include "mojo/public/interfaces/application/shell.mojom.h"
13
14 namespace dart {
15
16 class DartApp;
17 class ApplicationDelegateImpl;
18
19 // Each Dart app started by content handler runs on its own thread and
20 // in its own Dart isolate. This class represents one running Dart app.
21
22 class DartApp : public mojo::ContentHandlerFactory::HandledApplicationHolder {
23 public:
24 DartApp(mojo::ShellPtr shell, mojo::URLResponsePtr response);
25 virtual ~DartApp();
26
27 private:
28 void OnAppLoaded();
29
30 mojo::ShellPtr shell_;
31 mojo::dart::DartControllerConfig _config;
abarth-chromium 2015/01/16 05:43:43 s/_config/config_/
zra 2015/01/16 17:54:51 Done.
32 DISALLOW_COPY_AND_ASSIGN(DartApp);
33 };
34
35 } // namespace dart
36
37 #endif // SERVICES_DART_DART_APP_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698