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

Side by Side Diff: webkit/plugins/ppapi/mock_plugin_delegate.h

Issue 9693024: Add the PPAPI X509 Certificate interface and implementation. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 8 years, 9 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 #ifndef WEBKIT_PLUGINS_PPAPI_MOCK_PLUGIN_DELEGATE_H_ 5 #ifndef WEBKIT_PLUGINS_PPAPI_MOCK_PLUGIN_DELEGATE_H_
6 #define WEBKIT_PLUGINS_PPAPI_MOCK_PLUGIN_DELEGATE_H_ 6 #define WEBKIT_PLUGINS_PPAPI_MOCK_PLUGIN_DELEGATE_H_
7 7
8 #include "webkit/plugins/ppapi/plugin_delegate.h" 8 #include "webkit/plugins/ppapi/plugin_delegate.h"
9 9
10 struct PP_NetAddress_Private; 10 struct PP_NetAddress_Private;
11 namespace ppapi { class PPB_X509Certificate_Fields; }
11 namespace webkit_glue { class ClipboardClient; } 12 namespace webkit_glue { class ClipboardClient; }
12 13
13 namespace webkit { 14 namespace webkit {
14 namespace ppapi { 15 namespace ppapi {
15 16
16 class MockPluginDelegate : public PluginDelegate { 17 class MockPluginDelegate : public PluginDelegate {
17 public: 18 public:
18 MockPluginDelegate(); 19 MockPluginDelegate();
19 virtual ~MockPluginDelegate(); 20 virtual ~MockPluginDelegate();
20 21
(...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after
148 virtual void HostResolverResolve( 149 virtual void HostResolverResolve(
149 uint32 host_resolver_id, 150 uint32 host_resolver_id,
150 const ::ppapi::HostPortPair& host_port, 151 const ::ppapi::HostPortPair& host_port,
151 const PP_HostResolver_Private_Hint* hint); 152 const PP_HostResolver_Private_Hint* hint);
152 virtual void UnregisterHostResolver(uint32 host_resolver_id); 153 virtual void UnregisterHostResolver(uint32 host_resolver_id);
153 // Add/remove a network list observer. 154 // Add/remove a network list observer.
154 virtual bool AddNetworkListObserver( 155 virtual bool AddNetworkListObserver(
155 webkit_glue::NetworkListObserver* observer) OVERRIDE; 156 webkit_glue::NetworkListObserver* observer) OVERRIDE;
156 virtual void RemoveNetworkListObserver( 157 virtual void RemoveNetworkListObserver(
157 webkit_glue::NetworkListObserver* observer) OVERRIDE; 158 webkit_glue::NetworkListObserver* observer) OVERRIDE;
159 virtual bool X509CertificateParseDER(
160 const std::vector<char>& der,
161 ::ppapi::PPB_X509Certificate_Fields* fields);
162
158 virtual int32_t ShowContextMenu( 163 virtual int32_t ShowContextMenu(
159 PluginInstance* instance, 164 PluginInstance* instance,
160 webkit::ppapi::PPB_Flash_Menu_Impl* menu, 165 webkit::ppapi::PPB_Flash_Menu_Impl* menu,
161 const gfx::Point& position); 166 const gfx::Point& position);
162 virtual FullscreenContainer* CreateFullscreenContainer( 167 virtual FullscreenContainer* CreateFullscreenContainer(
163 PluginInstance* instance); 168 PluginInstance* instance);
164 virtual gfx::Size GetScreenSize(); 169 virtual gfx::Size GetScreenSize();
165 virtual std::string GetDefaultEncoding(); 170 virtual std::string GetDefaultEncoding();
166 virtual void ZoomLimitsChanged(double minimum_factor, 171 virtual void ZoomLimitsChanged(double minimum_factor,
167 double maximum_factor); 172 double maximum_factor);
(...skipping 18 matching lines...) Expand all
186 virtual bool IsPageVisible() const; 191 virtual bool IsPageVisible() const;
187 virtual int EnumerateDevices(PP_DeviceType_Dev type, 192 virtual int EnumerateDevices(PP_DeviceType_Dev type,
188 const EnumerateDevicesCallback& callback); 193 const EnumerateDevicesCallback& callback);
189 virtual webkit_glue::ClipboardClient* CreateClipboardClient() const; 194 virtual webkit_glue::ClipboardClient* CreateClipboardClient() const;
190 }; 195 };
191 196
192 } // namespace ppapi 197 } // namespace ppapi
193 } // namespace webkit 198 } // namespace webkit
194 199
195 #endif // WEBKIT_PLUGINS_PPAPI_MOCK_PLUGIN_DELEGATE_H_ 200 #endif // WEBKIT_PLUGINS_PPAPI_MOCK_PLUGIN_DELEGATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698