summaryrefslogtreecommitdiffstats
path: root/net/socket_stream
diff options
context:
space:
mode:
authorrvargas@google.com <rvargas@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2011-05-19 23:36:16 +0000
committerrvargas@google.com <rvargas@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2011-05-19 23:36:16 +0000
commit66a4b6df11ba5ddec6f6e5d0c7d721b0fa4cc666 (patch)
tree656fddb6869139988e6c1ac1c682e59ad1a35738 /net/socket_stream
parente078590661444968a2c49a3e5464413714471dca (diff)
downloadchromium_src-66a4b6df11ba5ddec6f6e5d0c7d721b0fa4cc666.zip
chromium_src-66a4b6df11ba5ddec6f6e5d0c7d721b0fa4cc666.tar.gz
chromium_src-66a4b6df11ba5ddec6f6e5d0c7d721b0fa4cc666.tar.bz2
Net: Add NET_API to socket_stream and spdy.
BUG=76997 TEST=NONE Review URL: http://codereview.chromium.org/7044021 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@86011 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/socket_stream')
-rw-r--r--net/socket_stream/socket_stream.h5
-rw-r--r--net/socket_stream/socket_stream_job.h4
-rw-r--r--net/socket_stream/socket_stream_metrics.h5
3 files changed, 9 insertions, 5 deletions
diff --git a/net/socket_stream/socket_stream.h b/net/socket_stream/socket_stream.h
index b41777f..18042e0 100644
--- a/net/socket_stream/socket_stream.h
+++ b/net/socket_stream/socket_stream.h
@@ -18,6 +18,7 @@
#include "net/base/address_list.h"
#include "net/base/completion_callback.h"
#include "net/base/io_buffer.h"
+#include "net/base/net_api.h"
#include "net/base/net_log.h"
#include "net/base/net_errors.h"
#include "net/base/ssl_config_service.h"
@@ -45,7 +46,7 @@ class SocketStreamMetrics;
// authentication identity for proxy URL first. If server requires proxy
// authentication, it will try authentication identity for realm that server
// requests.
-class SocketStream : public base::RefCountedThreadSafe<SocketStream> {
+class NET_API SocketStream : public base::RefCountedThreadSafe<SocketStream> {
public:
// Derive from this class and add your own data members to associate extra
// information with a SocketStream. Use GetUserData(key) and
@@ -56,7 +57,7 @@ class SocketStream : public base::RefCountedThreadSafe<SocketStream> {
virtual ~UserData() {}
};
- class Delegate {
+ class NET_API Delegate {
public:
virtual ~Delegate() {}
diff --git a/net/socket_stream/socket_stream_job.h b/net/socket_stream/socket_stream_job.h
index fdf8d4b..7f8175d 100644
--- a/net/socket_stream/socket_stream_job.h
+++ b/net/socket_stream/socket_stream_job.h
@@ -10,6 +10,7 @@
#include "base/memory/ref_counted.h"
#include "base/string16.h"
+#include "net/base/net_api.h"
#include "net/socket_stream/socket_stream.h"
class GURL;
@@ -25,7 +26,8 @@ class TransportSecurityState;
// WebSocketJob) to do some work on data over SocketStream.
// Registers the protocol specific SocketStreamJob by RegisterProtocolFactory
// and call CreateSocketStreamJob to create SocketStreamJob for the URL.
-class SocketStreamJob : public base::RefCountedThreadSafe<SocketStreamJob> {
+class NET_API SocketStreamJob
+ : public base::RefCountedThreadSafe<SocketStreamJob> {
public:
// Callback function implemented by protocol handlers to create new jobs.
typedef SocketStreamJob* (ProtocolFactory)(const GURL& url,
diff --git a/net/socket_stream/socket_stream_metrics.h b/net/socket_stream/socket_stream_metrics.h
index 66a9ffd..4bd93be6 100644
--- a/net/socket_stream/socket_stream_metrics.h
+++ b/net/socket_stream/socket_stream_metrics.h
@@ -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.
//
@@ -11,12 +11,13 @@
#include "base/basictypes.h"
#include "base/time.h"
+#include "net/base/net_api.h"
class GURL;
namespace net {
-class SocketStreamMetrics {
+class NET_TEST SocketStreamMetrics {
public:
enum ProtocolType {
PROTOCOL_UNKNOWN,