| OLD | NEW |
| 1 // Copyright (c) 2009 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 CHROME_BROWSER_RENDERER_HOST_SOCKET_STREAM_DISPATCHER_HOST_H_ | 5 #ifndef CHROME_BROWSER_RENDERER_HOST_SOCKET_STREAM_DISPATCHER_HOST_H_ |
| 6 #define CHROME_BROWSER_RENDERER_HOST_SOCKET_STREAM_DISPATCHER_HOST_H_ | 6 #define CHROME_BROWSER_RENDERER_HOST_SOCKET_STREAM_DISPATCHER_HOST_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| 11 #include "base/id_map.h" | 11 #include "base/id_map.h" |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 47 | 47 |
| 48 private: | 48 private: |
| 49 // Message handlers called by OnMessageReceived. | 49 // Message handlers called by OnMessageReceived. |
| 50 void OnConnect(const GURL& url, int socket_id); | 50 void OnConnect(const GURL& url, int socket_id); |
| 51 void OnSendData(int socket_id, const std::vector<char>& data); | 51 void OnSendData(int socket_id, const std::vector<char>& data); |
| 52 void OnCloseReq(int socket_id); | 52 void OnCloseReq(int socket_id); |
| 53 | 53 |
| 54 void DeleteSocketStreamHost(int socket_id); | 54 void DeleteSocketStreamHost(int socket_id); |
| 55 | 55 |
| 56 // Returns the URLRequestContext. | 56 // Returns the URLRequestContext. |
| 57 URLRequestContext* GetURLRequestContext(); | 57 net::URLRequestContext* GetURLRequestContext(); |
| 58 | 58 |
| 59 IDMap<SocketStreamHost> hosts_; | 59 IDMap<SocketStreamHost> hosts_; |
| 60 scoped_refptr<ResourceMessageFilter::URLRequestContextOverride> | 60 scoped_refptr<ResourceMessageFilter::URLRequestContextOverride> |
| 61 url_request_context_override_; | 61 url_request_context_override_; |
| 62 | 62 |
| 63 DISALLOW_COPY_AND_ASSIGN(SocketStreamDispatcherHost); | 63 DISALLOW_COPY_AND_ASSIGN(SocketStreamDispatcherHost); |
| 64 }; | 64 }; |
| 65 | 65 |
| 66 #endif // CHROME_BROWSER_RENDERER_HOST_SOCKET_STREAM_DISPATCHER_HOST_H_ | 66 #endif // CHROME_BROWSER_RENDERER_HOST_SOCKET_STREAM_DISPATCHER_HOST_H_ |
| OLD | NEW |