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

Side by Side Diff: mojo/application/public/cpp/lib/content_handler_factory.cc

Issue 1435063002: Eliminate third_party/mojo/src from all targets' include paths (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: merge Created 5 years, 1 month 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/public/cpp/content_handler_factory.h" 5 #include "mojo/application/public/cpp/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/single_thread_task_runner.h" 12 #include "base/single_thread_task_runner.h"
13 #include "base/thread_task_runner_handle.h" 13 #include "base/thread_task_runner_handle.h"
14 #include "base/threading/platform_thread.h" 14 #include "base/threading/platform_thread.h"
15 #include "mojo/application/public/cpp/application_connection.h" 15 #include "mojo/application/public/cpp/application_connection.h"
16 #include "mojo/application/public/cpp/application_delegate.h" 16 #include "mojo/application/public/cpp/application_delegate.h"
17 #include "mojo/application/public/cpp/application_impl.h" 17 #include "mojo/application/public/cpp/application_impl.h"
18 #include "mojo/application/public/cpp/application_runner.h" 18 #include "mojo/application/public/cpp/application_runner.h"
19 #include "mojo/application/public/cpp/interface_factory_impl.h" 19 #include "mojo/application/public/cpp/interface_factory_impl.h"
20 #include "mojo/message_pump/message_pump_mojo.h" 20 #include "mojo/message_pump/message_pump_mojo.h"
21 #include "mojo/public/cpp/bindings/strong_binding.h" 21 #include "third_party/mojo/src/mojo/public/cpp/bindings/strong_binding.h"
22 22
23 namespace mojo { 23 namespace mojo {
24 24
25 namespace { 25 namespace {
26 26
27 class ApplicationThread : public base::PlatformThread::Delegate { 27 class ApplicationThread : public base::PlatformThread::Delegate {
28 public: 28 public:
29 ApplicationThread( 29 ApplicationThread(
30 scoped_refptr<base::SingleThreadTaskRunner> handler_thread, 30 scoped_refptr<base::SingleThreadTaskRunner> handler_thread,
31 const base::Callback<void(ApplicationThread*)>& termination_callback, 31 const base::Callback<void(ApplicationThread*)>& termination_callback,
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after
133 if (application) 133 if (application)
134 loop.Run(); 134 loop.Run();
135 } 135 }
136 136
137 void ContentHandlerFactory::Create(ApplicationConnection* connection, 137 void ContentHandlerFactory::Create(ApplicationConnection* connection,
138 InterfaceRequest<ContentHandler> request) { 138 InterfaceRequest<ContentHandler> request) {
139 new ContentHandlerImpl(delegate_, request.Pass()); 139 new ContentHandlerImpl(delegate_, request.Pass());
140 } 140 }
141 141
142 } // namespace mojo 142 } // namespace mojo
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698