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

Unified Diff: session_manager_service.h

Issue 6591109: [login_manager] Add stub DBus API for policy get/set (Closed) Base URL: http://git.chromium.org/git/login_manager.git@master
Patch Set: Created 9 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 side-by-side diff with in-line comments
Download patch
Index: session_manager_service.h
diff --git a/session_manager_service.h b/session_manager_service.h
index 36cb6405fa9b9b5df2f541ee51e8c3af3cc9ceec..86a5615f69da60506ac7b40df4e492bd3f76f748 100644
--- a/session_manager_service.h
+++ b/session_manager_service.h
@@ -290,6 +290,21 @@ class SessionManagerService
GArray** OUT_signature,
GError** error);
+ // Store |policy_blob, signature| to disk.
+ //
+ // |signature| is a SAH1 with RSA signature over |policy_blob|,
+ // verifiable with |key_|.
+ //
+ // Returns TRUE if the signature checks out and the data is inserted,
+ // FALSE otherwise.
+ gboolean StorePolicy(gchar* policy_blob, GArray* signature, GError** error);
+
+ // Get the policy_blob and associated signature off of disk.
+ // Returns TRUE if the data is can be fetched, FALSE otherwise.
+ gboolean RetrievePolicy(gchar** OUT_policy_blob,
+ GArray** OUT_signature,
+ GError** error);
+
// Handles LockScreen request from PowerManager. It switches itself to
// lock mode, and emit LockScreen signal to Chromium Browser.
gboolean LockScreen(GError** error);
« SessionManager.conf ('K') | « session_manager.xml ('k') | session_manager_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698