| 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 111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 122 base::PlatformFile handle, | 122 base::PlatformFile handle, |
| 123 const IPC::SyncChannel& /* channel */, | 123 const IPC::SyncChannel& /* channel */, |
| 124 bool should_close_source) OVERRIDE; | 124 bool should_close_source) OVERRIDE; |
| 125 | 125 |
| 126 // PluginDispatcher::PluginDelegate implementation. | 126 // PluginDispatcher::PluginDelegate implementation. |
| 127 virtual std::set<PP_Instance>* GetGloballySeenInstanceIDSet() OVERRIDE; | 127 virtual std::set<PP_Instance>* GetGloballySeenInstanceIDSet() OVERRIDE; |
| 128 virtual uint32 Register(PluginDispatcher* plugin_dispatcher) OVERRIDE; | 128 virtual uint32 Register(PluginDispatcher* plugin_dispatcher) OVERRIDE; |
| 129 virtual void Unregister(uint32 plugin_dispatcher_id) OVERRIDE; | 129 virtual void Unregister(uint32 plugin_dispatcher_id) OVERRIDE; |
| 130 | 130 |
| 131 // PluginProxyDelegate implementation. | 131 // PluginProxyDelegate implementation. |
| 132 virtual bool SendToBrowser(IPC::Message* msg) OVERRIDE; | |
| 133 virtual IPC::Sender* GetBrowserSender() OVERRIDE; | 132 virtual IPC::Sender* GetBrowserSender() OVERRIDE; |
| 134 virtual std::string GetUILanguage() OVERRIDE; | 133 virtual std::string GetUILanguage() OVERRIDE; |
| 135 virtual void PreCacheFont(const void* logfontw) OVERRIDE; | 134 virtual void PreCacheFont(const void* logfontw) OVERRIDE; |
| 136 virtual void SetActiveURL(const std::string& url) OVERRIDE; | 135 virtual void SetActiveURL(const std::string& url) OVERRIDE; |
| 137 | 136 |
| 138 private: | 137 private: |
| 139 base::MessageLoopProxy* ipc_message_loop_; // Weak | 138 base::MessageLoopProxy* ipc_message_loop_; // Weak |
| 140 base::WaitableEvent* shutdown_event_; // Weak | 139 base::WaitableEvent* shutdown_event_; // Weak |
| 141 std::set<PP_Instance> instance_id_set_; | 140 std::set<PP_Instance> instance_id_set_; |
| 142 IPC::Sender* browser_sender_; | 141 IPC::Sender* browser_sender_; |
| (...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 289 // EXPECT_VAR_IS_STRING("foo", my_var); | 288 // EXPECT_VAR_IS_STRING("foo", my_var); |
| 290 #define EXPECT_VAR_IS_STRING(str, var) { \ | 289 #define EXPECT_VAR_IS_STRING(str, var) { \ |
| 291 StringVar* sv = StringVar::FromPPVar(var); \ | 290 StringVar* sv = StringVar::FromPPVar(var); \ |
| 292 EXPECT_TRUE(sv); \ | 291 EXPECT_TRUE(sv); \ |
| 293 if (sv) \ | 292 if (sv) \ |
| 294 EXPECT_EQ(str, sv->value()); \ | 293 EXPECT_EQ(str, sv->value()); \ |
| 295 } | 294 } |
| 296 | 295 |
| 297 } // namespace proxy | 296 } // namespace proxy |
| 298 } // namespace ppapi | 297 } // namespace ppapi |
| OLD | NEW |