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

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

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 #include "webkit/plugins/ppapi/mock_plugin_delegate.h" 5 #include "webkit/plugins/ppapi/mock_plugin_delegate.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "base/message_loop_proxy.h" 8 #include "base/message_loop_proxy.h"
9 #include "ppapi/c/pp_errors.h" 9 #include "ppapi/c/pp_errors.h"
10 #include "ppapi/shared_impl/ppapi_preferences.h" 10 #include "ppapi/shared_impl/ppapi_preferences.h"
(...skipping 305 matching lines...) Expand 10 before | Expand all | Expand 10 after
316 316
317 bool MockPluginDelegate::AddNetworkListObserver( 317 bool MockPluginDelegate::AddNetworkListObserver(
318 webkit_glue::NetworkListObserver* observer) { 318 webkit_glue::NetworkListObserver* observer) {
319 return false; 319 return false;
320 } 320 }
321 321
322 void MockPluginDelegate::RemoveNetworkListObserver( 322 void MockPluginDelegate::RemoveNetworkListObserver(
323 webkit_glue::NetworkListObserver* observer) { 323 webkit_glue::NetworkListObserver* observer) {
324 } 324 }
325 325
326 bool MockPluginDelegate::X509CertificateParseDER(
327 const std::vector<char>& der,
328 ::ppapi::PPB_X509Certificate_Fields* fields) {
329 return true;
330 }
331
326 int32_t MockPluginDelegate::ShowContextMenu( 332 int32_t MockPluginDelegate::ShowContextMenu(
327 PluginInstance* instance, 333 PluginInstance* instance,
328 webkit::ppapi::PPB_Flash_Menu_Impl* menu, 334 webkit::ppapi::PPB_Flash_Menu_Impl* menu,
329 const gfx::Point& position) { 335 const gfx::Point& position) {
330 return PP_ERROR_FAILED; 336 return PP_ERROR_FAILED;
331 } 337 }
332 338
333 FullscreenContainer* MockPluginDelegate::CreateFullscreenContainer( 339 FullscreenContainer* MockPluginDelegate::CreateFullscreenContainer(
334 PluginInstance* instance) { 340 PluginInstance* instance) {
335 return NULL; 341 return NULL;
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after
420 return -1; 426 return -1;
421 } 427 }
422 428
423 webkit_glue::ClipboardClient* 429 webkit_glue::ClipboardClient*
424 MockPluginDelegate::CreateClipboardClient() const { 430 MockPluginDelegate::CreateClipboardClient() const {
425 return NULL; 431 return NULL;
426 } 432 }
427 433
428 } // namespace ppapi 434 } // namespace ppapi
429 } // namespace webkit 435 } // namespace webkit
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698