OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 CONTENT_PPAPI_PLUGIN_PPAPI_THREAD_H_ | 5 #ifndef CONTENT_PPAPI_PLUGIN_PPAPI_THREAD_H_ |
6 #define CONTENT_PPAPI_PLUGIN_PPAPI_THREAD_H_ | 6 #define CONTENT_PPAPI_PLUGIN_PPAPI_THREAD_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include "base/basictypes.h" | 9 #include "base/basictypes.h" |
10 #include "base/memory/scoped_native_library.h" | 10 #include "base/memory/scoped_native_library.h" |
(...skipping 15 matching lines...) Expand all Loading... |
26 public pp::proxy::Dispatcher::Delegate { | 26 public pp::proxy::Dispatcher::Delegate { |
27 public: | 27 public: |
28 explicit PpapiThread(bool is_broker); | 28 explicit PpapiThread(bool is_broker); |
29 ~PpapiThread(); | 29 ~PpapiThread(); |
30 | 30 |
31 private: | 31 private: |
32 // ChildThread overrides. | 32 // ChildThread overrides. |
33 virtual bool OnMessageReceived(const IPC::Message& msg); | 33 virtual bool OnMessageReceived(const IPC::Message& msg); |
34 | 34 |
35 // Dispatcher::Delegate implementation. | 35 // Dispatcher::Delegate implementation. |
36 virtual MessageLoop* GetIPCMessageLoop(); | 36 virtual base::MessageLoopProxy* GetIPCMessageLoop(); |
37 virtual base::WaitableEvent* GetShutdownEvent(); | 37 virtual base::WaitableEvent* GetShutdownEvent(); |
38 virtual std::set<PP_Instance>* GetGloballySeenInstanceIDSet(); | 38 virtual std::set<PP_Instance>* GetGloballySeenInstanceIDSet(); |
39 | 39 |
40 // Message handlers. | 40 // Message handlers. |
41 void OnMsgLoadPlugin(const FilePath& path); | 41 void OnMsgLoadPlugin(const FilePath& path); |
42 void OnMsgCreateChannel(base::ProcessHandle host_process_handle, | 42 void OnMsgCreateChannel(base::ProcessHandle host_process_handle, |
43 int renderer_id); | 43 int renderer_id); |
44 | 44 |
45 // Sets up the channel to the given renderer. On success, returns true and | 45 // Sets up the channel to the given renderer. On success, returns true and |
46 // fills the given ChannelHandle with the information from the new channel. | 46 // fills the given ChannelHandle with the information from the new channel. |
(...skipping 20 matching lines...) Expand all Loading... |
67 // and pass it around as necessary. | 67 // and pass it around as necessary. |
68 PP_Module local_pp_module_; | 68 PP_Module local_pp_module_; |
69 | 69 |
70 // See Dispatcher::Delegate::GetGloballySeenInstanceIDSet. | 70 // See Dispatcher::Delegate::GetGloballySeenInstanceIDSet. |
71 std::set<PP_Instance> globally_seen_instance_ids_; | 71 std::set<PP_Instance> globally_seen_instance_ids_; |
72 | 72 |
73 DISALLOW_IMPLICIT_CONSTRUCTORS(PpapiThread); | 73 DISALLOW_IMPLICIT_CONSTRUCTORS(PpapiThread); |
74 }; | 74 }; |
75 | 75 |
76 #endif // CONTENT_PPAPI_PLUGIN_PPAPI_THREAD_H_ | 76 #endif // CONTENT_PPAPI_PLUGIN_PPAPI_THREAD_H_ |
OLD | NEW |