Index: chrome/renderer/origin_trials/origin_trial_key_manager.h |
diff --git a/chrome/renderer/origin_trials/origin_trial_key_manager.h b/chrome/renderer/origin_trials/origin_trial_key_manager.h |
index 18b01d841a82a93fcbd1e94f17b89d25b96b550d..2c16de2afbc208e785bc6db9c0b15e4f5d755f6d 100644 |
--- a/chrome/renderer/origin_trials/origin_trial_key_manager.h |
+++ b/chrome/renderer/origin_trials/origin_trial_key_manager.h |
@@ -5,11 +5,23 @@ |
#ifndef CHROME_RENDERER_ORIGIN_TRIALS_ORIGIN_TRIAL_KEY_MANAGER_H_ |
#define CHROME_RENDERER_ORIGIN_TRIALS_ORIGIN_TRIAL_KEY_MANAGER_H_ |
+#include <string> |
+ |
+#include "base/macros.h" |
#include "base/strings/string_piece.h" |
class OriginTrialKeyManager { |
public: |
- base::StringPiece GetPublicKey(); |
+ OriginTrialKeyManager(); |
+ ~OriginTrialKeyManager(); |
+ |
+ bool SetPublicKeyFromASCIIString(const std::string& ascii_public_key); |
+ base::StringPiece GetPublicKey() const; |
sky
2016/03/03 20:55:30
Is there a reason you don't return a const std::st
iclelland
2016/03/07 14:48:19
I was originally using uint8_t[] for key material
sky
2016/04/14 16:19:51
You still have StringPiece. Is there a reason you
iclelland
2016/04/14 19:29:07
I mistook your original request to change it to be
sky
2016/04/14 20:58:04
As you have a setter that takes a std::string I wo
iclelland
2016/04/15 03:09:46
I'm not sure I understand you here, sorry -- the s
sky
2016/04/15 16:08:46
Fair enough.
|
+ |
+ private: |
+ std::string public_key_; |
+ |
+ DISALLOW_COPY_AND_ASSIGN(OriginTrialKeyManager); |
}; |
#endif // CHROME_RENDERER_ORIGIN_TRIALS_ORIGIN_TRIAL_KEY_MANAGER_H_ |