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

Unified Diff: net/spdy/spdy_header_block.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/spdy_header_block.h ('k') | net/spdy/spdy_header_block_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/spdy/spdy_header_block.cc
diff --git a/net/spdy/spdy_header_block.cc b/net/spdy/spdy_header_block.cc
deleted file mode 100644
index bbe9c71673769ebcbd77270ef4c4b11332d946dc..0000000000000000000000000000000000000000
--- a/net/spdy/spdy_header_block.cc
+++ /dev/null
@@ -1,52 +0,0 @@
-// Copyright (c) 2012 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/spdy_header_block.h"
-
-#include "base/values.h"
-#include "net/http/http_log_util.h"
-
-namespace net {
-
-base::Value* SpdyHeaderBlockNetLogCallback(
- const SpdyHeaderBlock* headers,
- NetLog::LogLevel log_level) {
- base::DictionaryValue* dict = new base::DictionaryValue();
- base::DictionaryValue* headers_dict = new base::DictionaryValue();
- for (SpdyHeaderBlock::const_iterator it = headers->begin();
- it != headers->end(); ++it) {
- headers_dict->SetWithoutPathExpansion(
- it->first,
- new base::StringValue(
- ElideHeaderValueForNetLog(log_level, it->first, it->second)));
- }
- dict->Set("headers", headers_dict);
- return dict;
-}
-
-bool SpdyHeaderBlockFromNetLogParam(
- const base::Value* event_param,
- SpdyHeaderBlock* headers) {
- headers->clear();
-
- const base::DictionaryValue* dict = NULL;
- const base::DictionaryValue* header_dict = NULL;
-
- if (!event_param ||
- !event_param->GetAsDictionary(&dict) ||
- !dict->GetDictionary("headers", &header_dict)) {
- return false;
- }
-
- for (base::DictionaryValue::Iterator it(*header_dict); !it.IsAtEnd();
- it.Advance()) {
- if (!it.value().GetAsString(&(*headers)[it.key()])) {
- headers->clear();
- return false;
- }
- }
- return true;
-}
-
-} // namespace net
« no previous file with comments | « net/spdy/spdy_header_block.h ('k') | net/spdy/spdy_header_block_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698