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

Side by Side Diff: net/http/http_mac_signature.h

Issue 6901121: MAC Cookies (patch 2 of N) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: MAC Cookies (patch 2 of N) 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | net/http/http_mac_signature.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef NET_HTTP_MAC_SIGNATURE_H_ 5 #ifndef NET_HTTP_MAC_SIGNATURE_H_
6 #define NET_HTTP_MAC_SIGNATURE_H_ 6 #define NET_HTTP_MAC_SIGNATURE_H_
7 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 10
11 #include "base/basictypes.h" 11 #include "base/basictypes.h"
12 #include "base/gtest_prod_util.h" 12 #include "base/gtest_prod_util.h"
13 #include "crypto/hmac.h" 13 #include "crypto/hmac.h"
14 14
15 namespace net { 15 namespace net {
16 16
17 class HttpMacSignature { 17 class HttpMacSignature {
wtc 2011/05/06 00:24:32 Please document this class and the GenerateAuthori
18 public: 18 public:
19 HttpMacSignature(); 19 HttpMacSignature();
20 ~HttpMacSignature(); 20 ~HttpMacSignature();
21 21
22 // Returns whether this information is valid. 22 // Returns whether this information is valid.
23 bool AddStateInfo(const std::string& id, 23 bool AddStateInfo(const std::string& id,
24 const std::string& mac_key, 24 const std::string& mac_key,
25 const std::string& mac_algorithm, 25 const std::string& mac_algorithm,
26 const std::string& issuer); 26 const std::string& issuer);
27 27
(...skipping 27 matching lines...) Expand all
55 std::string host_; 55 std::string host_;
56 std::string port_; 56 std::string port_;
57 // TODO(abarth): body_hash_ 57 // TODO(abarth): body_hash_
58 58
59 DISALLOW_COPY_AND_ASSIGN(HttpMacSignature); 59 DISALLOW_COPY_AND_ASSIGN(HttpMacSignature);
60 }; 60 };
61 61
62 } // namespace net 62 } // namespace net
63 63
64 #endif // NET_HTTP_MAC_SIGNATURE_H_ 64 #endif // NET_HTTP_MAC_SIGNATURE_H_
OLDNEW
« no previous file with comments | « no previous file | net/http/http_mac_signature.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698