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

Unified Diff: net/http/http_version.h

Issue 992733002: Remove //net (except for Android test stuff) and sdch (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 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 | « net/http/http_vary_data_unittest.cc ('k') | net/http/md4.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/http/http_version.h
diff --git a/net/http/http_version.h b/net/http/http_version.h
deleted file mode 100644
index 127e7115bf9966614963d3403b4e570a884a79c4..0000000000000000000000000000000000000000
--- a/net/http/http_version.h
+++ /dev/null
@@ -1,58 +0,0 @@
-// Copyright (c) 2006-2008 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_HTTP_VERSION_H_
-#define NET_HTTP_HTTP_VERSION_H_
-
-#include "base/basictypes.h"
-
-namespace net {
-
-// Wrapper for an HTTP (major,minor) version pair.
-class HttpVersion {
- public:
- // Default constructor (major=0, minor=0).
- HttpVersion() : value_(0) { }
-
- // Build from unsigned major/minor pair.
- HttpVersion(uint16 major, uint16 minor) : value_(major << 16 | minor) { }
-
- // Major version number.
- uint16 major_value() const {
- return value_ >> 16;
- }
-
- // Minor version number.
- uint16 minor_value() const {
- return value_ & 0xffff;
- }
-
- // Overloaded operators:
-
- bool operator==(const HttpVersion& v) const {
- return value_ == v.value_;
- }
- bool operator!=(const HttpVersion& v) const {
- return value_ != v.value_;
- }
- bool operator>(const HttpVersion& v) const {
- return value_ > v.value_;
- }
- bool operator>=(const HttpVersion& v) const {
- return value_ >= v.value_;
- }
- bool operator<(const HttpVersion& v) const {
- return value_ < v.value_;
- }
- bool operator<=(const HttpVersion& v) const {
- return value_ <= v.value_;
- }
-
- private:
- uint32 value_; // Packed as <major>:<minor>
-};
-
-} // namespace net
-
-#endif // NET_HTTP_HTTP_VERSION_H_
« no previous file with comments | « net/http/http_vary_data_unittest.cc ('k') | net/http/md4.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698