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

Unified Diff: net/socket/socket_net_log_params.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/socket/socket_net_log_params.h ('k') | net/socket/socket_test_util.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/socket/socket_net_log_params.cc
diff --git a/net/socket/socket_net_log_params.cc b/net/socket/socket_net_log_params.cc
deleted file mode 100644
index bcc12c86bcf6c7d0bae0d8add72405ea368756a9..0000000000000000000000000000000000000000
--- a/net/socket/socket_net_log_params.cc
+++ /dev/null
@@ -1,72 +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/socket/socket_net_log_params.h"
-
-#include "base/bind.h"
-#include "base/values.h"
-#include "net/base/host_port_pair.h"
-#include "net/base/ip_endpoint.h"
-#include "net/base/net_util.h"
-
-namespace net {
-
-namespace {
-
-base::Value* NetLogSocketErrorCallback(int net_error,
- int os_error,
- NetLog::LogLevel /* log_level */) {
- base::DictionaryValue* dict = new base::DictionaryValue();
- dict->SetInteger("net_error", net_error);
- dict->SetInteger("os_error", os_error);
- return dict;
-}
-
-base::Value* NetLogHostPortPairCallback(const HostPortPair* host_and_port,
- NetLog::LogLevel /* log_level */) {
- base::DictionaryValue* dict = new base::DictionaryValue();
- dict->SetString("host_and_port", host_and_port->ToString());
- return dict;
-}
-
-base::Value* NetLogIPEndPointCallback(const IPEndPoint* address,
- NetLog::LogLevel /* log_level */) {
- base::DictionaryValue* dict = new base::DictionaryValue();
- dict->SetString("address", address->ToString());
- return dict;
-}
-
-base::Value* NetLogSourceAddressCallback(const struct sockaddr* net_address,
- socklen_t address_len,
- NetLog::LogLevel /* log_level */) {
- base::DictionaryValue* dict = new base::DictionaryValue();
- dict->SetString("source_address",
- NetAddressToStringWithPort(net_address, address_len));
- return dict;
-}
-
-} // namespace
-
-NetLog::ParametersCallback CreateNetLogSocketErrorCallback(int net_error,
- int os_error) {
- return base::Bind(&NetLogSocketErrorCallback, net_error, os_error);
-}
-
-NetLog::ParametersCallback CreateNetLogHostPortPairCallback(
- const HostPortPair* host_and_port) {
- return base::Bind(&NetLogHostPortPairCallback, host_and_port);
-}
-
-NetLog::ParametersCallback CreateNetLogIPEndPointCallback(
- const IPEndPoint* address) {
- return base::Bind(&NetLogIPEndPointCallback, address);
-}
-
-NetLog::ParametersCallback CreateNetLogSourceAddressCallback(
- const struct sockaddr* net_address,
- socklen_t address_len) {
- return base::Bind(&NetLogSourceAddressCallback, net_address, address_len);
-}
-
-} // namespace net
« no previous file with comments | « net/socket/socket_net_log_params.h ('k') | net/socket/socket_test_util.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698