| 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 #ifndef PPAPI_PROXY_PPB_MESSAGE_LOOP_PROXY_H_ | 5 #ifndef PPAPI_PROXY_PPB_MESSAGE_LOOP_PROXY_H_ |
| 6 #define PPAPI_PROXY_PPB_MESSAGE_LOOP_PROXY_H_ | 6 #define PPAPI_PROXY_PPB_MESSAGE_LOOP_PROXY_H_ |
| 7 | 7 |
| 8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
| 9 #include "base/bind.h" | 9 #include "base/bind.h" |
| 10 #include "base/memory/ref_counted.h" | 10 #include "base/memory/ref_counted.h" |
| 11 #include "base/memory/scoped_ptr.h" | 11 #include "base/memory/scoped_ptr.h" |
| 12 #include "base/message_loop.h" | 12 #include "base/message_loop.h" |
| 13 #include "ppapi/proxy/interface_proxy.h" | 13 #include "ppapi/proxy/interface_proxy.h" |
| 14 #include "ppapi/proxy/ppapi_proxy_export.h" |
| 14 #include "ppapi/shared_impl/ppb_message_loop_shared.h" | 15 #include "ppapi/shared_impl/ppb_message_loop_shared.h" |
| 15 #include "ppapi/thunk/ppb_message_loop_api.h" | 16 #include "ppapi/thunk/ppb_message_loop_api.h" |
| 16 | 17 |
| 17 struct PPB_MessageLoop_1_0; | 18 struct PPB_MessageLoop_1_0; |
| 18 | 19 |
| 19 namespace ppapi { | 20 namespace ppapi { |
| 20 namespace proxy { | 21 namespace proxy { |
| 21 | 22 |
| 22 class MessageLoopResource : public MessageLoopShared { | 23 class PPAPI_PROXY_EXPORT MessageLoopResource : public MessageLoopShared { |
| 23 public: | 24 public: |
| 24 explicit MessageLoopResource(PP_Instance instance); | 25 explicit MessageLoopResource(PP_Instance instance); |
| 25 // Construct the one MessageLoopResource for the main thread. This must be | 26 // Construct the one MessageLoopResource for the main thread. This must be |
| 26 // invoked on the main thread. | 27 // invoked on the main thread. |
| 27 explicit MessageLoopResource(ForMainThread); | 28 explicit MessageLoopResource(ForMainThread); |
| 28 virtual ~MessageLoopResource(); | 29 virtual ~MessageLoopResource(); |
| 29 | 30 |
| 30 // Resource overrides. | 31 // Resource overrides. |
| 31 virtual thunk::PPB_MessageLoop_API* AsPPB_MessageLoop_API() OVERRIDE; | 32 virtual thunk::PPB_MessageLoop_API* AsPPB_MessageLoop_API() OVERRIDE; |
| 32 | 33 |
| (...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 101 static const PPB_MessageLoop_1_0* GetInterface(); | 102 static const PPB_MessageLoop_1_0* GetInterface(); |
| 102 | 103 |
| 103 private: | 104 private: |
| 104 DISALLOW_COPY_AND_ASSIGN(PPB_MessageLoop_Proxy); | 105 DISALLOW_COPY_AND_ASSIGN(PPB_MessageLoop_Proxy); |
| 105 }; | 106 }; |
| 106 | 107 |
| 107 } // namespace proxy | 108 } // namespace proxy |
| 108 } // namespace ppapi | 109 } // namespace ppapi |
| 109 | 110 |
| 110 #endif // PPAPI_PROXY_PPB_MESSAGE_LOOP_PROXY_H_ | 111 #endif // PPAPI_PROXY_PPB_MESSAGE_LOOP_PROXY_H_ |
| OLD | NEW |