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

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 323 matching lines...) Expand 10 before | Expand all | Expand 10 after
334 334
335 bool MockPluginDelegate::AddNetworkListObserver( 335 bool MockPluginDelegate::AddNetworkListObserver(
336 webkit_glue::NetworkListObserver* observer) { 336 webkit_glue::NetworkListObserver* observer) {
337 return false; 337 return false;
338 } 338 }
339 339
340 void MockPluginDelegate::RemoveNetworkListObserver( 340 void MockPluginDelegate::RemoveNetworkListObserver(
341 webkit_glue::NetworkListObserver* observer) { 341 webkit_glue::NetworkListObserver* observer) {
342 } 342 }
343 343
344 bool MockPluginDelegate::X509CertificateParseDER(
345 const std::vector<char>& der,
346 ::ppapi::PPB_X509Certificate_Fields* fields) {
347 return true;
yzshen1 2012/03/22 23:32:40 I think the convention is to return failure?
raymes 2012/03/26 16:05:57 oh, whoops. Done.
348 }
349
344 int32_t MockPluginDelegate::ShowContextMenu( 350 int32_t MockPluginDelegate::ShowContextMenu(
345 PluginInstance* instance, 351 PluginInstance* instance,
346 webkit::ppapi::PPB_Flash_Menu_Impl* menu, 352 webkit::ppapi::PPB_Flash_Menu_Impl* menu,
347 const gfx::Point& position) { 353 const gfx::Point& position) {
348 return PP_ERROR_FAILED; 354 return PP_ERROR_FAILED;
349 } 355 }
350 356
351 FullscreenContainer* MockPluginDelegate::CreateFullscreenContainer( 357 FullscreenContainer* MockPluginDelegate::CreateFullscreenContainer(
352 PluginInstance* instance) { 358 PluginInstance* instance) {
353 return NULL; 359 return NULL;
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after
438 return -1; 444 return -1;
439 } 445 }
440 446
441 webkit_glue::ClipboardClient* 447 webkit_glue::ClipboardClient*
442 MockPluginDelegate::CreateClipboardClient() const { 448 MockPluginDelegate::CreateClipboardClient() const {
443 return NULL; 449 return NULL;
444 } 450 }
445 451
446 } // namespace ppapi 452 } // namespace ppapi
447 } // namespace webkit 453 } // namespace webkit
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698