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

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

Issue 425653002: content: ResourceType cleanup. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: REBASE Created 6 years, 4 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/callback_forward.h" 10 #include "base/callback_forward.h"
(...skipping 14 matching lines...) Expand all
25 class SocketStreamHost; 25 class SocketStreamHost;
26 26
27 // Dispatches ViewHostMsg_SocketStream_* messages sent from renderer. 27 // Dispatches ViewHostMsg_SocketStream_* messages sent from renderer.
28 // It also acts as SocketStream::Delegate so that it sends 28 // It also acts as SocketStream::Delegate so that it sends
29 // ViewMsg_SocketStream_* messages back to renderer. 29 // ViewMsg_SocketStream_* messages back to renderer.
30 class SocketStreamDispatcherHost 30 class SocketStreamDispatcherHost
31 : public BrowserMessageFilter, 31 : public BrowserMessageFilter,
32 public net::SocketStream::Delegate, 32 public net::SocketStream::Delegate,
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)>
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) OVERRIDE; 43 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE;
44 44
45 // Make this object inactive. 45 // Make this object inactive.
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
90 90
91 base::WeakPtrFactory<SocketStreamDispatcherHost> weak_ptr_factory_; 91 base::WeakPtrFactory<SocketStreamDispatcherHost> weak_ptr_factory_;
92 bool on_shutdown_; 92 bool on_shutdown_;
93 93
94 DISALLOW_COPY_AND_ASSIGN(SocketStreamDispatcherHost); 94 DISALLOW_COPY_AND_ASSIGN(SocketStreamDispatcherHost);
95 }; 95 };
96 96
97 } // namespace content 97 } // namespace content
98 98
99 #endif // CONTENT_BROWSER_RENDERER_HOST_SOCKET_STREAM_DISPATCHER_HOST_H_ 99 #endif // CONTENT_BROWSER_RENDERER_HOST_SOCKET_STREAM_DISPATCHER_HOST_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698