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/callback_forward.h" | 10 #include "base/callback_forward.h" |
(...skipping 22 matching lines...) Expand all Loading... |
33 public SSLErrorHandler::Delegate { | 33 public SSLErrorHandler::Delegate { |
34 public: | 34 public: |
35 typedef base::Callback<net::URLRequestContext*(ResourceType::Type)> | 35 typedef base::Callback<net::URLRequestContext*(ResourceType::Type)> |
36 GetRequestContextCallback; | 36 GetRequestContextCallback; |
37 SocketStreamDispatcherHost( | 37 SocketStreamDispatcherHost( |
38 int render_process_id, | 38 int render_process_id, |
39 const GetRequestContextCallback& request_context_callback, | 39 const GetRequestContextCallback& request_context_callback, |
40 ResourceContext* resource_context); | 40 ResourceContext* resource_context); |
41 | 41 |
42 // BrowserMessageFilter: | 42 // BrowserMessageFilter: |
43 virtual bool OnMessageReceived(const IPC::Message& message, | 43 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE; |
44 bool* message_was_ok) OVERRIDE; | |
45 | 44 |
46 // Make this object inactive. | 45 // Make this object inactive. |
47 // Remove all active SocketStreamHost objects. | 46 // Remove all active SocketStreamHost objects. |
48 void Shutdown(); | 47 void Shutdown(); |
49 | 48 |
50 // SocketStream::Delegate: | 49 // SocketStream::Delegate: |
51 virtual void OnConnected(net::SocketStream* socket, | 50 virtual void OnConnected(net::SocketStream* socket, |
52 int max_pending_send_allowed) OVERRIDE; | 51 int max_pending_send_allowed) OVERRIDE; |
53 virtual void OnSentData(net::SocketStream* socket, int amount_sent) OVERRIDE; | 52 virtual void OnSentData(net::SocketStream* socket, int amount_sent) OVERRIDE; |
54 virtual void OnReceivedData(net::SocketStream* socket, | 53 virtual void OnReceivedData(net::SocketStream* socket, |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
91 | 90 |
92 base::WeakPtrFactory<SocketStreamDispatcherHost> weak_ptr_factory_; | 91 base::WeakPtrFactory<SocketStreamDispatcherHost> weak_ptr_factory_; |
93 bool on_shutdown_; | 92 bool on_shutdown_; |
94 | 93 |
95 DISALLOW_COPY_AND_ASSIGN(SocketStreamDispatcherHost); | 94 DISALLOW_COPY_AND_ASSIGN(SocketStreamDispatcherHost); |
96 }; | 95 }; |
97 | 96 |
98 } // namespace content | 97 } // namespace content |
99 | 98 |
100 #endif // CONTENT_BROWSER_RENDERER_HOST_SOCKET_STREAM_DISPATCHER_HOST_H_ | 99 #endif // CONTENT_BROWSER_RENDERER_HOST_SOCKET_STREAM_DISPATCHER_HOST_H_ |
OLD | NEW |