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

Side by Side Diff: net/socket_stream/socket_stream_job.h

Issue 6322003: net: Remove prefix net:: from some places that already are in namespace net. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 11 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « net/socket_stream/socket_stream.cc ('k') | net/spdy/spdy_test_util.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef NET_SOCKET_STREAM_SOCKET_STREAM_JOB_H_ 5 #ifndef NET_SOCKET_STREAM_SOCKET_STREAM_JOB_H_
6 #define NET_SOCKET_STREAM_SOCKET_STREAM_JOB_H_ 6 #define NET_SOCKET_STREAM_SOCKET_STREAM_JOB_H_
7 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 10
(...skipping 24 matching lines...) Expand all
35 const GURL& url, SocketStream::Delegate* delegate); 35 const GURL& url, SocketStream::Delegate* delegate);
36 36
37 SocketStreamJob(); 37 SocketStreamJob();
38 void InitSocketStream(SocketStream* socket) { 38 void InitSocketStream(SocketStream* socket) {
39 socket_ = socket; 39 socket_ = socket;
40 } 40 }
41 41
42 virtual SocketStream::UserData* GetUserData(const void* key) const; 42 virtual SocketStream::UserData* GetUserData(const void* key) const;
43 virtual void SetUserData(const void* key, SocketStream::UserData* data); 43 virtual void SetUserData(const void* key, SocketStream::UserData* data);
44 44
45 net::URLRequestContext* context() const { 45 URLRequestContext* context() const {
46 return socket_->context(); 46 return socket_->context();
47 } 47 }
48 void set_context(net::URLRequestContext* context) { 48 void set_context(URLRequestContext* context) {
49 socket_->set_context(context); 49 socket_->set_context(context);
50 } 50 }
51 51
52 virtual void Connect(); 52 virtual void Connect();
53 53
54 virtual bool SendData(const char* data, int len); 54 virtual bool SendData(const char* data, int len);
55 55
56 virtual void Close(); 56 virtual void Close();
57 57
58 virtual void RestartWithAuth(const string16& username, 58 virtual void RestartWithAuth(const string16& username,
59 const string16& password); 59 const string16& password);
60 60
61 virtual void DetachDelegate(); 61 virtual void DetachDelegate();
62 62
63 protected: 63 protected:
64 friend class base::RefCountedThreadSafe<SocketStreamJob>; 64 friend class base::RefCountedThreadSafe<SocketStreamJob>;
65 virtual ~SocketStreamJob(); 65 virtual ~SocketStreamJob();
66 66
67 scoped_refptr<SocketStream> socket_; 67 scoped_refptr<SocketStream> socket_;
68 68
69 DISALLOW_COPY_AND_ASSIGN(SocketStreamJob); 69 DISALLOW_COPY_AND_ASSIGN(SocketStreamJob);
70 }; 70 };
71 71
72 } // namespace net 72 } // namespace net
73 73
74 #endif // NET_SOCKET_STREAM_SOCKET_STREAM_JOB_H_ 74 #endif // NET_SOCKET_STREAM_SOCKET_STREAM_JOB_H_
OLDNEW
« no previous file with comments | « net/socket_stream/socket_stream.cc ('k') | net/spdy/spdy_test_util.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698