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

Side by Side Diff: branches/1500/src/net/socket_stream/socket_stream_job.h

Issue 17368004: Revert 207763 "Merge https://src.chromium.org/viewvc/chrome?revi..." (Closed) Base URL: svn://svn.chromium.org/chrome/
Patch Set: Created 7 years, 6 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
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/memory/ref_counted.h" 10 #include "base/memory/ref_counted.h"
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
42 SSLConfigService* ssl); 42 SSLConfigService* ssl);
43 43
44 SocketStreamJob(); 44 SocketStreamJob();
45 void InitSocketStream(SocketStream* socket) { 45 void InitSocketStream(SocketStream* socket) {
46 socket_ = socket; 46 socket_ = socket;
47 } 47 }
48 48
49 virtual SocketStream::UserData* GetUserData(const void* key) const; 49 virtual SocketStream::UserData* GetUserData(const void* key) const;
50 virtual void SetUserData(const void* key, SocketStream::UserData* data); 50 virtual void SetUserData(const void* key, SocketStream::UserData* data);
51 51
52 URLRequestContext* context() const { 52 const URLRequestContext* context() const {
53 return socket_->context(); 53 return socket_->context();
54 } 54 }
55 void set_context(URLRequestContext* context) { 55 void set_context(const URLRequestContext* context) {
56 socket_->set_context(context); 56 socket_->set_context(context);
57 } 57 }
58 58
59 virtual void Connect(); 59 virtual void Connect();
60 60
61 virtual bool SendData(const char* data, int len); 61 virtual bool SendData(const char* data, int len);
62 62
63 virtual void Close(); 63 virtual void Close();
64 64
65 virtual void RestartWithAuth(const AuthCredentials& credentials); 65 virtual void RestartWithAuth(const AuthCredentials& credentials);
(...skipping 13 matching lines...) Expand all
79 virtual ~SocketStreamJob(); 79 virtual ~SocketStreamJob();
80 80
81 scoped_refptr<SocketStream> socket_; 81 scoped_refptr<SocketStream> socket_;
82 82
83 DISALLOW_COPY_AND_ASSIGN(SocketStreamJob); 83 DISALLOW_COPY_AND_ASSIGN(SocketStreamJob);
84 }; 84 };
85 85
86 } // namespace net 86 } // namespace net
87 87
88 #endif // NET_SOCKET_STREAM_SOCKET_STREAM_JOB_H_ 88 #endif // NET_SOCKET_STREAM_SOCKET_STREAM_JOB_H_
OLDNEW
« no previous file with comments | « branches/1500/src/net/socket_stream/socket_stream.h ('k') | branches/1500/src/net/socket_stream/socket_stream_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698