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

Unified Diff: net/disk_cache/simple/simple_net_log_parameters.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/disk_cache/simple/simple_net_log_parameters.h ('k') | net/disk_cache/simple/simple_synchronous_entry.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/disk_cache/simple/simple_net_log_parameters.cc
diff --git a/net/disk_cache/simple/simple_net_log_parameters.cc b/net/disk_cache/simple/simple_net_log_parameters.cc
deleted file mode 100644
index 4756c83b9fd136c5a9b16f24dde4757b3b65e0a8..0000000000000000000000000000000000000000
--- a/net/disk_cache/simple/simple_net_log_parameters.cc
+++ /dev/null
@@ -1,55 +0,0 @@
-// Copyright 2013 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/disk_cache/simple/simple_net_log_parameters.h"
-
-#include "base/bind.h"
-#include "base/compiler_specific.h"
-#include "base/format_macros.h"
-#include "base/logging.h"
-#include "base/strings/stringprintf.h"
-#include "base/values.h"
-#include "net/base/net_errors.h"
-#include "net/disk_cache/simple/simple_entry_impl.h"
-
-namespace {
-
-base::Value* NetLogSimpleEntryConstructionCallback(
- const disk_cache::SimpleEntryImpl* entry,
- net::NetLog::LogLevel log_level) {
- base::DictionaryValue* dict = new base::DictionaryValue();
- dict->SetString("entry_hash",
- base::StringPrintf("%#016" PRIx64, entry->entry_hash()));
- return dict;
-}
-
-base::Value* NetLogSimpleEntryCreationCallback(
- const disk_cache::SimpleEntryImpl* entry,
- int net_error,
- net::NetLog::LogLevel /* log_level */) {
- base::DictionaryValue* dict = new base::DictionaryValue();
- dict->SetInteger("net_error", net_error);
- if (net_error == net::OK)
- dict->SetString("key", entry->key());
- return dict;
-}
-
-} // namespace
-
-namespace disk_cache {
-
-net::NetLog::ParametersCallback CreateNetLogSimpleEntryConstructionCallback(
- const SimpleEntryImpl* entry) {
- DCHECK(entry);
- return base::Bind(&NetLogSimpleEntryConstructionCallback, entry);
-}
-
-net::NetLog::ParametersCallback CreateNetLogSimpleEntryCreationCallback(
- const SimpleEntryImpl* entry,
- int net_error) {
- DCHECK(entry);
- return base::Bind(&NetLogSimpleEntryCreationCallback, entry, net_error);
-}
-
-} // namespace disk_cache
« no previous file with comments | « net/disk_cache/simple/simple_net_log_parameters.h ('k') | net/disk_cache/simple/simple_synchronous_entry.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698