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

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

Issue 9677031: Bind RenderViewImpl routing_id to SocketStreamHost (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: reflects review comments by tony and darin Created 8 years, 9 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 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
54 bool fatal) OVERRIDE; 54 bool fatal) OVERRIDE;
55 virtual bool CanGetCookies(net::SocketStream* socket, 55 virtual bool CanGetCookies(net::SocketStream* socket,
56 const GURL& url) OVERRIDE; 56 const GURL& url) OVERRIDE;
57 virtual bool CanSetCookie(net::SocketStream* request, 57 virtual bool CanSetCookie(net::SocketStream* request,
58 const GURL& url, 58 const GURL& url,
59 const std::string& cookie_line, 59 const std::string& cookie_line,
60 net::CookieOptions* options) OVERRIDE; 60 net::CookieOptions* options) OVERRIDE;
61 61
62 private: 62 private:
63 // Message handlers called by OnMessageReceived. 63 // Message handlers called by OnMessageReceived.
64 void OnConnect(const GURL& url, int socket_id); 64 void OnConnect(int routing_id, const GURL& url, int socket_id);
65 void OnSendData(int socket_id, const std::vector<char>& data); 65 void OnSendData(int socket_id, const std::vector<char>& data);
66 void OnCloseReq(int socket_id); 66 void OnCloseReq(int socket_id);
67 67
68 void DeleteSocketStreamHost(int socket_id); 68 void DeleteSocketStreamHost(int socket_id);
69 69
70 net::URLRequestContext* GetURLRequestContext(); 70 net::URLRequestContext* GetURLRequestContext();
71 71
72 IDMap<SocketStreamHost> hosts_; 72 IDMap<SocketStreamHost> hosts_;
73 const scoped_ptr<ResourceMessageFilter::URLRequestContextSelector> 73 const scoped_ptr<ResourceMessageFilter::URLRequestContextSelector>
74 url_request_context_selector_; 74 url_request_context_selector_;
75 content::ResourceContext* resource_context_; 75 content::ResourceContext* resource_context_;
76 76
77 DISALLOW_COPY_AND_ASSIGN(SocketStreamDispatcherHost); 77 DISALLOW_COPY_AND_ASSIGN(SocketStreamDispatcherHost);
78 }; 78 };
79 79
80 #endif // CONTENT_BROWSER_RENDERER_HOST_SOCKET_STREAM_DISPATCHER_HOST_H_ 80 #endif // CONTENT_BROWSER_RENDERER_HOST_SOCKET_STREAM_DISPATCHER_HOST_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698