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 |