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

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

Issue 2182643003: Remove shell::Connection* parameter to InterfaceFactory<T>::Create() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 4 years, 4 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/ui/ws/window_tree_client_unittest.cc ('k') | 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/callback_forward.h" 8 #include "base/callback_forward.h"
9 #include "base/memory/ref_counted.h" 9 #include "base/memory/ref_counted.h"
10 #include "components/filesystem/lock_table.h" 10 #include "components/filesystem/lock_table.h"
(...skipping 21 matching lines...) Expand all
32 ~UserShellClient() override; 32 ~UserShellClient() override;
33 33
34 private: 34 private:
35 // |Service| override: 35 // |Service| override:
36 void OnStart(shell::Connector* connector, 36 void OnStart(shell::Connector* connector,
37 const shell::Identity& identity, 37 const shell::Identity& identity,
38 uint32_t id) override; 38 uint32_t id) override;
39 bool OnConnect(shell::Connection* connection) override; 39 bool OnConnect(shell::Connection* connection) override;
40 40
41 // |InterfaceFactory<mojom::UserService>| implementation: 41 // |InterfaceFactory<mojom::UserService>| implementation:
42 void Create(shell::Connection* connection, 42 void Create(const shell::Identity& remote_identity,
43 mojom::UserServiceRequest request) override; 43 mojom::UserServiceRequest request) override;
44 44
45 // |InterfaceFactory<LevelDBService>| implementation: 45 // |InterfaceFactory<LevelDBService>| implementation:
46 void Create(shell::Connection* connection, 46 void Create(const shell::Identity& remote_identity,
47 leveldb::mojom::LevelDBServiceRequest request) override; 47 leveldb::mojom::LevelDBServiceRequest request) override;
48 48
49 void OnLevelDBServiceRequest(shell::Connection* connection, 49 void OnLevelDBServiceRequest(shell::Connection* connection,
50 leveldb::mojom::LevelDBServiceRequest request); 50 leveldb::mojom::LevelDBServiceRequest request);
51 void OnLevelDBServiceError(); 51 void OnLevelDBServiceError();
52 52
53 scoped_refptr<base::SingleThreadTaskRunner> user_service_runner_; 53 scoped_refptr<base::SingleThreadTaskRunner> user_service_runner_;
54 scoped_refptr<base::SingleThreadTaskRunner> leveldb_service_runner_; 54 scoped_refptr<base::SingleThreadTaskRunner> leveldb_service_runner_;
55 55
56 // We create these two objects so we can delete them on the correct task 56 // We create these two objects so we can delete them on the correct task
57 // runners. 57 // runners.
58 class UserServiceObjects; 58 class UserServiceObjects;
59 std::unique_ptr<UserServiceObjects> user_objects_; 59 std::unique_ptr<UserServiceObjects> user_objects_;
60 60
61 class LevelDBServiceObjects; 61 class LevelDBServiceObjects;
62 std::unique_ptr<LevelDBServiceObjects> leveldb_objects_; 62 std::unique_ptr<LevelDBServiceObjects> leveldb_objects_;
63 63
64 DISALLOW_COPY_AND_ASSIGN(UserShellClient); 64 DISALLOW_COPY_AND_ASSIGN(UserShellClient);
65 }; 65 };
66 66
67 } // namespace user_service 67 } // namespace user_service
68 68
69 #endif // SERVICES_USER_USER_SHELL_CLIENT_H_ 69 #endif // SERVICES_USER_USER_SHELL_CLIENT_H_
OLDNEW
« no previous file with comments | « services/ui/ws/window_tree_client_unittest.cc ('k') | services/user/user_shell_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698