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

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

Issue 14335011: Revert 196728 "Websocket should fire 'error' event if no server ..." (Closed) Base URL: svn://svn.chromium.org/chrome/
Patch Set: Created 7 years, 8 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 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
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;
55 virtual void OnSSLCertificateError(net::SocketStream* socket, 54 virtual void OnSSLCertificateError(net::SocketStream* socket,
56 const net::SSLInfo& ssl_info, 55 const net::SSLInfo& ssl_info,
57 bool fatal) OVERRIDE; 56 bool fatal) OVERRIDE;
58 virtual bool CanGetCookies(net::SocketStream* socket, 57 virtual bool CanGetCookies(net::SocketStream* socket,
59 const GURL& url) OVERRIDE; 58 const GURL& url) OVERRIDE;
60 virtual bool CanSetCookie(net::SocketStream* request, 59 virtual bool CanSetCookie(net::SocketStream* request,
61 const GURL& url, 60 const GURL& url,
62 const std::string& cookie_line, 61 const std::string& cookie_line,
63 net::CookieOptions* options) OVERRIDE; 62 net::CookieOptions* options) OVERRIDE;
64 63
(...skipping 23 matching lines...) Expand all
88 ResourceContext* resource_context_; 87 ResourceContext* resource_context_;
89 88
90 base::WeakPtrFactory<SocketStreamDispatcherHost> weak_ptr_factory_; 89 base::WeakPtrFactory<SocketStreamDispatcherHost> weak_ptr_factory_;
91 90
92 DISALLOW_COPY_AND_ASSIGN(SocketStreamDispatcherHost); 91 DISALLOW_COPY_AND_ASSIGN(SocketStreamDispatcherHost);
93 }; 92 };
94 93
95 } // namespace content 94 } // namespace content
96 95
97 #endif // CONTENT_BROWSER_RENDERER_HOST_SOCKET_STREAM_DISPATCHER_HOST_H_ 96 #endif // CONTENT_BROWSER_RENDERER_HOST_SOCKET_STREAM_DISPATCHER_HOST_H_
OLDNEW
« no previous file with comments | « trunk/src/AUTHORS ('k') | trunk/src/content/browser/renderer_host/socket_stream_dispatcher_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698