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

Side by Side Diff: mojo/services/html_viewer/html_viewer.cc

Issue 861683003: Move services code brought in from Mojo to live under //third_party. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 5 years, 10 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
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/command_line.h" 5 #include "base/command_line.h"
6 #include "base/logging.h" 6 #include "base/logging.h"
7 #include "base/macros.h" 7 #include "base/macros.h"
8 #include "base/message_loop/message_loop.h" 8 #include "base/message_loop/message_loop.h"
9 #include "base/strings/utf_string_conversions.h" 9 #include "base/strings/utf_string_conversions.h"
10 #include "base/threading/thread.h" 10 #include "base/threading/thread.h"
11 #include "gin/public/isolate_holder.h" 11 #include "gin/public/isolate_holder.h"
12 #include "mojo/application/application_runner_chromium.h" 12 #include "mojo/application/application_runner_chromium.h"
13 #include "mojo/services/content_handler/public/interfaces/content_handler.mojom. h"
14 #include "mojo/services/html_viewer/html_document.h" 13 #include "mojo/services/html_viewer/html_document.h"
15 #include "mojo/services/html_viewer/mojo_blink_platform_impl.h" 14 #include "mojo/services/html_viewer/mojo_blink_platform_impl.h"
16 #include "mojo/services/html_viewer/webmediaplayer_factory.h" 15 #include "mojo/services/html_viewer/webmediaplayer_factory.h"
17 #include "mojo/services/network/public/interfaces/network_service.mojom.h" 16 #include "mojo/services/network/public/interfaces/network_service.mojom.h"
18 #include "third_party/WebKit/public/web/WebKit.h" 17 #include "third_party/WebKit/public/web/WebKit.h"
19 #include "third_party/WebKit/public/web/WebRuntimeFeatures.h" 18 #include "third_party/WebKit/public/web/WebRuntimeFeatures.h"
20 #include "third_party/mojo/src/mojo/public/c/system/main.h" 19 #include "third_party/mojo/src/mojo/public/c/system/main.h"
21 #include "third_party/mojo/src/mojo/public/cpp/application/application_connectio n.h" 20 #include "third_party/mojo/src/mojo/public/cpp/application/application_connectio n.h"
22 #include "third_party/mojo/src/mojo/public/cpp/application/application_delegate. h" 21 #include "third_party/mojo/src/mojo/public/cpp/application/application_delegate. h"
23 #include "third_party/mojo/src/mojo/public/cpp/application/application_impl.h" 22 #include "third_party/mojo/src/mojo/public/cpp/application/application_impl.h"
24 #include "third_party/mojo/src/mojo/public/cpp/application/connect.h" 23 #include "third_party/mojo/src/mojo/public/cpp/application/connect.h"
25 #include "third_party/mojo/src/mojo/public/cpp/application/interface_factory_imp l.h" 24 #include "third_party/mojo/src/mojo/public/cpp/application/interface_factory_imp l.h"
26 #include "third_party/mojo/src/mojo/public/cpp/bindings/strong_binding.h" 25 #include "third_party/mojo/src/mojo/public/cpp/bindings/strong_binding.h"
26 #include "third_party/mojo_services/src/content_handler/public/interfaces/conten t_handler.mojom.h"
27 27
28 #if !defined(COMPONENT_BUILD) 28 #if !defined(COMPONENT_BUILD)
29 #include "base/i18n/icu_util.h" 29 #include "base/i18n/icu_util.h"
30 #include "base/path_service.h" 30 #include "base/path_service.h"
31 #include "ui/base/resource/resource_bundle.h" 31 #include "ui/base/resource/resource_bundle.h"
32 #include "ui/base/ui_base_paths.h" 32 #include "ui/base/ui_base_paths.h"
33 #endif 33 #endif
34 34
35 using mojo::ApplicationConnection; 35 using mojo::ApplicationConnection;
36 using mojo::Array; 36 using mojo::Array;
(...skipping 182 matching lines...) Expand 10 before | Expand all | Expand 10 after
219 219
220 DISALLOW_COPY_AND_ASSIGN(HTMLViewer); 220 DISALLOW_COPY_AND_ASSIGN(HTMLViewer);
221 }; 221 };
222 222
223 } // namespace html_viewer 223 } // namespace html_viewer
224 224
225 MojoResult MojoMain(MojoHandle shell_handle) { 225 MojoResult MojoMain(MojoHandle shell_handle) {
226 mojo::ApplicationRunnerChromium runner(new html_viewer::HTMLViewer); 226 mojo::ApplicationRunnerChromium runner(new html_viewer::HTMLViewer);
227 return runner.Run(shell_handle); 227 return runner.Run(shell_handle);
228 } 228 }
OLDNEW
« no previous file with comments | « mojo/services/html_viewer/html_document.cc ('k') | mojo/services/html_viewer/webclipboard_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698