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

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

Issue 1674903003: Extract shell methods from ApplicationImpl into a base class, and pass this to Initialize() instead. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@mojom
Patch Set: . Created 4 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
« no previous file with comments | « mojo/shell/public/cpp/lib/application_test_base.cc ('k') | mojo/shell/public/cpp/shell.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 <set> 5 #include <set>
6 #include <utility> 6 #include <utility>
7 7
8 #include "base/bind.h" 8 #include "base/bind.h"
9 #include "base/callback.h" 9 #include "base/callback.h"
10 #include "base/macros.h" 10 #include "base/macros.h"
11 #include "base/memory/weak_ptr.h" 11 #include "base/memory/weak_ptr.h"
12 #include "base/message_loop/message_loop.h"
12 #include "base/single_thread_task_runner.h" 13 #include "base/single_thread_task_runner.h"
13 #include "base/thread_task_runner_handle.h" 14 #include "base/thread_task_runner_handle.h"
14 #include "base/threading/platform_thread.h" 15 #include "base/threading/platform_thread.h"
15 #include "mojo/message_pump/message_pump_mojo.h" 16 #include "mojo/message_pump/message_pump_mojo.h"
16 #include "mojo/public/cpp/bindings/strong_binding.h" 17 #include "mojo/public/cpp/bindings/strong_binding.h"
17 #include "mojo/shell/public/cpp/application_connection.h" 18 #include "mojo/shell/public/cpp/application_connection.h"
18 #include "mojo/shell/public/cpp/application_delegate.h"
19 #include "mojo/shell/public/cpp/application_impl.h"
20 #include "mojo/shell/public/cpp/application_runner.h"
21 #include "mojo/shell/public/cpp/content_handler_factory.h" 19 #include "mojo/shell/public/cpp/content_handler_factory.h"
22 #include "mojo/shell/public/cpp/interface_factory_impl.h" 20 #include "mojo/shell/public/cpp/interface_factory_impl.h"
23 21
24 namespace mojo { 22 namespace mojo {
25 23
26 namespace { 24 namespace {
27 25
28 class ApplicationThread : public base::PlatformThread::Delegate { 26 class ApplicationThread : public base::PlatformThread::Delegate {
29 public: 27 public:
30 ApplicationThread( 28 ApplicationThread(
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after
135 loop.Run(); 133 loop.Run();
136 } 134 }
137 135
138 void ContentHandlerFactory::Create( 136 void ContentHandlerFactory::Create(
139 ApplicationConnection* connection, 137 ApplicationConnection* connection,
140 InterfaceRequest<shell::mojom::ContentHandler> request) { 138 InterfaceRequest<shell::mojom::ContentHandler> request) {
141 new ContentHandlerImpl(delegate_, std::move(request)); 139 new ContentHandlerImpl(delegate_, std::move(request));
142 } 140 }
143 141
144 } // namespace mojo 142 } // namespace mojo
OLDNEW
« no previous file with comments | « mojo/shell/public/cpp/lib/application_test_base.cc ('k') | mojo/shell/public/cpp/shell.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698