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

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 128 matching lines...) Expand 10 before | Expand all | Expand 10 after
149 virtual void HostResolverResolve( 150 virtual void HostResolverResolve(
150 uint32 host_resolver_id, 151 uint32 host_resolver_id,
151 const ::ppapi::HostPortPair& host_port, 152 const ::ppapi::HostPortPair& host_port,
152 const PP_HostResolver_Private_Hint* hint); 153 const PP_HostResolver_Private_Hint* hint);
153 virtual void UnregisterHostResolver(uint32 host_resolver_id); 154 virtual void UnregisterHostResolver(uint32 host_resolver_id);
154 // Add/remove a network list observer. 155 // Add/remove a network list observer.
155 virtual bool AddNetworkListObserver( 156 virtual bool AddNetworkListObserver(
156 webkit_glue::NetworkListObserver* observer) OVERRIDE; 157 webkit_glue::NetworkListObserver* observer) OVERRIDE;
157 virtual void RemoveNetworkListObserver( 158 virtual void RemoveNetworkListObserver(
158 webkit_glue::NetworkListObserver* observer) OVERRIDE; 159 webkit_glue::NetworkListObserver* observer) OVERRIDE;
160 virtual bool X509CertificateParseDER(
161 const std::vector<char>& der,
162 ::ppapi::PPB_X509Certificate_Fields* fields);
163
159 virtual int32_t ShowContextMenu( 164 virtual int32_t ShowContextMenu(
160 PluginInstance* instance, 165 PluginInstance* instance,
161 webkit::ppapi::PPB_Flash_Menu_Impl* menu, 166 webkit::ppapi::PPB_Flash_Menu_Impl* menu,
162 const gfx::Point& position); 167 const gfx::Point& position);
163 virtual FullscreenContainer* CreateFullscreenContainer( 168 virtual FullscreenContainer* CreateFullscreenContainer(
164 PluginInstance* instance); 169 PluginInstance* instance);
165 virtual gfx::Size GetScreenSize(); 170 virtual gfx::Size GetScreenSize();
166 virtual std::string GetDefaultEncoding(); 171 virtual std::string GetDefaultEncoding();
167 virtual void ZoomLimitsChanged(double minimum_factor, 172 virtual void ZoomLimitsChanged(double minimum_factor,
168 double maximum_factor); 173 double maximum_factor);
(...skipping 18 matching lines...) Expand all
187 virtual bool IsPageVisible() const; 192 virtual bool IsPageVisible() const;
188 virtual int EnumerateDevices(PP_DeviceType_Dev type, 193 virtual int EnumerateDevices(PP_DeviceType_Dev type,
189 const EnumerateDevicesCallback& callback); 194 const EnumerateDevicesCallback& callback);
190 virtual webkit_glue::ClipboardClient* CreateClipboardClient() const; 195 virtual webkit_glue::ClipboardClient* CreateClipboardClient() const;
191 }; 196 };
192 197
193 } // namespace ppapi 198 } // namespace ppapi
194 } // namespace webkit 199 } // namespace webkit
195 200
196 #endif // WEBKIT_PLUGINS_PPAPI_MOCK_PLUGIN_DELEGATE_H_ 201 #endif // WEBKIT_PLUGINS_PPAPI_MOCK_PLUGIN_DELEGATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698