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

Side by Side Diff: mojo/application/content_handler_factory.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
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 "mojo/application/content_handler_factory.h" 5 #include "mojo/application/content_handler_factory.h"
6 6
7 #include <set> 7 #include <set>
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/callback.h" 10 #include "base/callback.h"
11 #include "base/memory/weak_ptr.h" 11 #include "base/memory/weak_ptr.h"
12 #include "base/thread_task_runner_handle.h" 12 #include "base/thread_task_runner_handle.h"
13 #include "base/threading/platform_thread.h" 13 #include "base/threading/platform_thread.h"
14 #include "base/trace_event/trace_event.h" 14 #include "base/trace_event/trace_event.h"
15 #include "mojo/application/application_runner_chromium.h" 15 #include "mojo/application/application_runner_chromium.h"
16 #include "mojo/message_pump/message_pump_mojo.h" 16 #include "mojo/message_pump/message_pump_mojo.h"
17 #include "mojo/public/cpp/application/application_connection.h" 17 #include "mojo/public/cpp/application/application_connection.h"
18 #include "mojo/public/cpp/application/application_delegate.h" 18 #include "mojo/public/cpp/application/application_delegate.h"
19 #include "mojo/public/cpp/application/application_impl.h" 19 #include "mojo/public/cpp/application/application_impl.h"
20 #include "mojo/public/cpp/application/interface_factory_impl.h" 20 #include "mojo/public/cpp/application/interface_factory_impl.h"
21 #include "mojo/public/cpp/bindings/strong_binding.h" 21 #include "mojo/public/cpp/bindings/strong_binding.h"
22 #include "mojo/services/content_handler/public/interfaces/content_handler.mojom. h" 22 #include "mojo/services/content_handler/interfaces/content_handler.mojom.h"
23 23
24 namespace mojo { 24 namespace mojo {
25 25
26 namespace { 26 namespace {
27 27
28 class ApplicationThread : public base::PlatformThread::Delegate { 28 class ApplicationThread : public base::PlatformThread::Delegate {
29 public: 29 public:
30 ApplicationThread( 30 ApplicationThread(
31 scoped_refptr<base::SingleThreadTaskRunner> handler_thread, 31 scoped_refptr<base::SingleThreadTaskRunner> handler_thread,
32 const base::Callback<void(ApplicationThread*)>& termination_callback, 32 const base::Callback<void(ApplicationThread*)>& termination_callback,
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after
129 if (application) 129 if (application)
130 loop.Run(); 130 loop.Run();
131 } 131 }
132 132
133 void ContentHandlerFactory::Create(ApplicationConnection* connection, 133 void ContentHandlerFactory::Create(ApplicationConnection* connection,
134 InterfaceRequest<ContentHandler> request) { 134 InterfaceRequest<ContentHandler> request) {
135 new ContentHandlerImpl(delegate_, request.Pass()); 135 new ContentHandlerImpl(delegate_, request.Pass());
136 } 136 }
137 137
138 } // namespace mojo 138 } // namespace mojo
OLDNEW
« no previous file with comments | « mojo/application/content_handler_factory.h ('k') | mojo/services/asset_bundle/interfaces/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698