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

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

Issue 20214004: move BrowserFontResource_Trusted to content/child (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: android enable_plugins Created 7 years, 5 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
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/compiler_specific.h" 8 #include "base/compiler_specific.h"
9 #include "base/memory/ref_counted.h" 9 #include "base/memory/ref_counted.h"
10 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
(...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after
141 // PluginDispatcher::PluginDelegate implementation. 141 // PluginDispatcher::PluginDelegate implementation.
142 virtual std::set<PP_Instance>* GetGloballySeenInstanceIDSet() OVERRIDE; 142 virtual std::set<PP_Instance>* GetGloballySeenInstanceIDSet() OVERRIDE;
143 virtual uint32 Register(PluginDispatcher* plugin_dispatcher) OVERRIDE; 143 virtual uint32 Register(PluginDispatcher* plugin_dispatcher) OVERRIDE;
144 virtual void Unregister(uint32 plugin_dispatcher_id) OVERRIDE; 144 virtual void Unregister(uint32 plugin_dispatcher_id) OVERRIDE;
145 145
146 // PluginProxyDelegate implementation. 146 // PluginProxyDelegate implementation.
147 virtual IPC::Sender* GetBrowserSender() OVERRIDE; 147 virtual IPC::Sender* GetBrowserSender() OVERRIDE;
148 virtual std::string GetUILanguage() OVERRIDE; 148 virtual std::string GetUILanguage() OVERRIDE;
149 virtual void PreCacheFont(const void* logfontw) OVERRIDE; 149 virtual void PreCacheFont(const void* logfontw) OVERRIDE;
150 virtual void SetActiveURL(const std::string& url) OVERRIDE; 150 virtual void SetActiveURL(const std::string& url) OVERRIDE;
151 virtual PP_Resource CreateBrowserFont(
152 Connection connection,
153 PP_Instance instance,
154 const PP_BrowserFont_Trusted_Description& desc,
155 const ppapi::Preferences& prefs) OVERRIDE;
yzshen1 2013/07/25 17:21:08 nit: ppapi:: is not needed.
scottmg 2013/07/25 17:39:49 Done.
151 156
152 private: 157 private:
153 base::MessageLoopProxy* ipc_message_loop_; // Weak 158 base::MessageLoopProxy* ipc_message_loop_; // Weak
154 base::WaitableEvent* shutdown_event_; // Weak 159 base::WaitableEvent* shutdown_event_; // Weak
155 std::set<PP_Instance> instance_id_set_; 160 std::set<PP_Instance> instance_id_set_;
156 IPC::Sender* browser_sender_; 161 IPC::Sender* browser_sender_;
157 162
158 DISALLOW_COPY_AND_ASSIGN(PluginDelegateMock); 163 DISALLOW_COPY_AND_ASSIGN(PluginDelegateMock);
159 }; 164 };
160 165
(...skipping 197 matching lines...) Expand 10 before | Expand all | Expand 10 after
358 // EXPECT_VAR_IS_STRING("foo", my_var); 363 // EXPECT_VAR_IS_STRING("foo", my_var);
359 #define EXPECT_VAR_IS_STRING(str, var) { \ 364 #define EXPECT_VAR_IS_STRING(str, var) { \
360 StringVar* sv = StringVar::FromPPVar(var); \ 365 StringVar* sv = StringVar::FromPPVar(var); \
361 EXPECT_TRUE(sv); \ 366 EXPECT_TRUE(sv); \
362 if (sv) \ 367 if (sv) \
363 EXPECT_EQ(str, sv->value()); \ 368 EXPECT_EQ(str, sv->value()); \
364 } 369 }
365 370
366 } // namespace proxy 371 } // namespace proxy
367 } // namespace ppapi 372 } // namespace ppapi
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698