OLD | NEW |
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 CONTENT_BROWSER_RENDERER_HOST_SOCKET_STREAM_DISPATCHER_HOST_H_ | 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_SOCKET_STREAM_DISPATCHER_HOST_H_ |
6 #define CONTENT_BROWSER_RENDERER_HOST_SOCKET_STREAM_DISPATCHER_HOST_H_ | 6 #define CONTENT_BROWSER_RENDERER_HOST_SOCKET_STREAM_DISPATCHER_HOST_H_ |
7 | 7 |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "base/id_map.h" | 10 #include "base/id_map.h" |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
44 // The object died, so cancel and detach all requests associated with it. | 44 // The object died, so cancel and detach all requests associated with it. |
45 void CancelRequestsForProcess(int host_id); | 45 void CancelRequestsForProcess(int host_id); |
46 | 46 |
47 // SocketStream::Delegate: | 47 // SocketStream::Delegate: |
48 virtual void OnConnected(net::SocketStream* socket, | 48 virtual void OnConnected(net::SocketStream* socket, |
49 int max_pending_send_allowed) OVERRIDE; | 49 int max_pending_send_allowed) OVERRIDE; |
50 virtual void OnSentData(net::SocketStream* socket, int amount_sent) OVERRIDE; | 50 virtual void OnSentData(net::SocketStream* socket, int amount_sent) OVERRIDE; |
51 virtual void OnReceivedData(net::SocketStream* socket, | 51 virtual void OnReceivedData(net::SocketStream* socket, |
52 const char* data, int len) OVERRIDE; | 52 const char* data, int len) OVERRIDE; |
53 virtual void OnClose(net::SocketStream* socket) OVERRIDE; | 53 virtual void OnClose(net::SocketStream* socket) OVERRIDE; |
| 54 virtual void OnError(const net::SocketStream* socket, int error) OVERRIDE; |
54 virtual void OnSSLCertificateError(net::SocketStream* socket, | 55 virtual void OnSSLCertificateError(net::SocketStream* socket, |
55 const net::SSLInfo& ssl_info, | 56 const net::SSLInfo& ssl_info, |
56 bool fatal) OVERRIDE; | 57 bool fatal) OVERRIDE; |
57 virtual bool CanGetCookies(net::SocketStream* socket, | 58 virtual bool CanGetCookies(net::SocketStream* socket, |
58 const GURL& url) OVERRIDE; | 59 const GURL& url) OVERRIDE; |
59 virtual bool CanSetCookie(net::SocketStream* request, | 60 virtual bool CanSetCookie(net::SocketStream* request, |
60 const GURL& url, | 61 const GURL& url, |
61 const std::string& cookie_line, | 62 const std::string& cookie_line, |
62 net::CookieOptions* options) OVERRIDE; | 63 net::CookieOptions* options) OVERRIDE; |
63 | 64 |
(...skipping 23 matching lines...) Expand all Loading... |
87 ResourceContext* resource_context_; | 88 ResourceContext* resource_context_; |
88 | 89 |
89 base::WeakPtrFactory<SocketStreamDispatcherHost> weak_ptr_factory_; | 90 base::WeakPtrFactory<SocketStreamDispatcherHost> weak_ptr_factory_; |
90 | 91 |
91 DISALLOW_COPY_AND_ASSIGN(SocketStreamDispatcherHost); | 92 DISALLOW_COPY_AND_ASSIGN(SocketStreamDispatcherHost); |
92 }; | 93 }; |
93 | 94 |
94 } // namespace content | 95 } // namespace content |
95 | 96 |
96 #endif // CONTENT_BROWSER_RENDERER_HOST_SOCKET_STREAM_DISPATCHER_HOST_H_ | 97 #endif // CONTENT_BROWSER_RENDERER_HOST_SOCKET_STREAM_DISPATCHER_HOST_H_ |
OLD | NEW |