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

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

Issue 10299002: Stop refcounting URLRequestContext. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Initialize to NULL Created 8 years, 7 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/socket_stream/socket_stream_unittest.cc » ('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) 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 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 10
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
43 SSLConfigService* ssl); 43 SSLConfigService* ssl);
44 44
45 SocketStreamJob(); 45 SocketStreamJob();
46 void InitSocketStream(SocketStream* socket) { 46 void InitSocketStream(SocketStream* socket) {
47 socket_ = socket; 47 socket_ = socket;
48 } 48 }
49 49
50 virtual SocketStream::UserData* GetUserData(const void* key) const; 50 virtual SocketStream::UserData* GetUserData(const void* key) const;
51 virtual void SetUserData(const void* key, SocketStream::UserData* data); 51 virtual void SetUserData(const void* key, SocketStream::UserData* data);
52 52
53 URLRequestContext* context() const { 53 const URLRequestContext* context() const {
54 return socket_->context(); 54 return socket_->context();
55 } 55 }
56 void set_context(URLRequestContext* context) { 56 void set_context(const URLRequestContext* context) {
57 socket_->set_context(context); 57 socket_->set_context(context);
58 } 58 }
59 59
60 virtual void Connect(); 60 virtual void Connect();
61 61
62 virtual bool SendData(const char* data, int len); 62 virtual bool SendData(const char* data, int len);
63 63
64 virtual void Close(); 64 virtual void Close();
65 65
66 virtual void RestartWithAuth(const AuthCredentials& credentials); 66 virtual void RestartWithAuth(const AuthCredentials& credentials);
(...skipping 13 matching lines...) Expand all
80 virtual ~SocketStreamJob(); 80 virtual ~SocketStreamJob();
81 81
82 scoped_refptr<SocketStream> socket_; 82 scoped_refptr<SocketStream> socket_;
83 83
84 DISALLOW_COPY_AND_ASSIGN(SocketStreamJob); 84 DISALLOW_COPY_AND_ASSIGN(SocketStreamJob);
85 }; 85 };
86 86
87 } // namespace net 87 } // namespace net
88 88
89 #endif // NET_SOCKET_STREAM_SOCKET_STREAM_JOB_H_ 89 #endif // NET_SOCKET_STREAM_SOCKET_STREAM_JOB_H_
OLDNEW
« no previous file with comments | « net/socket_stream/socket_stream.cc ('k') | net/socket_stream/socket_stream_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698