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

Side by Side Diff: content/browser/renderer_host/socket_stream_dispatcher_host.h

Issue 10458057: Websocket should fire 'error' event if no server available (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Created 8 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 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 #pragma once 7 #pragma once
8 8
9 #include <vector> 9 #include <vector>
10 10
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
45 // The object died, so cancel and detach all requests associated with it. 45 // The object died, so cancel and detach all requests associated with it.
46 void CancelRequestsForProcess(int host_id); 46 void CancelRequestsForProcess(int host_id);
47 47
48 // SocketStream::Delegate: 48 // SocketStream::Delegate:
49 virtual void OnConnected(net::SocketStream* socket, 49 virtual void OnConnected(net::SocketStream* socket,
50 int max_pending_send_allowed) OVERRIDE; 50 int max_pending_send_allowed) OVERRIDE;
51 virtual void OnSentData(net::SocketStream* socket, int amount_sent) OVERRIDE; 51 virtual void OnSentData(net::SocketStream* socket, int amount_sent) OVERRIDE;
52 virtual void OnReceivedData(net::SocketStream* socket, 52 virtual void OnReceivedData(net::SocketStream* socket,
53 const char* data, int len) OVERRIDE; 53 const char* data, int len) OVERRIDE;
54 virtual void OnClose(net::SocketStream* socket) OVERRIDE; 54 virtual void OnClose(net::SocketStream* socket) OVERRIDE;
55 virtual void OnError(const net::SocketStream* socket, int error) OVERRIDE;
55 virtual void OnSSLCertificateError(net::SocketStream* socket, 56 virtual void OnSSLCertificateError(net::SocketStream* socket,
56 const net::SSLInfo& ssl_info, 57 const net::SSLInfo& ssl_info,
57 bool fatal) OVERRIDE; 58 bool fatal) OVERRIDE;
58 virtual bool CanGetCookies(net::SocketStream* socket, 59 virtual bool CanGetCookies(net::SocketStream* socket,
59 const GURL& url) OVERRIDE; 60 const GURL& url) OVERRIDE;
60 virtual bool CanSetCookie(net::SocketStream* request, 61 virtual bool CanSetCookie(net::SocketStream* request,
61 const GURL& url, 62 const GURL& url,
62 const std::string& cookie_line, 63 const std::string& cookie_line,
63 net::CookieOptions* options) OVERRIDE; 64 net::CookieOptions* options) OVERRIDE;
64 65
(...skipping 22 matching lines...) Expand all
87 IDMap<SocketStreamHost> hosts_; 88 IDMap<SocketStreamHost> hosts_;
88 int render_process_id_; 89 int render_process_id_;
89 const scoped_ptr<ResourceMessageFilter::URLRequestContextSelector> 90 const scoped_ptr<ResourceMessageFilter::URLRequestContextSelector>
90 url_request_context_selector_; 91 url_request_context_selector_;
91 content::ResourceContext* resource_context_; 92 content::ResourceContext* resource_context_;
92 93
93 DISALLOW_COPY_AND_ASSIGN(SocketStreamDispatcherHost); 94 DISALLOW_COPY_AND_ASSIGN(SocketStreamDispatcherHost);
94 }; 95 };
95 96
96 #endif // CONTENT_BROWSER_RENDERER_HOST_SOCKET_STREAM_DISPATCHER_HOST_H_ 97 #endif // CONTENT_BROWSER_RENDERER_HOST_SOCKET_STREAM_DISPATCHER_HOST_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698