| 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 <stdint.h> |
| 6 |
| 5 #include <map> | 7 #include <map> |
| 6 #include <string> | 8 #include <string> |
| 7 | 9 |
| 8 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
| 11 #include "base/macros.h" |
| 9 #include "base/memory/ref_counted.h" | 12 #include "base/memory/ref_counted.h" |
| 10 #include "base/memory/scoped_ptr.h" | 13 #include "base/memory/scoped_ptr.h" |
| 11 #include "base/synchronization/waitable_event.h" | 14 #include "base/synchronization/waitable_event.h" |
| 12 #include "base/task_runner.h" | 15 #include "base/task_runner.h" |
| 13 #include "base/threading/simple_thread.h" | 16 #include "base/threading/simple_thread.h" |
| 14 #include "base/threading/thread.h" | 17 #include "base/threading/thread.h" |
| 15 #include "ppapi/c/pp_instance.h" | 18 #include "ppapi/c/pp_instance.h" |
| 16 #include "ppapi/proxy/host_dispatcher.h" | 19 #include "ppapi/proxy/host_dispatcher.h" |
| 17 #include "ppapi/proxy/plugin_dispatcher.h" | 20 #include "ppapi/proxy/plugin_dispatcher.h" |
| 18 #include "ppapi/proxy/plugin_globals.h" | 21 #include "ppapi/proxy/plugin_globals.h" |
| (...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 139 IPC::PlatformFileForTransit ShareHandleWithRemote( | 142 IPC::PlatformFileForTransit ShareHandleWithRemote( |
| 140 base::PlatformFile handle, | 143 base::PlatformFile handle, |
| 141 base::ProcessId remote_pid, | 144 base::ProcessId remote_pid, |
| 142 bool should_close_source) override; | 145 bool should_close_source) override; |
| 143 base::SharedMemoryHandle ShareSharedMemoryHandleWithRemote( | 146 base::SharedMemoryHandle ShareSharedMemoryHandleWithRemote( |
| 144 const base::SharedMemoryHandle& handle, | 147 const base::SharedMemoryHandle& handle, |
| 145 base::ProcessId remote_pid) override; | 148 base::ProcessId remote_pid) override; |
| 146 | 149 |
| 147 // PluginDispatcher::PluginDelegate implementation. | 150 // PluginDispatcher::PluginDelegate implementation. |
| 148 std::set<PP_Instance>* GetGloballySeenInstanceIDSet() override; | 151 std::set<PP_Instance>* GetGloballySeenInstanceIDSet() override; |
| 149 uint32 Register(PluginDispatcher* plugin_dispatcher) override; | 152 uint32_t Register(PluginDispatcher* plugin_dispatcher) override; |
| 150 void Unregister(uint32 plugin_dispatcher_id) override; | 153 void Unregister(uint32_t plugin_dispatcher_id) override; |
| 151 | 154 |
| 152 // PluginProxyDelegate implementation. | 155 // PluginProxyDelegate implementation. |
| 153 IPC::Sender* GetBrowserSender() override; | 156 IPC::Sender* GetBrowserSender() override; |
| 154 std::string GetUILanguage() override; | 157 std::string GetUILanguage() override; |
| 155 void PreCacheFontForFlash(const void* logfontw) override; | 158 void PreCacheFontForFlash(const void* logfontw) override; |
| 156 void SetActiveURL(const std::string& url) override; | 159 void SetActiveURL(const std::string& url) override; |
| 157 PP_Resource CreateBrowserFont( | 160 PP_Resource CreateBrowserFont( |
| 158 Connection connection, | 161 Connection connection, |
| 159 PP_Instance instance, | 162 PP_Instance instance, |
| 160 const PP_BrowserFont_Trusted_Description& desc, | 163 const PP_BrowserFont_Trusted_Description& desc, |
| (...skipping 211 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 372 // EXPECT_VAR_IS_STRING("foo", my_var); | 375 // EXPECT_VAR_IS_STRING("foo", my_var); |
| 373 #define EXPECT_VAR_IS_STRING(str, var) { \ | 376 #define EXPECT_VAR_IS_STRING(str, var) { \ |
| 374 StringVar* sv = StringVar::FromPPVar(var); \ | 377 StringVar* sv = StringVar::FromPPVar(var); \ |
| 375 EXPECT_TRUE(sv); \ | 378 EXPECT_TRUE(sv); \ |
| 376 if (sv) \ | 379 if (sv) \ |
| 377 EXPECT_EQ(str, sv->value()); \ | 380 EXPECT_EQ(str, sv->value()); \ |
| 378 } | 381 } |
| 379 | 382 |
| 380 } // namespace proxy | 383 } // namespace proxy |
| 381 } // namespace ppapi | 384 } // namespace ppapi |
| OLD | NEW |