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

Unified Diff: net/http/http_mac_signature.h

Issue 9700056: Remove experimental support for MAC cookies (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Remove unused global Created 8 years, 9 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
« no previous file with comments | « chrome/common/chrome_switches.cc ('k') | net/http/http_mac_signature.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/http/http_mac_signature.h
diff --git a/net/http/http_mac_signature.h b/net/http/http_mac_signature.h
deleted file mode 100644
index 5835656d65cdf126fd58d7ec00fab8b895345cdb..0000000000000000000000000000000000000000
--- a/net/http/http_mac_signature.h
+++ /dev/null
@@ -1,77 +0,0 @@
-// Copyright (c) 2011 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#ifndef NET_HTTP_MAC_SIGNATURE_H_
-#define NET_HTTP_MAC_SIGNATURE_H_
-#pragma once
-
-#include <string>
-
-#include "base/basictypes.h"
-#include "base/gtest_prod_util.h"
-#include "base/time.h"
-#include "crypto/hmac.h"
-#include "net/base/net_export.h"
-
-namespace net {
-
-// This class represents an HTTP MAC signature for use in the HTTP MAC
-// Authentication scheme. The current draft specification of this
-// authentication scheme is located at the following URL:
-//
-// http://tools.ietf.org/html/draft-hammer-oauth-v2-mac-token
-//
-class NET_EXPORT_PRIVATE HttpMacSignature {
- public:
- HttpMacSignature();
- ~HttpMacSignature();
-
- // 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);
-
- // Returns whether this information is valid.
- bool AddHttpInfo(const std::string& method,
- const std::string& request_uri,
- const std::string& host,
- int port);
-
- // Generates the Authorization header for use in an HTTP request. If
- // successfully generated, returns true and stores the resultant header in
- // |*header|.
- bool GenerateAuthorizationHeader(std::string* header);
-
- private:
- FRIEND_TEST_ALL_PREFIXES(HttpMacSignatureTest, GenerateHeaderString);
- FRIEND_TEST_ALL_PREFIXES(HttpMacSignatureTest, GenerateNormalizedRequest);
- FRIEND_TEST_ALL_PREFIXES(HttpMacSignatureTest, GenerateMAC);
-
- bool GenerateHeaderString(const std::string& age,
- const std::string& nonce,
- std::string* header);
- std::string GenerateNormalizedRequest(const std::string& age,
- const std::string& nonce);
- bool GenerateMAC(const std::string& age,
- const std::string& nonce,
- std::string* mac);
-
- std::string id_;
- base::Time creation_date_;
- std::string mac_key_;
- crypto::HMAC::HashAlgorithm mac_algorithm_;
-
- std::string method_;
- std::string request_uri_;
- std::string host_;
- std::string port_;
- // TODO(abarth): body_hash_
-
- DISALLOW_COPY_AND_ASSIGN(HttpMacSignature);
-};
-
-} // namespace net
-
-#endif // NET_HTTP_MAC_SIGNATURE_H_
« no previous file with comments | « chrome/common/chrome_switches.cc ('k') | net/http/http_mac_signature.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698