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

Side by Side Diff: services/dart/content_handler_main.cc

Issue 1394303004: Move //mojo/services/X/public/... to //mojo/services/X/... (part 3). (Closed) Base URL: https://github.com/domokit/mojo.git@no_public_2-x-no_public_1
Patch Set: Created 5 years, 2 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 | « services/dart/BUILD.gn ('k') | services/dart/dart_tracing.h » ('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 2014 The Chromium Authors. All rights reserved. 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 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 "base/bind.h" 5 #include "base/bind.h"
6 #include "base/message_loop/message_loop.h" 6 #include "base/message_loop/message_loop.h"
7 #include "base/run_loop.h" 7 #include "base/run_loop.h"
8 #include "base/strings/string_util.h" 8 #include "base/strings/string_util.h"
9 #include "base/synchronization/waitable_event.h" 9 #include "base/synchronization/waitable_event.h"
10 #include "base/threading/platform_thread.h" 10 #include "base/threading/platform_thread.h"
11 #include "base/trace_event/trace_event.h" 11 #include "base/trace_event/trace_event.h"
12 #include "mojo/application/application_runner_chromium.h" 12 #include "mojo/application/application_runner_chromium.h"
13 #include "mojo/application/content_handler_factory.h" 13 #include "mojo/application/content_handler_factory.h"
14 #include "mojo/common/tracing_impl.h" 14 #include "mojo/common/tracing_impl.h"
15 #include "mojo/dart/embedder/dart_controller.h" 15 #include "mojo/dart/embedder/dart_controller.h"
16 #include "mojo/public/c/system/main.h" 16 #include "mojo/public/c/system/main.h"
17 #include "mojo/public/cpp/application/application_delegate.h" 17 #include "mojo/public/cpp/application/application_delegate.h"
18 #include "mojo/public/cpp/application/application_impl.h" 18 #include "mojo/public/cpp/application/application_impl.h"
19 #include "mojo/public/cpp/bindings/binding.h" 19 #include "mojo/public/cpp/bindings/binding.h"
20 #include "mojo/public/cpp/bindings/interface_request.h" 20 #include "mojo/public/cpp/bindings/interface_request.h"
21 #include "mojo/services/tracing/public/interfaces/tracing.mojom.h" 21 #include "mojo/services/tracing/interfaces/tracing.mojom.h"
22 #include "mojo/services/url_response_disk_cache/public/interfaces/url_response_d isk_cache.mojom.h" 22 #include "mojo/services/url_response_disk_cache/interfaces/url_response_disk_cac he.mojom.h"
23 #include "services/dart/content_handler_app_service_connector.h" 23 #include "services/dart/content_handler_app_service_connector.h"
24 #include "services/dart/dart_app.h" 24 #include "services/dart/dart_app.h"
25 #include "services/dart/dart_tracing.h" 25 #include "services/dart/dart_tracing.h"
26 #include "url/gurl.h" 26 #include "url/gurl.h"
27 27
28 namespace dart { 28 namespace dart {
29 29
30 const char kEnableStrictMode[] = "--enable-strict-mode"; 30 const char kEnableStrictMode[] = "--enable-strict-mode";
31 const char kTraceStartup[] = "--trace-startup"; 31 const char kTraceStartup[] = "--trace-startup";
32 32
(...skipping 173 matching lines...) Expand 10 before | Expand all | Expand 10 after
206 206
207 } // namespace dart 207 } // namespace dart
208 208
209 MojoResult MojoMain(MojoHandle application_request) { 209 MojoResult MojoMain(MojoHandle application_request) {
210 mojo::ApplicationRunnerChromium runner(new dart::DartContentHandlerApp); 210 mojo::ApplicationRunnerChromium runner(new dart::DartContentHandlerApp);
211 MojoResult r = runner.Run(application_request); 211 MojoResult r = runner.Run(application_request);
212 // TODO(johnmccutchan): Remove this once the Dart VM shuts down threads. 212 // TODO(johnmccutchan): Remove this once the Dart VM shuts down threads.
213 base::PlatformThread::Sleep(base::TimeDelta::FromMilliseconds(100)); 213 base::PlatformThread::Sleep(base::TimeDelta::FromMilliseconds(100));
214 return r; 214 return r;
215 } 215 }
OLDNEW
« no previous file with comments | « services/dart/BUILD.gn ('k') | services/dart/dart_tracing.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698