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 <map> | 5 #include <map> |
6 #include <string> | 6 #include <string> |
7 | 7 |
8 #include "base/message_loop.h" | 8 #include "base/message_loop.h" |
9 #include "base/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
10 #include "base/synchronization/waitable_event.h" | 10 #include "base/synchronization/waitable_event.h" |
(...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
119 const IPC::SyncChannel& /* channel */, | 119 const IPC::SyncChannel& /* channel */, |
120 bool should_close_source) OVERRIDE; | 120 bool should_close_source) OVERRIDE; |
121 | 121 |
122 // PluginDispatcher::PluginDelegate implementation. | 122 // PluginDispatcher::PluginDelegate implementation. |
123 virtual std::set<PP_Instance>* GetGloballySeenInstanceIDSet() OVERRIDE; | 123 virtual std::set<PP_Instance>* GetGloballySeenInstanceIDSet() OVERRIDE; |
124 virtual uint32 Register(PluginDispatcher* plugin_dispatcher) OVERRIDE; | 124 virtual uint32 Register(PluginDispatcher* plugin_dispatcher) OVERRIDE; |
125 virtual void Unregister(uint32 plugin_dispatcher_id) OVERRIDE; | 125 virtual void Unregister(uint32 plugin_dispatcher_id) OVERRIDE; |
126 | 126 |
127 // PluginPepperDelegate implementation. | 127 // PluginPepperDelegate implementation. |
128 virtual bool SendToBrowser(IPC::Message* msg) OVERRIDE; | 128 virtual bool SendToBrowser(IPC::Message* msg) OVERRIDE; |
| 129 virtual std::string GetUILanguage() OVERRIDE; |
129 virtual void PreCacheFont(const void* logfontw) OVERRIDE; | 130 virtual void PreCacheFont(const void* logfontw) OVERRIDE; |
130 | 131 |
131 private: | 132 private: |
132 base::MessageLoopProxy* ipc_message_loop_; // Weak | 133 base::MessageLoopProxy* ipc_message_loop_; // Weak |
133 base::WaitableEvent* shutdown_event_; // Weak | 134 base::WaitableEvent* shutdown_event_; // Weak |
134 std::set<PP_Instance> instance_id_set_; | 135 std::set<PP_Instance> instance_id_set_; |
135 | 136 |
136 DISALLOW_COPY_AND_ASSIGN(PluginDelegateMock); | 137 DISALLOW_COPY_AND_ASSIGN(PluginDelegateMock); |
137 }; | 138 }; |
138 | 139 |
(...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
264 // stopping the harnesses. | 265 // stopping the harnesses. |
265 ProxyTestHarnessBase* remote_harness_; | 266 ProxyTestHarnessBase* remote_harness_; |
266 ProxyTestHarnessBase* local_harness_; | 267 ProxyTestHarnessBase* local_harness_; |
267 | 268 |
268 base::WaitableEvent channel_created_; | 269 base::WaitableEvent channel_created_; |
269 base::WaitableEvent shutdown_event_; | 270 base::WaitableEvent shutdown_event_; |
270 }; | 271 }; |
271 | 272 |
272 } // namespace proxy | 273 } // namespace proxy |
273 } // namespace ppapi | 274 } // namespace ppapi |
OLD | NEW |