Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(329)

Side by Side Diff: ppapi/proxy/ppapi_proxy_test.h

Issue 10815073: Refactoring of new IPC-only pepper implementation (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « ppapi/proxy/plugin_resource.cc ('k') | ppapi/proxy/ppapi_proxy_test.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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 IPC::Sender* GetBrowserSender() OVERRIDE;
129 virtual std::string GetUILanguage() OVERRIDE; 130 virtual std::string GetUILanguage() OVERRIDE;
130 virtual void PreCacheFont(const void* logfontw) OVERRIDE; 131 virtual void PreCacheFont(const void* logfontw) OVERRIDE;
131 virtual void SetActiveURL(const std::string& url) OVERRIDE; 132 virtual void SetActiveURL(const std::string& url) OVERRIDE;
132 133
133 private: 134 private:
134 base::MessageLoopProxy* ipc_message_loop_; // Weak 135 base::MessageLoopProxy* ipc_message_loop_; // Weak
135 base::WaitableEvent* shutdown_event_; // Weak 136 base::WaitableEvent* shutdown_event_; // Weak
136 std::set<PP_Instance> instance_id_set_; 137 std::set<PP_Instance> instance_id_set_;
137 138
138 DISALLOW_COPY_AND_ASSIGN(PluginDelegateMock); 139 DISALLOW_COPY_AND_ASSIGN(PluginDelegateMock);
(...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after
277 // EXPECT_VAR_IS_STRING("foo", my_var); 278 // EXPECT_VAR_IS_STRING("foo", my_var);
278 #define EXPECT_VAR_IS_STRING(str, var) { \ 279 #define EXPECT_VAR_IS_STRING(str, var) { \
279 StringVar* sv = StringVar::FromPPVar(var); \ 280 StringVar* sv = StringVar::FromPPVar(var); \
280 EXPECT_TRUE(sv); \ 281 EXPECT_TRUE(sv); \
281 if (sv) \ 282 if (sv) \
282 EXPECT_EQ(str, sv->value()); \ 283 EXPECT_EQ(str, sv->value()); \
283 } 284 }
284 285
285 } // namespace proxy 286 } // namespace proxy
286 } // namespace ppapi 287 } // namespace ppapi
OLDNEW
« no previous file with comments | « ppapi/proxy/plugin_resource.cc ('k') | ppapi/proxy/ppapi_proxy_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698