summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorrvargas@google.com <rvargas@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2011-05-21 00:18:30 +0000
committerrvargas@google.com <rvargas@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2011-05-21 00:18:30 +0000
commit67875f5116783d8193e12c863f082d7910e0479e (patch)
treeff905a683bdceb9375dfa9a5f6a70ebca5d03049
parent6626e75cff876ca9da3e0dfddbf75ea164b6941f (diff)
downloadchromium_src-67875f5116783d8193e12c863f082d7910e0479e.zip
chromium_src-67875f5116783d8193e12c863f082d7910e0479e.tar.gz
chromium_src-67875f5116783d8193e12c863f082d7910e0479e.tar.bz2
net: Add NET_API to a few more files.
BUG=76997 TEST=NONE Review URL: http://codereview.chromium.org/7056019 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@86181 0039d316-1c4b-4281-b951-d872f2087c98
-rw-r--r--net/http/http_proxy_client_socket_pool.h6
-rw-r--r--net/net.gyp8
-rw-r--r--net/proxy/dhcp_proxy_script_adapter_fetcher_win.h8
-rw-r--r--net/proxy/dhcp_proxy_script_fetcher.h5
-rw-r--r--net/proxy/dhcp_proxy_script_fetcher_factory.h3
-rw-r--r--net/proxy/dhcp_proxy_script_fetcher_win.h4
-rw-r--r--net/tools/dump_cache/dump_files.cc3
7 files changed, 26 insertions, 11 deletions
diff --git a/net/http/http_proxy_client_socket_pool.h b/net/http/http_proxy_client_socket_pool.h
index c211fec..ac254ff 100644
--- a/net/http/http_proxy_client_socket_pool.h
+++ b/net/http/http_proxy_client_socket_pool.h
@@ -13,6 +13,7 @@
#include "base/memory/scoped_ptr.h"
#include "base/time.h"
#include "net/base/host_port_pair.h"
+#include "net/base/net_api.h"
#include "net/http/http_auth.h"
#include "net/http/http_response_info.h"
#include "net/http/proxy_client_socket.h"
@@ -36,7 +37,8 @@ class TransportSocketParams;
// types. The other param must be NULL. When using an HTTP Proxy,
// |transport_params| must be set. When using an HTTPS Proxy, |ssl_params|
// must be set.
-class HttpProxySocketParams : public base::RefCounted<HttpProxySocketParams> {
+class NET_TEST HttpProxySocketParams
+ : public base::RefCounted<HttpProxySocketParams> {
public:
HttpProxySocketParams(
const scoped_refptr<TransportSocketParams>& transport_params,
@@ -165,7 +167,7 @@ class HttpProxyConnectJob : public ConnectJob {
DISALLOW_COPY_AND_ASSIGN(HttpProxyConnectJob);
};
-class HttpProxyClientSocketPool : public ClientSocketPool {
+class NET_TEST HttpProxyClientSocketPool : public ClientSocketPool {
public:
HttpProxyClientSocketPool(
int max_sockets,
diff --git a/net/net.gyp b/net/net.gyp
index 2ea9a94..2c90ed6 100644
--- a/net/net.gyp
+++ b/net/net.gyp
@@ -822,6 +822,8 @@
'net_test_support',
'../base/base.gyp:base',
'../base/base.gyp:base_i18n',
+ '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations',
+ '../build/temp_gyp/googleurl.gyp:googleurl',
'../crypto/crypto.gyp:crypto',
'../testing/gmock.gyp:gmock',
'../testing/gtest.gyp:gtest',
@@ -1054,6 +1056,7 @@
'../base/base.gyp:base',
'../base/base.gyp:base_i18n',
'../base/base.gyp:test_support_perf',
+ '../build/temp_gyp/googleurl.gyp:googleurl',
'../testing/gtest.gyp:gtest',
],
'msvs_guid': 'AAC78796-B9A2-4CD9-BF89-09B03E92BF73',
@@ -1118,6 +1121,7 @@
'net',
'net_test_support',
'../base/base.gyp:base',
+ '../build/temp_gyp/googleurl.gyp:googleurl',
'../testing/gtest.gyp:gtest',
],
'msvs_guid': '506F2468-6B1D-48E2-A67C-9D9C6BAC0EC5',
@@ -1218,6 +1222,8 @@
'dependencies': [
'net',
'../base/base.gyp:base',
+ '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations',
+ '../build/temp_gyp/googleurl.gyp:googleurl',
'../testing/gtest.gyp:gtest',
],
'msvs_guid': 'DABB8796-B9A2-4CD9-BF89-09B03E92B123',
@@ -1231,6 +1237,7 @@
'dependencies': [
'net',
'../base/base.gyp:base',
+ '../build/temp_gyp/googleurl.gyp:googleurl',
'../testing/gtest.gyp:gtest',
],
'msvs_guid': 'DABB8796-B9A2-4CD9-BF89-09B03E92B124',
@@ -1269,6 +1276,7 @@
'type': 'executable',
'dependencies': [
'net',
+ '../base/base.gyp:base',
],
'sources': [
'tools/dnssec_chain_verify/dnssec_chain_verify.cc',
diff --git a/net/proxy/dhcp_proxy_script_adapter_fetcher_win.h b/net/proxy/dhcp_proxy_script_adapter_fetcher_win.h
index bab7468..166c7a7 100644
--- a/net/proxy/dhcp_proxy_script_adapter_fetcher_win.h
+++ b/net/proxy/dhcp_proxy_script_adapter_fetcher_win.h
@@ -13,6 +13,7 @@
#include "base/threading/non_thread_safe.h"
#include "base/timer.h"
#include "net/base/completion_callback.h"
+#include "net/base/net_api.h"
#include "googleurl/src/gurl.h"
namespace base {
@@ -26,9 +27,9 @@ class URLRequestContext;
// For a given adapter, this class takes care of first doing a DHCP lookup
// to get the PAC URL, then if there is one, trying to fetch it.
-class DhcpProxyScriptAdapterFetcher
+class NET_TEST DhcpProxyScriptAdapterFetcher
: public base::SupportsWeakPtr<DhcpProxyScriptAdapterFetcher>,
- public base::NonThreadSafe {
+ NON_EXPORTED_BASE(public base::NonThreadSafe) {
public:
// |url_request_context| must outlive DhcpProxyScriptAdapterFetcher.
explicit DhcpProxyScriptAdapterFetcher(
@@ -81,7 +82,8 @@ class DhcpProxyScriptAdapterFetcher
// only a weak reference back to the main object, so that the main object
// can be destroyed before the thread ends. This also keeps the main
// object completely thread safe and allows it to be non-refcounted.
- class WorkerThread : public base::RefCountedThreadSafe<WorkerThread> {
+ class NET_TEST WorkerThread
+ : public base::RefCountedThreadSafe<WorkerThread> {
public:
// Creates and initializes (but does not start) the worker thread.
explicit WorkerThread(
diff --git a/net/proxy/dhcp_proxy_script_fetcher.h b/net/proxy/dhcp_proxy_script_fetcher.h
index adb011d..2d07303 100644
--- a/net/proxy/dhcp_proxy_script_fetcher.h
+++ b/net/proxy/dhcp_proxy_script_fetcher.h
@@ -10,6 +10,7 @@
#include "base/compiler_specific.h"
#include "base/string16.h"
#include "net/base/completion_callback.h"
+#include "net/base/net_api.h"
#include "net/proxy/proxy_script_fetcher.h"
#include "net/url_request/url_request_context.h"
@@ -23,7 +24,7 @@ namespace net {
// Normally there are zero or one DHCP scripts configured, but in the
// presence of multiple adapters with DHCP enabled, the fetcher resolves
// which PAC script to use if one or more are available.
-class DhcpProxyScriptFetcher {
+class NET_TEST DhcpProxyScriptFetcher {
public:
// Destruction should cancel any outstanding requests.
virtual ~DhcpProxyScriptFetcher();
@@ -79,7 +80,7 @@ class DhcpProxyScriptFetcher {
// A do-nothing retriever, always returns synchronously with
// ERR_NOT_IMPLEMENTED result and empty text.
-class DoNothingDhcpProxyScriptFetcher : public DhcpProxyScriptFetcher {
+class NET_TEST DoNothingDhcpProxyScriptFetcher : public DhcpProxyScriptFetcher {
public:
DoNothingDhcpProxyScriptFetcher();
virtual ~DoNothingDhcpProxyScriptFetcher();
diff --git a/net/proxy/dhcp_proxy_script_fetcher_factory.h b/net/proxy/dhcp_proxy_script_fetcher_factory.h
index 20e4104..4bb2446 100644
--- a/net/proxy/dhcp_proxy_script_fetcher_factory.h
+++ b/net/proxy/dhcp_proxy_script_fetcher_factory.h
@@ -9,6 +9,7 @@
#include "base/basictypes.h"
#include "base/memory/singleton.h"
#include "net/base/completion_callback.h"
+#include "net/base/net_api.h"
#include "net/url_request/url_request_context.h"
namespace net {
@@ -29,7 +30,7 @@ class DhcpProxyScriptFetcher;
//
// Therefore, we have platform-specific implementations, and so we use
// this factory to select the right one.
-class DhcpProxyScriptFetcherFactory {
+class NET_API DhcpProxyScriptFetcherFactory {
public:
// Creates a new factory object with default settings.
DhcpProxyScriptFetcherFactory();
diff --git a/net/proxy/dhcp_proxy_script_fetcher_win.h b/net/proxy/dhcp_proxy_script_fetcher_win.h
index 3783971..dc68bc4 100644
--- a/net/proxy/dhcp_proxy_script_fetcher_win.h
+++ b/net/proxy/dhcp_proxy_script_fetcher_win.h
@@ -21,9 +21,9 @@ class DhcpProxyScriptAdapterFetcher;
class URLRequestContext;
// Windows-specific implementation.
-class DhcpProxyScriptFetcherWin
+class NET_TEST DhcpProxyScriptFetcherWin
: public DhcpProxyScriptFetcher,
- public base::NonThreadSafe {
+ NON_EXPORTED_BASE(public base::NonThreadSafe) {
public:
// Creates a DhcpProxyScriptFetcherWin that issues requests through
// |url_request_context|. |url_request_context| must remain valid for
diff --git a/net/tools/dump_cache/dump_files.cc b/net/tools/dump_cache/dump_files.cc
index 8f65df3..ef680d53 100644
--- a/net/tools/dump_cache/dump_files.cc
+++ b/net/tools/dump_cache/dump_files.cc
@@ -1,4 +1,4 @@
-// Copyright (c) 2010 The Chromium Authors. All rights reserved.
+// Copyright (c) 2011 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.
@@ -17,6 +17,7 @@
#include "net/disk_cache/disk_format.h"
#include "net/disk_cache/mapped_file.h"
#include "net/disk_cache/storage_block.h"
+#include "net/disk_cache/storage_block-inl.h"
namespace {