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

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

Issue 8340026: Use AuthCredentials throughout the network stack instead of username/password. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Fix comments Created 9 years, 1 month 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
« no previous file with comments | « net/socket_stream/socket_stream.cc ('k') | net/socket_stream/socket_stream_job.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) 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
11 #include "base/memory/ref_counted.h" 11 #include "base/memory/ref_counted.h"
12 #include "base/string16.h"
13 #include "net/base/net_export.h" 12 #include "net/base/net_export.h"
14 #include "net/socket_stream/socket_stream.h" 13 #include "net/socket_stream/socket_stream.h"
15 14
16 class GURL; 15 class GURL;
17 16
18 namespace net { 17 namespace net {
19 18
20 class SSLConfigService; 19 class SSLConfigService;
21 class TransportSecurityState; 20 class TransportSecurityState;
22 21
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
56 void set_context(URLRequestContext* context) { 55 void set_context(URLRequestContext* context) {
57 socket_->set_context(context); 56 socket_->set_context(context);
58 } 57 }
59 58
60 virtual void Connect(); 59 virtual void Connect();
61 60
62 virtual bool SendData(const char* data, int len); 61 virtual bool SendData(const char* data, int len);
63 62
64 virtual void Close(); 63 virtual void Close();
65 64
66 virtual void RestartWithAuth(const string16& username, 65 virtual void RestartWithAuth(const AuthCredentials& credentials);
67 const string16& password);
68 66
69 virtual void DetachDelegate(); 67 virtual void DetachDelegate();
70 68
71 protected: 69 protected:
72 friend class WebSocketJobTest; 70 friend class WebSocketJobTest;
73 friend class base::RefCountedThreadSafe<SocketStreamJob>; 71 friend class base::RefCountedThreadSafe<SocketStreamJob>;
74 virtual ~SocketStreamJob(); 72 virtual ~SocketStreamJob();
75 73
76 scoped_refptr<SocketStream> socket_; 74 scoped_refptr<SocketStream> socket_;
77 75
78 DISALLOW_COPY_AND_ASSIGN(SocketStreamJob); 76 DISALLOW_COPY_AND_ASSIGN(SocketStreamJob);
79 }; 77 };
80 78
81 } // namespace net 79 } // namespace net
82 80
83 #endif // NET_SOCKET_STREAM_SOCKET_STREAM_JOB_H_ 81 #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_job.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698