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

Side by Side Diff: mash/example/views_examples/views_examples.cc

Issue 2844063003: Migrate RenderFrameImpl to use BinderRegistry. (Closed)
Patch Set: . Created 3 years, 7 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 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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 <memory> 5 #include <memory>
6 #include <vector> 6 #include <vector>
7 7
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "base/memory/ptr_util.h" 9 #include "base/memory/ptr_util.h"
10 #include "mash/public/interfaces/launchable.mojom.h" 10 #include "mash/public/interfaces/launchable.mojom.h"
11 #include "mojo/public/cpp/bindings/binding_set.h" 11 #include "mojo/public/cpp/bindings/binding_set.h"
12 #include "services/service_manager/public/c/main.h" 12 #include "services/service_manager/public/c/main.h"
13 #include "services/service_manager/public/cpp/binder_registry.h" 13 #include "services/service_manager/public/cpp/binder_registry.h"
14 #include "services/service_manager/public/cpp/connector.h" 14 #include "services/service_manager/public/cpp/connector.h"
15 #include "services/service_manager/public/cpp/interface_factory.h" 15 #include "services/service_manager/public/cpp/interface_factory.h"
16 #include "services/service_manager/public/cpp/interface_registry.h"
17 #include "services/service_manager/public/cpp/service.h" 16 #include "services/service_manager/public/cpp/service.h"
18 #include "services/service_manager/public/cpp/service_context.h" 17 #include "services/service_manager/public/cpp/service_context.h"
19 #include "services/service_manager/public/cpp/service_runner.h" 18 #include "services/service_manager/public/cpp/service_runner.h"
20 #include "services/tracing/public/cpp/provider.h" 19 #include "services/tracing/public/cpp/provider.h"
21 #include "ui/views/examples/example_base.h" 20 #include "ui/views/examples/example_base.h"
22 #include "ui/views/examples/examples_window.h" 21 #include "ui/views/examples/examples_window.h"
23 #include "ui/views/mus/aura_init.h" 22 #include "ui/views/mus/aura_init.h"
24 23
25 class ViewsExamples 24 class ViewsExamples
26 : public service_manager::Service, 25 : public service_manager::Service,
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
66 tracing::Provider tracing_; 65 tracing::Provider tracing_;
67 std::unique_ptr<views::AuraInit> aura_init_; 66 std::unique_ptr<views::AuraInit> aura_init_;
68 67
69 DISALLOW_COPY_AND_ASSIGN(ViewsExamples); 68 DISALLOW_COPY_AND_ASSIGN(ViewsExamples);
70 }; 69 };
71 70
72 MojoResult ServiceMain(MojoHandle service_request_handle) { 71 MojoResult ServiceMain(MojoHandle service_request_handle) {
73 return service_manager::ServiceRunner(new ViewsExamples) 72 return service_manager::ServiceRunner(new ViewsExamples)
74 .Run(service_request_handle); 73 .Run(service_request_handle);
75 } 74 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698