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

Unified Diff: chrome/browser/chromeos/platform_keys/platform_keys.h

Issue 430563002: Enable system token in platformKeys api. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 5 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: chrome/browser/chromeos/platform_keys/platform_keys.h
diff --git a/chrome/browser/chromeos/platform_keys/platform_keys.h b/chrome/browser/chromeos/platform_keys/platform_keys.h
index 2a61275963f0b9738da02a3121fcd031479836fd..13e1bb4aea9fa5fce369e36e3fb1f8ebb10e4231 100644
--- a/chrome/browser/chromeos/platform_keys/platform_keys.h
+++ b/chrome/browser/chromeos/platform_keys/platform_keys.h
@@ -26,6 +26,9 @@ namespace chromeos {
namespace platform_keys {
+const char kTokenIdUser[] = "user";
Joao da Silva 2014/07/30 08:46:38 Change to "extern const char kTokenIdUser[];" and
Joao da Silva 2014/07/30 08:46:38 Also, what are these constants for? Document them
pneubeck (no reviews) 2014/07/30 13:53:44 Done.
pneubeck (no reviews) 2014/07/30 13:53:44 Done.
+const char kTokenIdSystem[] = "system";
+
// Supported hash algorithms.
enum HashAlgorithm {
HASH_ALGORITHM_SHA1,
@@ -115,6 +118,17 @@ void RemoveCertificate(const std::string& token_id,
const RemoveCertificateCallback& callback,
content::BrowserContext* browser_context);
+// If the list of available tokens could be successfully retrieved, |token_ids|
+// will contain the token ids. If an error, |token_ids| will be NULL and
Joao da Silva 2014/07/30 08:46:38 "If an error" occurs
pneubeck (no reviews) 2014/07/30 13:53:45 Done.
+// |error_message| will be set to an/ error message.
Joao da Silva 2014/07/30 08:46:38 remove /
pneubeck (no reviews) 2014/07/30 13:53:44 Done.
+typedef base::Callback<void(scoped_ptr<std::vector<std::string> > token_ids,
+ const std::string& error_message)>
+ GetTokensCallback;
+
+// Gets the list of available tokens.
+void GetTokens(const GetTokensCallback& callback,
Joao da Silva 2014/07/30 08:46:38 Document that this must be called on UI, and |call
pneubeck (no reviews) 2014/07/30 13:53:44 Done.
+ content::BrowserContext* browser_context);
+
} // namespace platform_keys
} // namespace chromeos

Powered by Google App Engine
This is Rietveld 408576698