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

Side by Side Diff: mojo/shell/application_instance.h

Issue 1719193003: Add a user id parameter to connections (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
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
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 MOJO_SHELL_APPLICATION_INSTANCE_H_ 5 #ifndef MOJO_SHELL_APPLICATION_INSTANCE_H_
6 #define MOJO_SHELL_APPLICATION_INSTANCE_H_ 6 #define MOJO_SHELL_APPLICATION_INSTANCE_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <set> 10 #include <set>
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
50 50
51 mojom::ShellClient* shell_client() { return shell_client_.get(); } 51 mojom::ShellClient* shell_client() { return shell_client_.get(); }
52 const Identity& identity() const { return identity_; } 52 const Identity& identity() const { return identity_; }
53 uint32_t id() const { return id_; } 53 uint32_t id() const { return id_; }
54 base::ProcessId pid() const { return pid_; } 54 base::ProcessId pid() const { return pid_; }
55 void set_pid(base::ProcessId pid) { pid_ = pid; } 55 void set_pid(base::ProcessId pid) { pid_ = pid; }
56 56
57 private: 57 private:
58 // Shell implementation: 58 // Shell implementation:
59 void Connect(const String& app_url, 59 void Connect(const String& app_url,
60 uint32_t user_id,
60 shell::mojom::InterfaceProviderRequest remote_interfaces, 61 shell::mojom::InterfaceProviderRequest remote_interfaces,
61 shell::mojom::InterfaceProviderPtr local_interfaces, 62 shell::mojom::InterfaceProviderPtr local_interfaces,
62 mojom::CapabilityFilterPtr filter, 63 mojom::CapabilityFilterPtr filter,
63 const ConnectCallback& callback) override; 64 const ConnectCallback& callback) override;
64 void QuitApplication() override; 65 void QuitApplication() override;
65 66
66 // PIDReceiver implementation: 67 // PIDReceiver implementation:
67 void SetPID(uint32_t pid) override; 68 void SetPID(uint32_t pid) override;
68 69
69 uint32_t GenerateUniqueID() const; 70 uint32_t GenerateUniqueID() const;
(...skipping 21 matching lines...) Expand all
91 NativeRunner* native_runner_; 92 NativeRunner* native_runner_;
92 base::ProcessId pid_; 93 base::ProcessId pid_;
93 94
94 DISALLOW_COPY_AND_ASSIGN(ApplicationInstance); 95 DISALLOW_COPY_AND_ASSIGN(ApplicationInstance);
95 }; 96 };
96 97
97 } // namespace shell 98 } // namespace shell
98 } // namespace mojo 99 } // namespace mojo
99 100
100 #endif // MOJO_SHELL_APPLICATION_INSTANCE_H_ 101 #endif // MOJO_SHELL_APPLICATION_INSTANCE_H_
OLDNEW
« no previous file with comments | « mojo/services/test_service/test_service_application.cc ('k') | mojo/shell/application_instance.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698