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

Unified Diff: net/spdy/hpack_entry.cc

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/spdy/hpack_entry.h ('k') | net/spdy/hpack_entry_test.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/spdy/hpack_entry.cc
diff --git a/net/spdy/hpack_entry.cc b/net/spdy/hpack_entry.cc
deleted file mode 100644
index 169298e1c52d76d661f07e9b5456690642802f97..0000000000000000000000000000000000000000
--- a/net/spdy/hpack_entry.cc
+++ /dev/null
@@ -1,55 +0,0 @@
-// Copyright 2014 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.
-
-#include "net/spdy/hpack_entry.h"
-
-#include "base/logging.h"
-#include "base/strings/string_number_conversions.h"
-#include "net/spdy/hpack_string_util.h"
-
-namespace net {
-
-using base::StringPiece;
-
-const size_t HpackEntry::kSizeOverhead = 32;
-
-HpackEntry::HpackEntry(StringPiece name,
- StringPiece value,
- bool is_static,
- size_t insertion_index)
- : name_(name.data(), name.size()),
- value_(value.data(), value.size()),
- insertion_index_(insertion_index),
- type_(is_static ? STATIC : DYNAMIC) {
-}
-
-HpackEntry::HpackEntry(StringPiece name, StringPiece value)
- : name_(name.data(), name.size()),
- value_(value.data(), value.size()),
- insertion_index_(0),
- type_(LOOKUP) {
-}
-
-HpackEntry::HpackEntry()
- : insertion_index_(0),
- type_(LOOKUP) {
-}
-
-HpackEntry::~HpackEntry() {}
-
-// static
-size_t HpackEntry::Size(StringPiece name, StringPiece value) {
- return name.size() + value.size() + kSizeOverhead;
-}
-size_t HpackEntry::Size() const {
- return Size(name(), value());
-}
-
-std::string HpackEntry::GetDebugString() const {
- return "{ name: \"" + name_ +
- "\", value: \"" + value_ +
- "\", " + (IsStatic() ? "static" : "dynamic") + " }";
-}
-
-} // namespace net
« no previous file with comments | « net/spdy/hpack_entry.h ('k') | net/spdy/hpack_entry_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698