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

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

Issue 6930040: Refactor to address URLRequestContext dependency added in (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 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
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 16 matching lines...) Expand all
27 // Callback function implemented by protocol handlers to create new jobs. 27 // Callback function implemented by protocol handlers to create new jobs.
28 typedef SocketStreamJob* (ProtocolFactory)(const GURL& url, 28 typedef SocketStreamJob* (ProtocolFactory)(const GURL& url,
29 SocketStream::Delegate* delegate); 29 SocketStream::Delegate* delegate);
30 30
31 static ProtocolFactory* RegisterProtocolFactory(const std::string& scheme, 31 static ProtocolFactory* RegisterProtocolFactory(const std::string& scheme,
32 ProtocolFactory* factory); 32 ProtocolFactory* factory);
33 33
34 static SocketStreamJob* CreateSocketStreamJob( 34 static SocketStreamJob* CreateSocketStreamJob(
35 const GURL& url, 35 const GURL& url,
36 SocketStream::Delegate* delegate, 36 SocketStream::Delegate* delegate,
37 const URLRequestContext& context); 37 TransportSecurityState* sts,
38 SSLConfigService* ssl);
38 39
39 SocketStreamJob(); 40 SocketStreamJob();
40 void InitSocketStream(SocketStream* socket) { 41 void InitSocketStream(SocketStream* socket) {
41 socket_ = socket; 42 socket_ = socket;
42 } 43 }
43 44
44 virtual SocketStream::UserData* GetUserData(const void* key) const; 45 virtual SocketStream::UserData* GetUserData(const void* key) const;
45 virtual void SetUserData(const void* key, SocketStream::UserData* data); 46 virtual void SetUserData(const void* key, SocketStream::UserData* data);
46 47
47 URLRequestContext* context() const { 48 URLRequestContext* context() const {
(...skipping 20 matching lines...) Expand all
68 virtual ~SocketStreamJob(); 69 virtual ~SocketStreamJob();
69 70
70 scoped_refptr<SocketStream> socket_; 71 scoped_refptr<SocketStream> socket_;
71 72
72 DISALLOW_COPY_AND_ASSIGN(SocketStreamJob); 73 DISALLOW_COPY_AND_ASSIGN(SocketStreamJob);
73 }; 74 };
74 75
75 } // namespace net 76 } // namespace net
76 77
77 #endif // NET_SOCKET_STREAM_SOCKET_STREAM_JOB_H_ 78 #endif // NET_SOCKET_STREAM_SOCKET_STREAM_JOB_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698