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

Side by Side Diff: ppapi/proxy/ppb_flash_message_loop_proxy.h

Issue 1097393007: Update {virtual,override} to follow C++11 style in ppapi. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Split off one file into separate review. Created 5 years, 8 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 | « ppapi/proxy/ppb_buffer_proxy.h ('k') | ppapi/proxy/ppb_flash_message_loop_proxy.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 PPAPI_PPB_FLASH_MESSAGE_LOOP_PROXY_H_ 5 #ifndef PPAPI_PPB_FLASH_MESSAGE_LOOP_PROXY_H_
6 #define PPAPI_PPB_FLASH_MESSAGE_LOOP_PROXY_H_ 6 #define PPAPI_PPB_FLASH_MESSAGE_LOOP_PROXY_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/compiler_specific.h" 9 #include "base/compiler_specific.h"
10 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
(...skipping 10 matching lines...) Expand all
21 21
22 class HostResource; 22 class HostResource;
23 23
24 namespace proxy { 24 namespace proxy {
25 25
26 class PPB_Flash_MessageLoop_Proxy 26 class PPB_Flash_MessageLoop_Proxy
27 : public InterfaceProxy, 27 : public InterfaceProxy,
28 public base::SupportsWeakPtr<PPB_Flash_MessageLoop_Proxy> { 28 public base::SupportsWeakPtr<PPB_Flash_MessageLoop_Proxy> {
29 public: 29 public:
30 explicit PPB_Flash_MessageLoop_Proxy(Dispatcher* dispatcher); 30 explicit PPB_Flash_MessageLoop_Proxy(Dispatcher* dispatcher);
31 virtual ~PPB_Flash_MessageLoop_Proxy(); 31 ~PPB_Flash_MessageLoop_Proxy() override;
32 32
33 static PP_Resource CreateProxyResource(PP_Instance instance); 33 static PP_Resource CreateProxyResource(PP_Instance instance);
34 34
35 // InterfaceProxy implementation. 35 // InterfaceProxy implementation.
36 virtual bool OnMessageReceived(const IPC::Message& msg) override; 36 bool OnMessageReceived(const IPC::Message& msg) override;
37 37
38 static const ApiID kApiID = API_ID_PPB_FLASH_MESSAGELOOP; 38 static const ApiID kApiID = API_ID_PPB_FLASH_MESSAGELOOP;
39 39
40 private: 40 private:
41 void OnMsgCreate(PP_Instance instance, ppapi::HostResource* resource); 41 void OnMsgCreate(PP_Instance instance, ppapi::HostResource* resource);
42 void OnMsgRun(const ppapi::HostResource& flash_message_loop, 42 void OnMsgRun(const ppapi::HostResource& flash_message_loop,
43 IPC::Message* reply); 43 IPC::Message* reply);
44 void OnMsgQuit(const ppapi::HostResource& flash_message_loop); 44 void OnMsgQuit(const ppapi::HostResource& flash_message_loop);
45 45
46 void WillQuitSoon(scoped_ptr<IPC::Message> reply_message, int32_t result); 46 void WillQuitSoon(scoped_ptr<IPC::Message> reply_message, int32_t result);
47 47
48 DISALLOW_COPY_AND_ASSIGN(PPB_Flash_MessageLoop_Proxy); 48 DISALLOW_COPY_AND_ASSIGN(PPB_Flash_MessageLoop_Proxy);
49 }; 49 };
50 50
51 } // namespace proxy 51 } // namespace proxy
52 } // namespace ppapi 52 } // namespace ppapi
53 53
54 #endif // PPAPI_PPB_FLASH_MESSAGE_LOOP_PROXY_H_ 54 #endif // PPAPI_PPB_FLASH_MESSAGE_LOOP_PROXY_H_
OLDNEW
« no previous file with comments | « ppapi/proxy/ppb_buffer_proxy.h ('k') | ppapi/proxy/ppb_flash_message_loop_proxy.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698