Skip to content

Commit

Permalink
FBTF: Remove unnecessary STL #includes from src/net.
Browse files Browse the repository at this point in the history
This removes obviously unneeded inclusions of <map>, <set>, <string>, <vector>,
etc. from src/net.

BUG=none
TEST=builds

Review URL: http://codereview.chromium.org/3132022

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@56654 0039d316-1c4b-4281-b951-d872f2087c98
  • Loading branch information
viettrungluu@chromium.org committed Aug 19, 2010
1 parent 1d79ff2 commit 2f7faae
Show file tree
Hide file tree
Showing 29 changed files with 16 additions and 59 deletions.
4 changes: 1 addition & 3 deletions net/base/directory_lister.h
Original file line number Diff line number Diff line change
@@ -1,13 +1,11 @@
// Copyright (c) 2009 The Chromium Authors. All rights reserved.
// Copyright (c) 2010 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_BASE_DIRECTORY_LISTER_H_
#define NET_BASE_DIRECTORY_LISTER_H_
#pragma once

#include <string>

#include "base/cancellation_flag.h"
#include "base/file_path.h"
#include "base/file_util.h"
Expand Down
1 change: 0 additions & 1 deletion net/base/host_resolver_impl.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
#define NET_BASE_HOST_RESOLVER_IMPL_H_
#pragma once

#include <string>
#include <vector>

#include "base/non_thread_safe.h"
Expand Down
1 change: 0 additions & 1 deletion net/base/mapped_host_resolver.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
#pragma once

#include <string>
#include <vector>

#include "base/ref_counted.h"
#include "net/base/host_mapping_rules.h"
Expand Down
4 changes: 2 additions & 2 deletions net/base/net_log_unittest.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright (c) 2009 The Chromium Authors. All rights reserved.
// Copyright (c) 2010 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.

Expand All @@ -7,7 +7,7 @@
#pragma once

#include <cstddef>
#include <vector>

#include "net/base/capturing_net_log.h"
#include "testing/gtest/include/gtest/gtest.h"

Expand Down
2 changes: 0 additions & 2 deletions net/base/ssl_config_service_win.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@
#define NET_BASE_SSL_CONFIG_SERVICE_WIN_H_
#pragma once

#include <set>

#include "base/time.h"
#include "net/base/ssl_config_service.h"

Expand Down
4 changes: 1 addition & 3 deletions net/base/ssl_info.h
Original file line number Diff line number Diff line change
@@ -1,13 +1,11 @@
// Copyright (c) 2006-2008 The Chromium Authors. All rights reserved.
// Copyright (c) 2010 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_BASE_SSL_INFO_H_
#define NET_BASE_SSL_INFO_H_
#pragma once

#include <string>

#include "net/base/cert_status_flags.h"
#include "net/base/x509_certificate.h"

Expand Down
3 changes: 1 addition & 2 deletions net/base/x509_cert_types.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright (c) 2007-2010 The Chromium Authors. All rights reserved.
// Copyright (c) 2010 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.

Expand All @@ -10,7 +10,6 @@

#include <functional>
#include <iosfwd>
#include <map>
#include <set>
#include <string>
#include <vector>
Expand Down
4 changes: 1 addition & 3 deletions net/disk_cache/cache_util.h
Original file line number Diff line number Diff line change
@@ -1,13 +1,11 @@
// Copyright (c) 2006-2008 The Chromium Authors. All rights reserved.
// Copyright (c) 2010 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_DISK_CACHE_CACHE_UTIL_H_
#define NET_DISK_CACHE_CACHE_UTIL_H_
#pragma once

#include <string>

#include "base/basictypes.h"

class FilePath;
Expand Down
4 changes: 1 addition & 3 deletions net/disk_cache/file.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright (c) 2006-2008 The Chromium Authors. All rights reserved.
// Copyright (c) 2010 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.

Expand All @@ -8,8 +8,6 @@
#define NET_DISK_CACHE_FILE_H_
#pragma once

#include <string>

#include "base/platform_file.h"
#include "base/ref_counted.h"

Expand Down
4 changes: 1 addition & 3 deletions net/disk_cache/mapped_file.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright (c) 2006-2008 The Chromium Authors. All rights reserved.
// Copyright (c) 2010 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.

Expand All @@ -8,8 +8,6 @@
#define NET_DISK_CACHE_MAPPED_FILE_H_
#pragma once

#include <string>

#include "net/disk_cache/disk_format.h"
#include "net/disk_cache/file.h"
#include "net/disk_cache/file_block.h"
Expand Down
3 changes: 0 additions & 3 deletions net/disk_cache/trace.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,6 @@
#define NET_DISK_CACHE_TRACE_H__
#pragma once

#include <string>
#include <vector>

#include "base/basictypes.h"
#include "base/ref_counted.h"

Expand Down
2 changes: 0 additions & 2 deletions net/ftp/ftp_network_transaction.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,8 @@
#define NET_FTP_FTP_NETWORK_TRANSACTION_H_
#pragma once

#include <queue>
#include <string>
#include <utility>
#include <vector>

#include "base/ref_counted.h"
#include "base/scoped_ptr.h"
Expand Down
1 change: 0 additions & 1 deletion net/http/http_auth_filter.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
#pragma once

#include <list>
#include <set>
#include <string>

#include "net/http/http_auth.h"
Expand Down
2 changes: 0 additions & 2 deletions net/http/http_auth_filter_win.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@
#define NET_HTTP_HTTP_AUTH_FILTER_WIN_H_
#pragma once

#include <string>

#include "build/build_config.h"

#if defined(OS_WIN)
Expand Down
1 change: 0 additions & 1 deletion net/http/http_net_log_params.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
#pragma once

#include <string>
#include <vector>

#include "base/basictypes.h"
#include "base/ref_counted.h"
Expand Down
1 change: 0 additions & 1 deletion net/http/mock_gssapi_library_posix.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
#pragma once

#include <list>
#include <set>
#include <string>

#include "base/gtest_prod_util.h"
Expand Down
4 changes: 1 addition & 3 deletions net/http/partial_data.h
Original file line number Diff line number Diff line change
@@ -1,13 +1,11 @@
// Copyright (c) 2009-2010 The Chromium Authors. All rights reserved.
// Copyright (c) 2010 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_PARTIAL_DATA_H_
#define NET_HTTP_PARTIAL_DATA_H_
#pragma once

#include <string>

#include "base/basictypes.h"
#include "net/base/completion_callback.h"
#include "net/http/http_byte_range.h"
Expand Down
4 changes: 2 additions & 2 deletions net/proxy/init_proxy_resolver.h
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
// Copyright (c) 2009 The Chromium Authors. All rights reserved.
// Copyright (c) 2010 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_PROXY_INIT_PROXY_RESOLVER_H_
#define NET_PROXY_INIT_PROXY_RESOLVER_H_
#pragma once

#include <string>
#include <vector>

#include "base/string16.h"
#include "googleurl/src/gurl.h"
#include "net/base/completion_callback.h"
#include "net/base/net_log.h"
Expand Down
1 change: 0 additions & 1 deletion net/proxy/multi_threaded_proxy_resolver.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
#pragma once

#include <deque>
#include <string>
#include <vector>

#include "base/basictypes.h"
Expand Down
3 changes: 1 addition & 2 deletions net/proxy/proxy_config.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright (c) 2006-2008 The Chromium Authors. All rights reserved.
// Copyright (c) 2010 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.

Expand All @@ -7,7 +7,6 @@
#pragma once

#include <string>
#include <vector>

#include "googleurl/src/gurl.h"
#include "net/proxy/proxy_bypass_rules.h"
Expand Down
5 changes: 1 addition & 4 deletions net/proxy/proxy_config_service_common_unittest.h
Original file line number Diff line number Diff line change
@@ -1,14 +1,11 @@
// Copyright (c) 2009 The Chromium Authors. All rights reserved.
// Copyright (c) 2010 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_PROXY_PROXY_CONFIG_SERVICE_COMMON_UNITTEST_H_
#define NET_PROXY_PROXY_CONFIG_SERVICE_COMMON_UNITTEST_H_
#pragma once

#include <string>
#include <vector>

#include "net/proxy/proxy_config.h"
#include "testing/gtest/include/gtest/gtest.h"

Expand Down
4 changes: 1 addition & 3 deletions net/proxy/proxy_resolver_mac.h
Original file line number Diff line number Diff line change
@@ -1,13 +1,11 @@
// Copyright (c) 2008 The Chromium Authors. All rights reserved.
// Copyright (c) 2010 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_PROXY_PROXY_RESOLVER_MAC_H_
#define NET_PROXY_PROXY_RESOLVER_MAC_H_
#pragma once

#include <string>

#include "googleurl/src/gurl.h"
#include "net/base/net_errors.h"
#include "net/proxy/proxy_resolver.h"
Expand Down
4 changes: 1 addition & 3 deletions net/proxy/proxy_resolver_winhttp.h
Original file line number Diff line number Diff line change
@@ -1,13 +1,11 @@
// Copyright (c) 2006-2008 The Chromium Authors. All rights reserved.
// Copyright (c) 2010 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_PROXY_PROXY_RESOLVER_WINHTTP_H_
#define NET_PROXY_PROXY_RESOLVER_WINHTTP_H_
#pragma once

#include <string>

#include "googleurl/src/gurl.h"
#include "net/proxy/proxy_resolver.h"

Expand Down
1 change: 0 additions & 1 deletion net/proxy/proxy_service.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
#define NET_PROXY_PROXY_SERVICE_H_
#pragma once

#include <string>
#include <vector>

#include "base/gtest_prod_util.h"
Expand Down
1 change: 0 additions & 1 deletion net/socket/client_socket_pool.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
#pragma once

#include <deque>
#include <map>
#include <string>

#include "base/basictypes.h"
Expand Down
1 change: 0 additions & 1 deletion net/socket_stream/socket_stream.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
#include <deque>
#include <map>
#include <string>
#include <vector>

#include "base/linked_ptr.h"
#include "base/ref_counted.h"
Expand Down
4 changes: 1 addition & 3 deletions net/socket_stream/socket_stream_metrics.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright (c) 2009 The Chromium Authors. All rights reserved.
// Copyright (c) 2010 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.
//
Expand All @@ -9,8 +9,6 @@
#define NET_SOCKET_STREAM_SOCKET_STREAM_METRICS_H_
#pragma once

#include <string>

#include "base/basictypes.h"
#include "base/time.h"

Expand Down
1 change: 0 additions & 1 deletion net/url_request/url_request_http_job.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
#define NET_URL_REQUEST_URL_REQUEST_HTTP_JOB_H_
#pragma once

#include <set>
#include <string>
#include <vector>

Expand Down
1 change: 0 additions & 1 deletion net/url_request/url_request_unittest.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@

#include <sstream>
#include <string>
#include <vector>

#include "base/logging.h"
#include "base/message_loop.h"
Expand Down

0 comments on commit 2f7faae

Please sign in to comment.