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

Side by Side Diff: chromeos/dbus/session_manager_client.h

Issue 2359003004: Disable ACTION_BOOT_COMPLETED event for 3rd party apps. (Closed)
Patch Set: Change load to start. Created 4 years, 2 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 | « chromeos/dbus/mock_session_manager_client.h ('k') | chromeos/dbus/session_manager_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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 CHROMEOS_DBUS_SESSION_MANAGER_CLIENT_H_ 5 #ifndef CHROMEOS_DBUS_SESSION_MANAGER_CLIENT_H_
6 #define CHROMEOS_DBUS_SESSION_MANAGER_CLIENT_H_ 6 #define CHROMEOS_DBUS_SESSION_MANAGER_CLIENT_H_
7 7
8 #include <map> 8 #include <map>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 211 matching lines...) Expand 10 before | Expand all | Expand 10 after
222 // is successful. 222 // is successful.
223 typedef base::Callback<void(bool success, base::TimeTicks ticks)> 223 typedef base::Callback<void(bool success, base::TimeTicks ticks)>
224 GetArcStartTimeCallback; 224 GetArcStartTimeCallback;
225 225
226 // Asynchronously checks if starting the ARC instance is available. 226 // Asynchronously checks if starting the ARC instance is available.
227 // The result of the operation is reported through |callback|. 227 // The result of the operation is reported through |callback|.
228 // If the operation fails, it is reported as unavailable. 228 // If the operation fails, it is reported as unavailable.
229 virtual void CheckArcAvailability(const ArcCallback& callback) = 0; 229 virtual void CheckArcAvailability(const ArcCallback& callback) = 0;
230 230
231 // Asynchronously starts the ARC instance for the user whose cryptohome is 231 // Asynchronously starts the ARC instance for the user whose cryptohome is
232 // located by |cryptohome_id|. Upon completion, invokes |callback| with 232 // located by |cryptohome_id|. Flag |disable_boot_completed_broadcast|
233 // the result; true on success, false on failure (either session manager 233 // blocks Android ACTION_BOOT_COMPLETED broadcast for 3rd party applications.
234 // failed to start an instance or session manager can not be reached). 234 // Upon completion, invokes |callback| with the result; true on success, false
235 // on failure (either session manager failed to start an instance or session
236 // manager can not be reached).
235 virtual void StartArcInstance(const cryptohome::Identification& cryptohome_id, 237 virtual void StartArcInstance(const cryptohome::Identification& cryptohome_id,
238 bool disable_boot_completed_broadcast,
236 const ArcCallback& callback) = 0; 239 const ArcCallback& callback) = 0;
237 240
238 // Asynchronously stops the ARC instance. Upon completion, invokes 241 // Asynchronously stops the ARC instance. Upon completion, invokes
239 // |callback| with the result; true on success, false on failure (either 242 // |callback| with the result; true on success, false on failure (either
240 // session manager failed to stop an instance or session manager can not be 243 // session manager failed to stop an instance or session manager can not be
241 // reached). 244 // reached).
242 virtual void StopArcInstance(const ArcCallback& callback) = 0; 245 virtual void StopArcInstance(const ArcCallback& callback) = 0;
243 246
244 // Prioritizes the ARC instance by removing cgroups restrictions that 247 // Prioritizes the ARC instance by removing cgroups restrictions that
245 // session_manager applies to the instance by default. Upon completion, 248 // session_manager applies to the instance by default. Upon completion,
(...skipping 25 matching lines...) Expand all
271 // Create() should be used instead. 274 // Create() should be used instead.
272 SessionManagerClient(); 275 SessionManagerClient();
273 276
274 private: 277 private:
275 DISALLOW_COPY_AND_ASSIGN(SessionManagerClient); 278 DISALLOW_COPY_AND_ASSIGN(SessionManagerClient);
276 }; 279 };
277 280
278 } // namespace chromeos 281 } // namespace chromeos
279 282
280 #endif // CHROMEOS_DBUS_SESSION_MANAGER_CLIENT_H_ 283 #endif // CHROMEOS_DBUS_SESSION_MANAGER_CLIENT_H_
OLDNEW
« no previous file with comments | « chromeos/dbus/mock_session_manager_client.h ('k') | chromeos/dbus/session_manager_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698