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

Side by Side Diff: ppapi/proxy/plugin_globals.cc

Issue 631733002: Replacing the OVERRIDE with override and FINAL with final in ppapi (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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 #include "ppapi/proxy/plugin_globals.h" 5 #include "ppapi/proxy/plugin_globals.h"
6 6
7 #include "base/task_runner.h" 7 #include "base/task_runner.h"
8 #include "base/threading/thread.h" 8 #include "base/threading/thread.h"
9 #include "ipc/ipc_message.h" 9 #include "ipc/ipc_message.h"
10 #include "ipc/ipc_sender.h" 10 #include "ipc/ipc_sender.h"
(...skipping 14 matching lines...) Expand all
25 class PluginGlobals::BrowserSender : public IPC::Sender { 25 class PluginGlobals::BrowserSender : public IPC::Sender {
26 public: 26 public:
27 // |underlying_sender| must outlive this object. 27 // |underlying_sender| must outlive this object.
28 explicit BrowserSender(IPC::Sender* underlying_sender) 28 explicit BrowserSender(IPC::Sender* underlying_sender)
29 : underlying_sender_(underlying_sender) { 29 : underlying_sender_(underlying_sender) {
30 } 30 }
31 31
32 virtual ~BrowserSender() {} 32 virtual ~BrowserSender() {}
33 33
34 // IPC::Sender implementation. 34 // IPC::Sender implementation.
35 virtual bool Send(IPC::Message* msg) OVERRIDE { 35 virtual bool Send(IPC::Message* msg) override {
36 if (msg->is_sync()) { 36 if (msg->is_sync()) {
37 // Synchronous messages might be re-entrant, so we need to drop the lock. 37 // Synchronous messages might be re-entrant, so we need to drop the lock.
38 ProxyAutoUnlock unlock; 38 ProxyAutoUnlock unlock;
39 return underlying_sender_->Send(msg); 39 return underlying_sender_->Send(msg);
40 } 40 }
41 41
42 return underlying_sender_->Send(msg); 42 return underlying_sender_->Send(msg);
43 } 43 }
44 44
45 private: 45 private:
(...skipping 198 matching lines...) Expand 10 before | Expand all | Expand 10 after
244 return true; 244 return true;
245 } 245 }
246 246
247 void PluginGlobals::OnReleaseKeepaliveThrottle() { 247 void PluginGlobals::OnReleaseKeepaliveThrottle() {
248 ppapi::ProxyLock::AssertAcquiredDebugOnly(); 248 ppapi::ProxyLock::AssertAcquiredDebugOnly();
249 plugin_recently_active_ = false; 249 plugin_recently_active_ = false;
250 } 250 }
251 251
252 } // namespace proxy 252 } // namespace proxy
253 } // namespace ppapi 253 } // namespace ppapi
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698