OLD | NEW |
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/ppb_flash_message_loop_proxy.h" | 5 #include "ppapi/proxy/ppb_flash_message_loop_proxy.h" |
6 | 6 |
7 #include "base/bind.h" | 7 #include "base/bind.h" |
8 #include "ppapi/c/pp_errors.h" | 8 #include "ppapi/c/pp_errors.h" |
9 #include "ppapi/c/private/ppb_flash_message_loop.h" | 9 #include "ppapi/c/private/ppb_flash_message_loop.h" |
10 #include "ppapi/proxy/enter_proxy.h" | 10 #include "ppapi/proxy/enter_proxy.h" |
(...skipping 22 matching lines...) Expand all Loading... |
33 virtual int32_t Run() OVERRIDE; | 33 virtual int32_t Run() OVERRIDE; |
34 virtual void Quit() OVERRIDE; | 34 virtual void Quit() OVERRIDE; |
35 virtual void RunFromHostProxy( | 35 virtual void RunFromHostProxy( |
36 const RunFromHostProxyCallback& callback) OVERRIDE; | 36 const RunFromHostProxyCallback& callback) OVERRIDE; |
37 | 37 |
38 private: | 38 private: |
39 DISALLOW_COPY_AND_ASSIGN(FlashMessageLoop); | 39 DISALLOW_COPY_AND_ASSIGN(FlashMessageLoop); |
40 }; | 40 }; |
41 | 41 |
42 FlashMessageLoop::FlashMessageLoop(const HostResource& resource) | 42 FlashMessageLoop::FlashMessageLoop(const HostResource& resource) |
43 : Resource(resource) { | 43 : Resource(OBJECT_IS_PROXY, resource) { |
44 } | 44 } |
45 | 45 |
46 FlashMessageLoop::~FlashMessageLoop() { | 46 FlashMessageLoop::~FlashMessageLoop() { |
47 } | 47 } |
48 | 48 |
49 PPB_Flash_MessageLoop_API* FlashMessageLoop::AsPPB_Flash_MessageLoop_API() { | 49 PPB_Flash_MessageLoop_API* FlashMessageLoop::AsPPB_Flash_MessageLoop_API() { |
50 return this; | 50 return this; |
51 } | 51 } |
52 | 52 |
53 int32_t FlashMessageLoop::Run() { | 53 int32_t FlashMessageLoop::Run() { |
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
148 void PPB_Flash_MessageLoop_Proxy::WillQuitSoon( | 148 void PPB_Flash_MessageLoop_Proxy::WillQuitSoon( |
149 scoped_ptr<IPC::Message> reply_message, | 149 scoped_ptr<IPC::Message> reply_message, |
150 int32_t result) { | 150 int32_t result) { |
151 PpapiHostMsg_PPBFlashMessageLoop_Run::WriteReplyParams(reply_message.get(), | 151 PpapiHostMsg_PPBFlashMessageLoop_Run::WriteReplyParams(reply_message.get(), |
152 result); | 152 result); |
153 Send(reply_message.release()); | 153 Send(reply_message.release()); |
154 } | 154 } |
155 | 155 |
156 } // namespace proxy | 156 } // namespace proxy |
157 } // namespace ppapi | 157 } // namespace ppapi |
OLD | NEW |