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

Side by Side Diff: services/user/user_shell_client.h

Issue 1963753002: Disable tracing in user service (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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
« no previous file with comments | « no previous file | services/user/user_shell_client.cc » ('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 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 #ifndef SERVICES_USER_USER_SHELL_CLIENT_H_ 5 #ifndef SERVICES_USER_USER_SHELL_CLIENT_H_
6 #define SERVICES_USER_USER_SHELL_CLIENT_H_ 6 #define SERVICES_USER_USER_SHELL_CLIENT_H_
7 7
8 #include "base/memory/ref_counted.h" 8 #include "base/memory/ref_counted.h"
9 #include "components/filesystem/lock_table.h" 9 #include "components/filesystem/lock_table.h"
10 #include "components/leveldb/public/interfaces/leveldb.mojom.h" 10 #include "components/leveldb/public/interfaces/leveldb.mojom.h"
11 #include "mojo/public/cpp/bindings/binding_set.h" 11 #include "mojo/public/cpp/bindings/binding_set.h"
12 #include "services/shell/public/cpp/interface_factory.h" 12 #include "services/shell/public/cpp/interface_factory.h"
13 #include "services/shell/public/cpp/shell_client.h" 13 #include "services/shell/public/cpp/shell_client.h"
14 #include "services/tracing/public/cpp/tracing_impl.h"
15 #include "services/user/public/interfaces/user_service.mojom.h" 14 #include "services/user/public/interfaces/user_service.mojom.h"
16 15
17 namespace user_service { 16 namespace user_service {
18 17
19 std::unique_ptr<shell::ShellClient> CreateUserShellClient( 18 std::unique_ptr<shell::ShellClient> CreateUserShellClient(
20 scoped_refptr<base::SingleThreadTaskRunner> user_service_runner, 19 scoped_refptr<base::SingleThreadTaskRunner> user_service_runner,
21 scoped_refptr<base::SingleThreadTaskRunner> leveldb_service_runner, 20 scoped_refptr<base::SingleThreadTaskRunner> leveldb_service_runner,
22 const base::Closure& quit_closure); 21 const base::Closure& quit_closure);
23 22
24 class UserShellClient 23 class UserShellClient
(...skipping 21 matching lines...) Expand all
46 void Create(shell::Connection* connection, 45 void Create(shell::Connection* connection,
47 leveldb::LevelDBServiceRequest request) override; 46 leveldb::LevelDBServiceRequest request) override;
48 47
49 void OnLevelDBServiceRequest(shell::Connection* connection, 48 void OnLevelDBServiceRequest(shell::Connection* connection,
50 leveldb::LevelDBServiceRequest request); 49 leveldb::LevelDBServiceRequest request);
51 void OnLevelDBServiceError(); 50 void OnLevelDBServiceError();
52 51
53 scoped_refptr<base::SingleThreadTaskRunner> user_service_runner_; 52 scoped_refptr<base::SingleThreadTaskRunner> user_service_runner_;
54 scoped_refptr<base::SingleThreadTaskRunner> leveldb_service_runner_; 53 scoped_refptr<base::SingleThreadTaskRunner> leveldb_service_runner_;
55 54
56 mojo::TracingImpl tracing_;
57
58 // We create these two objects so we can delete them on the correct task 55 // We create these two objects so we can delete them on the correct task
59 // runners. 56 // runners.
60 class UserServiceObjects; 57 class UserServiceObjects;
61 std::unique_ptr<UserServiceObjects> user_objects_; 58 std::unique_ptr<UserServiceObjects> user_objects_;
62 59
63 class LevelDBServiceObjects; 60 class LevelDBServiceObjects;
64 std::unique_ptr<LevelDBServiceObjects> leveldb_objects_; 61 std::unique_ptr<LevelDBServiceObjects> leveldb_objects_;
65 62
66 DISALLOW_COPY_AND_ASSIGN(UserShellClient); 63 DISALLOW_COPY_AND_ASSIGN(UserShellClient);
67 }; 64 };
68 65
69 } // namespace user_service 66 } // namespace user_service
70 67
71 #endif // SERVICES_USER_USER_SHELL_CLIENT_H_ 68 #endif // SERVICES_USER_USER_SHELL_CLIENT_H_
OLDNEW
« no previous file with comments | « no previous file | services/user/user_shell_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698