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

Side by Side Diff: content/browser/plugin_process_host.h

Issue 637183002: Replace FINAL and OVERRIDE with their C++11 counterparts in content (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
« no previous file with comments | « content/browser/plugin_loader_posix_unittest.cc ('k') | content/browser/plugin_process_host.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_PLUGIN_PROCESS_HOST_H_ 5 #ifndef CONTENT_BROWSER_PLUGIN_PROCESS_HOST_H_
6 #define CONTENT_BROWSER_PLUGIN_PROCESS_HOST_H_ 6 #define CONTENT_BROWSER_PLUGIN_PROCESS_HOST_H_
7 7
8 #include "build/build_config.h" 8 #include "build/build_config.h"
9 9
10 #include <list> 10 #include <list>
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
71 virtual void OnError() = 0; 71 virtual void OnError() = 0;
72 72
73 protected: 73 protected:
74 virtual ~Client() {} 74 virtual ~Client() {}
75 }; 75 };
76 76
77 PluginProcessHost(); 77 PluginProcessHost();
78 virtual ~PluginProcessHost(); 78 virtual ~PluginProcessHost();
79 79
80 // IPC::Sender implementation: 80 // IPC::Sender implementation:
81 virtual bool Send(IPC::Message* message) OVERRIDE; 81 virtual bool Send(IPC::Message* message) override;
82 82
83 // Initialize the new plugin process, returning true on success. This must 83 // Initialize the new plugin process, returning true on success. This must
84 // be called before the object can be used. 84 // be called before the object can be used.
85 bool Init(const WebPluginInfo& info); 85 bool Init(const WebPluginInfo& info);
86 86
87 // Force the plugin process to shutdown (cleanly). 87 // Force the plugin process to shutdown (cleanly).
88 void ForceShutdown(); 88 void ForceShutdown();
89 89
90 virtual bool OnMessageReceived(const IPC::Message& msg) OVERRIDE; 90 virtual bool OnMessageReceived(const IPC::Message& msg) override;
91 virtual void OnChannelConnected(int32 peer_pid) OVERRIDE; 91 virtual void OnChannelConnected(int32 peer_pid) override;
92 virtual void OnChannelError() OVERRIDE; 92 virtual void OnChannelError() override;
93 93
94 // Tells the plugin process to create a new channel for communication with a 94 // Tells the plugin process to create a new channel for communication with a
95 // renderer. When the plugin process responds with the channel name, 95 // renderer. When the plugin process responds with the channel name,
96 // OnChannelOpened in the client is called. 96 // OnChannelOpened in the client is called.
97 void OpenChannelToPlugin(Client* client); 97 void OpenChannelToPlugin(Client* client);
98 98
99 // This function is called to cancel pending requests to open new channels. 99 // This function is called to cancel pending requests to open new channels.
100 void CancelPendingRequest(Client* client); 100 void CancelPendingRequest(Client* client);
101 101
102 // This function is called to cancel sent requests to open new channels. 102 // This function is called to cancel sent requests to open new channels.
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
140 void OnPluginWindowDestroyed(HWND window, HWND parent); 140 void OnPluginWindowDestroyed(HWND window, HWND parent);
141 #endif 141 #endif
142 142
143 #if defined(OS_MACOSX) 143 #if defined(OS_MACOSX)
144 void OnPluginShowWindow(uint32 window_id, gfx::Rect window_rect, 144 void OnPluginShowWindow(uint32 window_id, gfx::Rect window_rect,
145 bool modal); 145 bool modal);
146 void OnPluginHideWindow(uint32 window_id, gfx::Rect window_rect); 146 void OnPluginHideWindow(uint32 window_id, gfx::Rect window_rect);
147 void OnPluginSetCursorVisibility(bool visible); 147 void OnPluginSetCursorVisibility(bool visible);
148 #endif 148 #endif
149 149
150 virtual bool CanShutdown() OVERRIDE; 150 virtual bool CanShutdown() override;
151 virtual void OnProcessCrashed(int exit_code) OVERRIDE; 151 virtual void OnProcessCrashed(int exit_code) override;
152 152
153 void CancelRequests(); 153 void CancelRequests();
154 154
155 // Callback for ResourceMessageFilter. 155 // Callback for ResourceMessageFilter.
156 void GetContexts(const ResourceHostMsg_Request& request, 156 void GetContexts(const ResourceHostMsg_Request& request,
157 ResourceContext** resource_context, 157 ResourceContext** resource_context,
158 net::URLRequestContext** request_context); 158 net::URLRequestContext** request_context);
159 159
160 // These are channel requests that we are waiting to send to the 160 // These are channel requests that we are waiting to send to the
161 // plugin process once the channel is opened. 161 // plugin process once the channel is opened.
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
206 : public BrowserChildProcessHostTypeIterator<PluginProcessHost> { 206 : public BrowserChildProcessHostTypeIterator<PluginProcessHost> {
207 public: 207 public:
208 PluginProcessHostIterator() 208 PluginProcessHostIterator()
209 : BrowserChildProcessHostTypeIterator<PluginProcessHost>( 209 : BrowserChildProcessHostTypeIterator<PluginProcessHost>(
210 PROCESS_TYPE_PLUGIN) {} 210 PROCESS_TYPE_PLUGIN) {}
211 }; 211 };
212 212
213 } // namespace content 213 } // namespace content
214 214
215 #endif // CONTENT_BROWSER_PLUGIN_PROCESS_HOST_H_ 215 #endif // CONTENT_BROWSER_PLUGIN_PROCESS_HOST_H_
OLDNEW
« no previous file with comments | « content/browser/plugin_loader_posix_unittest.cc ('k') | content/browser/plugin_process_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698