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

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 322 matching lines...) Expand 10 before | Expand all | Expand 10 after
333 333
334 bool MockPluginDelegate::AddNetworkListObserver( 334 bool MockPluginDelegate::AddNetworkListObserver(
335 webkit_glue::NetworkListObserver* observer) { 335 webkit_glue::NetworkListObserver* observer) {
336 return false; 336 return false;
337 } 337 }
338 338
339 void MockPluginDelegate::RemoveNetworkListObserver( 339 void MockPluginDelegate::RemoveNetworkListObserver(
340 webkit_glue::NetworkListObserver* observer) { 340 webkit_glue::NetworkListObserver* observer) {
341 } 341 }
342 342
343 bool MockPluginDelegate::X509CertificateParseDER(
344 const std::vector<char>& der,
345 ::ppapi::PPB_X509Certificate_Fields* fields) {
346 return true;
347 }
348
343 int32_t MockPluginDelegate::ShowContextMenu( 349 int32_t MockPluginDelegate::ShowContextMenu(
344 PluginInstance* instance, 350 PluginInstance* instance,
345 webkit::ppapi::PPB_Flash_Menu_Impl* menu, 351 webkit::ppapi::PPB_Flash_Menu_Impl* menu,
346 const gfx::Point& position) { 352 const gfx::Point& position) {
347 return PP_ERROR_FAILED; 353 return PP_ERROR_FAILED;
348 } 354 }
349 355
350 FullscreenContainer* MockPluginDelegate::CreateFullscreenContainer( 356 FullscreenContainer* MockPluginDelegate::CreateFullscreenContainer(
351 PluginInstance* instance) { 357 PluginInstance* instance) {
352 return NULL; 358 return NULL;
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after
437 return -1; 443 return -1;
438 } 444 }
439 445
440 webkit_glue::ClipboardClient* 446 webkit_glue::ClipboardClient*
441 MockPluginDelegate::CreateClipboardClient() const { 447 MockPluginDelegate::CreateClipboardClient() const {
442 return NULL; 448 return NULL;
443 } 449 }
444 450
445 } // namespace ppapi 451 } // namespace ppapi
446 } // namespace webkit 452 } // namespace webkit
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698