| Index: components/cert_database/public/chromeos/cert_database_service_io_part_chromeos.h
|
| diff --git a/components/cert_database/public/chromeos/cert_database_service_io_part_chromeos.h b/components/cert_database/public/chromeos/cert_database_service_io_part_chromeos.h
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..f2b1383e291e82f48bd44784b995c128d813ea66
|
| --- /dev/null
|
| +++ b/components/cert_database/public/chromeos/cert_database_service_io_part_chromeos.h
|
| @@ -0,0 +1,57 @@
|
| +// Copyright 2014 The Chromium Authors. All rights reserved.
|
| +// Use of this source code is governed by a BSD-style license that can be
|
| +// found in the LICENSE file.
|
| +
|
| +#ifndef COMPONENTS_CERT_DATABASE_PUBLIC_CHROMEOS_CERT_DATABASE_SERVICE_IO_PART_CHROMEOS_H_
|
| +#define COMPONENTS_CERT_DATABASE_PUBLIC_CHROMEOS_CERT_DATABASE_SERVICE_IO_PART_CHROMEOS_H_
|
| +
|
| +#include <string>
|
| +
|
| +#include "base/files/file_path.h"
|
| +#include "base/macros.h"
|
| +#include "base/memory/ref_counted.h"
|
| +#include "base/sequenced_task_runner.h"
|
| +#include "components/cert_database/public/cert_database_service_io_part.h"
|
| +
|
| +namespace chromeos {
|
| +class CryptohomeClient;
|
| +}
|
| +
|
| +namespace cert_database {
|
| +
|
| +class CertDatabaseServiceIOPartChromeOS : public CertDatabaseServiceIOPart {
|
| + public:
|
| + typedef base::Callback<void(bool system_tpm_token_enabled)>
|
| + SystemTPMTokenReadyCallback;
|
| +
|
| + CertDatabaseServiceIOPartChromeOS(
|
| + const std::string& user_email,
|
| + const std::string& username_hash,
|
| + bool use_system_key_slot,
|
| + const base::FilePath& path,
|
| + const scoped_refptr<base::SequencedTaskRunner>& dbus_task_runner,
|
| + chromeos::CryptohomeClient* cryptohome_client);
|
| +
|
| + ~CertDatabaseServiceIOPartChromeOS() override;
|
| +
|
| + void Init() override;
|
| +
|
| + // Returns a callback that must be called at most once to signal that the
|
| + // system TPM token is ready (disabled or enabled).
|
| + // This function may only be called before Init(). However, the callback must
|
| + // be called after Init() on the IO thread.
|
| + SystemTPMTokenReadyCallback GetSystemTPMTokenReadyCallback();
|
| +
|
| + protected:
|
| + void DidCreateNSSCertDatabase(scoped_ptr<net::NSSCertDatabase> db);
|
| +
|
| + private:
|
| + class Internal;
|
| + scoped_ptr<Internal> internal_;
|
| +
|
| + DISALLOW_COPY_AND_ASSIGN(CertDatabaseServiceIOPartChromeOS);
|
| +};
|
| +
|
| +} // namespace cert_database
|
| +
|
| +#endif // COMPONENTS_CERT_DATABASE_PUBLIC_CHROMEOS_CERT_DATABASE_SERVICE_IO_PART_CHROMEOS_H_
|
|
|