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/shared_impl/ppb_message_loop_shared.h" | 14 #include "ppapi/shared_impl/ppb_message_loop_shared.h" |
15 #include "ppapi/thunk/ppb_message_loop_api.h" | 15 #include "ppapi/thunk/ppb_message_loop_api.h" |
16 | 16 |
17 struct PPB_MessageLoop_Dev_0_1; | 17 struct PPB_MessageLoop_1_0; |
18 | 18 |
19 namespace ppapi { | 19 namespace ppapi { |
20 namespace proxy { | 20 namespace proxy { |
21 | 21 |
22 class MessageLoopResource : public MessageLoopShared { | 22 class MessageLoopResource : public MessageLoopShared { |
23 public: | 23 public: |
24 explicit MessageLoopResource(PP_Instance instance); | 24 explicit MessageLoopResource(PP_Instance instance); |
25 // Construct the one MessageLoopResource for the main thread. This must be | 25 // Construct the one MessageLoopResource for the main thread. This must be |
26 // invoked on the main thread. | 26 // invoked on the main thread. |
27 explicit MessageLoopResource(ForMainThread); | 27 explicit MessageLoopResource(ForMainThread); |
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
91 std::vector<TaskInfo> pending_tasks_; | 91 std::vector<TaskInfo> pending_tasks_; |
92 | 92 |
93 DISALLOW_COPY_AND_ASSIGN(MessageLoopResource); | 93 DISALLOW_COPY_AND_ASSIGN(MessageLoopResource); |
94 }; | 94 }; |
95 | 95 |
96 class PPB_MessageLoop_Proxy : public InterfaceProxy { | 96 class PPB_MessageLoop_Proxy : public InterfaceProxy { |
97 public: | 97 public: |
98 explicit PPB_MessageLoop_Proxy(Dispatcher* dispatcher); | 98 explicit PPB_MessageLoop_Proxy(Dispatcher* dispatcher); |
99 virtual ~PPB_MessageLoop_Proxy(); | 99 virtual ~PPB_MessageLoop_Proxy(); |
100 | 100 |
101 static const PPB_MessageLoop_Dev_0_1* GetInterface(); | 101 static const PPB_MessageLoop_1_0* GetInterface(); |
102 | 102 |
103 private: | 103 private: |
104 DISALLOW_COPY_AND_ASSIGN(PPB_MessageLoop_Proxy); | 104 DISALLOW_COPY_AND_ASSIGN(PPB_MessageLoop_Proxy); |
105 }; | 105 }; |
106 | 106 |
107 } // namespace proxy | 107 } // namespace proxy |
108 } // namespace ppapi | 108 } // namespace ppapi |
109 | 109 |
110 #endif // PPAPI_PROXY_PPB_MESSAGE_LOOP_PROXY_H_ | 110 #endif // PPAPI_PROXY_PPB_MESSAGE_LOOP_PROXY_H_ |
OLD | NEW |