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

Unified Diff: net/http/http_mac_signature.h

Issue 6969075: MAC Cookies (patch 5 of N) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 years, 7 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: net/http/http_mac_signature.h
===================================================================
--- net/http/http_mac_signature.h (revision 85309)
+++ net/http/http_mac_signature.h (working copy)
@@ -10,6 +10,7 @@
#include "base/basictypes.h"
#include "base/gtest_prod_util.h"
+#include "base/time.h"
#include "crypto/hmac.h"
namespace net {
@@ -27,6 +28,7 @@
// Returns whether this information is valid.
bool AddStateInfo(const std::string& id,
+ const base::Time& creation_date,
const std::string& mac_key,
const std::string& mac_algorithm);
@@ -44,14 +46,15 @@
FRIEND_TEST_ALL_PREFIXES(HttpMacSignatureTest, GenerateNormalizedRequest);
FRIEND_TEST_ALL_PREFIXES(HttpMacSignatureTest, GenerateMAC);
- std::string GenerateHeaderString(const std::string& timestamp,
+ std::string GenerateHeaderString(const std::string& age,
const std::string& nonce);
- std::string GenerateNormalizedRequest(const std::string& timestamp,
+ std::string GenerateNormalizedRequest(const std::string& age,
const std::string& nonce);
- std::string GenerateMAC(const std::string& timestamp,
+ std::string GenerateMAC(const std::string& age,
const std::string& nonce);
std::string id_;
+ base::Time creation_date_;
std::string mac_key_;
crypto::HMAC::HashAlgorithm mac_algorithm_;

Powered by Google App Engine
This is Rietveld 408576698