| OLD | NEW |
| 1 // Copyright (c) 2009-2010 The Chromium OS Authors. All rights reserved. | 1 // Copyright (c) 2009-2010 The Chromium OS 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 LOGIN_MANAGER_SESSION_MANAGER_SERVICE_H_ | 5 #ifndef LOGIN_MANAGER_SESSION_MANAGER_SERVICE_H_ |
| 6 #define LOGIN_MANAGER_SESSION_MANAGER_SERVICE_H_ | 6 #define LOGIN_MANAGER_SESSION_MANAGER_SERVICE_H_ |
| 7 | 7 |
| 8 #include <dbus/dbus.h> | 8 #include <dbus/dbus.h> |
| 9 #include <errno.h> | 9 #include <errno.h> |
| 10 #include <glib.h> | 10 #include <glib.h> |
| (...skipping 272 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 283 GArray* signature, | 283 GArray* signature, |
| 284 GError** error); | 284 GError** error); |
| 285 | 285 |
| 286 // Get the value and signature associated with |name| out of |store|. | 286 // Get the value and signature associated with |name| out of |store|. |
| 287 // Returns TRUE if the data is can be fetched, FALSE otherwise. | 287 // Returns TRUE if the data is can be fetched, FALSE otherwise. |
| 288 gboolean RetrieveProperty(gchar* name, | 288 gboolean RetrieveProperty(gchar* name, |
| 289 gchar** OUT_value, | 289 gchar** OUT_value, |
| 290 GArray** OUT_signature, | 290 GArray** OUT_signature, |
| 291 GError** error); | 291 GError** error); |
| 292 | 292 |
| 293 // Store |policy_blob, signature| to disk. |
| 294 // |
| 295 // |signature| is a SAH1 with RSA signature over |policy_blob|, |
| 296 // verifiable with |key_|. |
| 297 // |
| 298 // Returns TRUE if the signature checks out and the data is inserted, |
| 299 // FALSE otherwise. |
| 300 gboolean StorePolicy(gchar* policy_blob, GArray* signature, GError** error); |
| 301 |
| 302 // Get the policy_blob and associated signature off of disk. |
| 303 // Returns TRUE if the data is can be fetched, FALSE otherwise. |
| 304 gboolean RetrievePolicy(gchar** OUT_policy_blob, |
| 305 GArray** OUT_signature, |
| 306 GError** error); |
| 307 |
| 293 // Handles LockScreen request from PowerManager. It switches itself to | 308 // Handles LockScreen request from PowerManager. It switches itself to |
| 294 // lock mode, and emit LockScreen signal to Chromium Browser. | 309 // lock mode, and emit LockScreen signal to Chromium Browser. |
| 295 gboolean LockScreen(GError** error); | 310 gboolean LockScreen(GError** error); |
| 296 | 311 |
| 297 // Handles UnlockScreen request from PowerManager. It switches itself to | 312 // Handles UnlockScreen request from PowerManager. It switches itself to |
| 298 // unlock mode, and emit UnlockScreen signal to Chromium Browser. | 313 // unlock mode, and emit UnlockScreen signal to Chromium Browser. |
| 299 gboolean UnlockScreen(GError** error); | 314 gboolean UnlockScreen(GError** error); |
| 300 | 315 |
| 301 // Restarts job with specified pid replacing its command line arguments | 316 // Restarts job with specified pid replacing its command line arguments |
| 302 // with provided. | 317 // with provided. |
| (...skipping 209 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 512 | 527 |
| 513 bool shutting_down_; | 528 bool shutting_down_; |
| 514 bool shutdown_already_; | 529 bool shutdown_already_; |
| 515 | 530 |
| 516 friend class TestAPI; | 531 friend class TestAPI; |
| 517 DISALLOW_COPY_AND_ASSIGN(SessionManagerService); | 532 DISALLOW_COPY_AND_ASSIGN(SessionManagerService); |
| 518 }; | 533 }; |
| 519 } // namespace login_manager | 534 } // namespace login_manager |
| 520 | 535 |
| 521 #endif // LOGIN_MANAGER_SESSION_MANAGER_SERVICE_H_ | 536 #endif // LOGIN_MANAGER_SESSION_MANAGER_SERVICE_H_ |
| OLD | NEW |