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

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

Issue 616603004: Replacing the OVERRIDE with override and FINAL with final in content/browser/renderer_host (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased the patch Created 6 years, 2 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
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 19 matching lines...) Expand all
30 public net::SocketStream::Delegate { 30 public net::SocketStream::Delegate {
31 public: 31 public:
32 typedef base::Callback<net::URLRequestContext*(ResourceType)> 32 typedef base::Callback<net::URLRequestContext*(ResourceType)>
33 GetRequestContextCallback; 33 GetRequestContextCallback;
34 SocketStreamDispatcherHost( 34 SocketStreamDispatcherHost(
35 int render_process_id, 35 int render_process_id,
36 const GetRequestContextCallback& request_context_callback, 36 const GetRequestContextCallback& request_context_callback,
37 ResourceContext* resource_context); 37 ResourceContext* resource_context);
38 38
39 // BrowserMessageFilter: 39 // BrowserMessageFilter:
40 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE; 40 virtual bool OnMessageReceived(const IPC::Message& message) override;
41 41
42 // Make this object inactive. 42 // Make this object inactive.
43 // Remove all active SocketStreamHost objects. 43 // Remove all active SocketStreamHost objects.
44 void Shutdown(); 44 void Shutdown();
45 45
46 // SocketStream::Delegate: 46 // SocketStream::Delegate:
47 virtual void OnConnected(net::SocketStream* socket, 47 virtual void OnConnected(net::SocketStream* socket,
48 int max_pending_send_allowed) OVERRIDE; 48 int max_pending_send_allowed) override;
49 virtual void OnSentData(net::SocketStream* socket, int amount_sent) OVERRIDE; 49 virtual void OnSentData(net::SocketStream* socket, int amount_sent) override;
50 virtual void OnReceivedData(net::SocketStream* socket, 50 virtual void OnReceivedData(net::SocketStream* socket,
51 const char* data, int len) OVERRIDE; 51 const char* data, int len) override;
52 virtual void OnClose(net::SocketStream* socket) OVERRIDE; 52 virtual void OnClose(net::SocketStream* socket) override;
53 virtual void OnError(const net::SocketStream* socket, int error) OVERRIDE; 53 virtual void OnError(const net::SocketStream* socket, int error) override;
54 virtual void OnSSLCertificateError(net::SocketStream* socket, 54 virtual void OnSSLCertificateError(net::SocketStream* socket,
55 const net::SSLInfo& ssl_info, 55 const net::SSLInfo& ssl_info,
56 bool fatal) OVERRIDE; 56 bool fatal) override;
57 virtual bool CanGetCookies(net::SocketStream* socket, 57 virtual bool CanGetCookies(net::SocketStream* socket,
58 const GURL& url) OVERRIDE; 58 const GURL& url) override;
59 virtual bool CanSetCookie(net::SocketStream* request, 59 virtual bool CanSetCookie(net::SocketStream* request,
60 const GURL& url, 60 const GURL& url,
61 const std::string& cookie_line, 61 const std::string& cookie_line,
62 net::CookieOptions* options) OVERRIDE; 62 net::CookieOptions* options) override;
63 63
64 protected: 64 protected:
65 virtual ~SocketStreamDispatcherHost(); 65 virtual ~SocketStreamDispatcherHost();
66 66
67 private: 67 private:
68 // Message handlers called by OnMessageReceived. 68 // Message handlers called by OnMessageReceived.
69 void OnConnect(int render_frame_id, const GURL& url, int socket_id); 69 void OnConnect(int render_frame_id, const GURL& url, int socket_id);
70 void OnSendData(int socket_id, const std::vector<char>& data); 70 void OnSendData(int socket_id, const std::vector<char>& data);
71 void OnCloseReq(int socket_id); 71 void OnCloseReq(int socket_id);
72 72
73 void DeleteSocketStreamHost(int socket_id); 73 void DeleteSocketStreamHost(int socket_id);
74 74
75 net::URLRequestContext* GetURLRequestContext(); 75 net::URLRequestContext* GetURLRequestContext();
76 76
77 IDMap<SocketStreamHost> hosts_; 77 IDMap<SocketStreamHost> hosts_;
78 int render_process_id_; 78 int render_process_id_;
79 GetRequestContextCallback request_context_callback_; 79 GetRequestContextCallback request_context_callback_;
80 ResourceContext* resource_context_; 80 ResourceContext* resource_context_;
81 81
82 bool on_shutdown_; 82 bool on_shutdown_;
83 83
84 DISALLOW_COPY_AND_ASSIGN(SocketStreamDispatcherHost); 84 DISALLOW_COPY_AND_ASSIGN(SocketStreamDispatcherHost);
85 }; 85 };
86 86
87 } // namespace content 87 } // namespace content
88 88
89 #endif // CONTENT_BROWSER_RENDERER_HOST_SOCKET_STREAM_DISPATCHER_HOST_H_ 89 #endif // CONTENT_BROWSER_RENDERER_HOST_SOCKET_STREAM_DISPATCHER_HOST_H_
OLDNEW
« no previous file with comments | « content/browser/renderer_host/sandbox_ipc_linux.h ('k') | content/browser/renderer_host/socket_stream_host.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698