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

Side by Side Diff: examples/forwarding_content_handler/forwarding_content_handler.cc

Issue 1388413005: Move //mojo/services/X/public/... to //mojo/services/X/... (part 1). (Closed) Base URL: https://github.com/domokit/mojo.git@master
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 | « examples/forwarding_content_handler/BUILD.gn ('k') | examples/js/repl.js » ('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/macros.h" 5 #include "base/macros.h"
6 #include "base/memory/scoped_ptr.h" 6 #include "base/memory/scoped_ptr.h"
7 #include "mojo/application/application_runner_chromium.h" 7 #include "mojo/application/application_runner_chromium.h"
8 #include "mojo/application/content_handler_factory.h" 8 #include "mojo/application/content_handler_factory.h"
9 #include "mojo/data_pipe_utils/data_pipe_utils.h" 9 #include "mojo/data_pipe_utils/data_pipe_utils.h"
10 #include "mojo/public/c/system/main.h" 10 #include "mojo/public/c/system/main.h"
11 #include "mojo/public/cpp/application/application_connection.h" 11 #include "mojo/public/cpp/application/application_connection.h"
12 #include "mojo/public/cpp/application/application_delegate.h" 12 #include "mojo/public/cpp/application/application_delegate.h"
13 #include "mojo/public/cpp/application/interface_factory_impl.h" 13 #include "mojo/public/cpp/application/interface_factory_impl.h"
14 #include "mojo/public/cpp/bindings/binding.h" 14 #include "mojo/public/cpp/bindings/binding.h"
15 #include "mojo/public/cpp/utility/run_loop.h" 15 #include "mojo/public/cpp/utility/run_loop.h"
16 #include "mojo/public/interfaces/application/application.mojom.h" 16 #include "mojo/public/interfaces/application/application.mojom.h"
17 #include "mojo/services/content_handler/public/interfaces/content_handler.mojom. h" 17 #include "mojo/services/content_handler/interfaces/content_handler.mojom.h"
18 18
19 namespace mojo { 19 namespace mojo {
20 namespace examples { 20 namespace examples {
21 21
22 class ForwardingApplicationImpl : public Application { 22 class ForwardingApplicationImpl : public Application {
23 public: 23 public:
24 ForwardingApplicationImpl(InterfaceRequest<Application> request, 24 ForwardingApplicationImpl(InterfaceRequest<Application> request,
25 std::string target_url) 25 std::string target_url)
26 : binding_(this, request.Pass()), 26 : binding_(this, request.Pass()),
27 target_url_(target_url) { 27 target_url_(target_url) {
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
83 }; 83 };
84 84
85 } // namespace examples 85 } // namespace examples
86 } // namespace mojo 86 } // namespace mojo
87 87
88 MojoResult MojoMain(MojoHandle application_request) { 88 MojoResult MojoMain(MojoHandle application_request) {
89 mojo::ApplicationRunnerChromium runner( 89 mojo::ApplicationRunnerChromium runner(
90 new mojo::examples::ForwardingContentHandler()); 90 new mojo::examples::ForwardingContentHandler());
91 return runner.Run(application_request); 91 return runner.Run(application_request);
92 } 92 }
OLDNEW
« no previous file with comments | « examples/forwarding_content_handler/BUILD.gn ('k') | examples/js/repl.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698