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

Side by Side Diff: services/shell/standalone/context.cc

Issue 1878893002: Move //mojo/services tracing & catalog to //services (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@63move
Patch Set: . Created 4 years, 8 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 | « services/shell/standalone/DEPS ('k') | services/shell/standalone/tracer.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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 "services/shell/standalone/context.h" 5 #include "services/shell/standalone/context.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <utility> 10 #include <utility>
(...skipping 11 matching lines...) Expand all
22 #include "base/strings/string_number_conversions.h" 22 #include "base/strings/string_number_conversions.h"
23 #include "base/strings/string_split.h" 23 #include "base/strings/string_split.h"
24 #include "base/strings/string_util.h" 24 #include "base/strings/string_util.h"
25 #include "base/strings/utf_string_conversions.h" 25 #include "base/strings/utf_string_conversions.h"
26 #include "base/threading/sequenced_worker_pool.h" 26 #include "base/threading/sequenced_worker_pool.h"
27 #include "base/trace_event/trace_event.h" 27 #include "base/trace_event/trace_event.h"
28 #include "build/build_config.h" 28 #include "build/build_config.h"
29 #include "components/tracing/tracing_switches.h" 29 #include "components/tracing/tracing_switches.h"
30 #include "mojo/edk/embedder/embedder.h" 30 #include "mojo/edk/embedder/embedder.h"
31 #include "mojo/public/cpp/bindings/strong_binding.h" 31 #include "mojo/public/cpp/bindings/strong_binding.h"
32 #include "mojo/services/catalog/factory.h"
33 #include "mojo/services/catalog/store.h"
34 #include "mojo/services/tracing/public/cpp/switches.h"
35 #include "mojo/services/tracing/public/cpp/trace_provider_impl.h"
36 #include "mojo/services/tracing/public/cpp/tracing_impl.h"
37 #include "mojo/services/tracing/public/interfaces/tracing.mojom.h"
38 #include "mojo/util/filename_util.h" 32 #include "mojo/util/filename_util.h"
33 #include "services/catalog/factory.h"
34 #include "services/catalog/store.h"
39 #include "services/shell/connect_params.h" 35 #include "services/shell/connect_params.h"
40 #include "services/shell/public/cpp/names.h" 36 #include "services/shell/public/cpp/names.h"
41 #include "services/shell/runner/host/in_process_native_runner.h" 37 #include "services/shell/runner/host/in_process_native_runner.h"
42 #include "services/shell/runner/host/out_of_process_native_runner.h" 38 #include "services/shell/runner/host/out_of_process_native_runner.h"
43 #include "services/shell/standalone/tracer.h" 39 #include "services/shell/standalone/tracer.h"
44 #include "services/shell/switches.h" 40 #include "services/shell/switches.h"
41 #include "services/tracing/public/cpp/switches.h"
42 #include "services/tracing/public/cpp/trace_provider_impl.h"
43 #include "services/tracing/public/cpp/tracing_impl.h"
44 #include "services/tracing/public/interfaces/tracing.mojom.h"
45 45
46 #if defined(OS_MACOSX) 46 #if defined(OS_MACOSX)
47 #include "services/shell/runner/host/mach_broker.h" 47 #include "services/shell/runner/host/mach_broker.h"
48 #endif 48 #endif
49 49
50 namespace mojo { 50 namespace mojo {
51 namespace shell { 51 namespace shell {
52 namespace { 52 namespace {
53 53
54 // Used to ensure we only init once. 54 // Used to ensure we only init once.
(...skipping 201 matching lines...) Expand 10 before | Expand all | Expand 10 after
256 scoped_ptr<ConnectParams> params(new ConnectParams); 256 scoped_ptr<ConnectParams> params(new ConnectParams);
257 params->set_source(CreateShellIdentity()); 257 params->set_source(CreateShellIdentity());
258 params->set_target(Identity(name, mojom::kRootUserID)); 258 params->set_target(Identity(name, mojom::kRootUserID));
259 params->set_remote_interfaces(GetProxy(&remote_interfaces)); 259 params->set_remote_interfaces(GetProxy(&remote_interfaces));
260 params->set_local_interfaces(std::move(local_interfaces)); 260 params->set_local_interfaces(std::move(local_interfaces));
261 shell_->Connect(std::move(params)); 261 shell_->Connect(std::move(params));
262 } 262 }
263 263
264 } // namespace shell 264 } // namespace shell
265 } // namespace mojo 265 } // namespace mojo
OLDNEW
« no previous file with comments | « services/shell/standalone/DEPS ('k') | services/shell/standalone/tracer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698