1// Copyright 2014 The Chromium Authors. All rights reserved. 2// Use of this source code is governed by a BSD-style license that can be 3// found in the LICENSE file. 4 5#include "chrome/browser/extensions/api/easy_unlock_private/easy_unlock_private_crypto_delegate.h" 6 7namespace extensions { 8namespace api { 9 10namespace { 11 12// Stub EasyUnlockPrivateCryptoDelegate implementation. 13class EasyUnlockPrivateCryptoDelegateStub 14 : public extensions::api::EasyUnlockPrivateCryptoDelegate { 15 public: 16 EasyUnlockPrivateCryptoDelegateStub() {} 17 18 virtual ~EasyUnlockPrivateCryptoDelegateStub() {} 19 20 virtual void GenerateEcP256KeyPair(const KeyPairCallback& callback) OVERRIDE { 21 callback.Run("", ""); 22 } 23 24 virtual void PerformECDHKeyAgreement( 25 const easy_unlock_private::PerformECDHKeyAgreement::Params& params, 26 const DataCallback& callback) OVERRIDE { 27 callback.Run(""); 28 } 29 30 virtual void CreateSecureMessage( 31 const easy_unlock_private::CreateSecureMessage::Params& params, 32 const DataCallback& callback) OVERRIDE { 33 callback.Run(""); 34 } 35 36 virtual void UnwrapSecureMessage( 37 const easy_unlock_private::UnwrapSecureMessage::Params& params, 38 const DataCallback& callback) OVERRIDE { 39 callback.Run(""); 40 } 41 42 private: 43 DISALLOW_COPY_AND_ASSIGN(EasyUnlockPrivateCryptoDelegateStub); 44}; 45 46} // namespace 47 48// static 49scoped_ptr<EasyUnlockPrivateCryptoDelegate> 50 EasyUnlockPrivateCryptoDelegate::Create() { 51 return scoped_ptr<EasyUnlockPrivateCryptoDelegate>( 52 new EasyUnlockPrivateCryptoDelegateStub()); 53} 54 55} // namespace api 56} // namespace extensions 57