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

Side by Side Diff: components/cert_database/public/chromeos/cert_database_service_io_part_chromeos.h

Issue 419013003: Replace c/b/nss_context by a KeyedService. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Separated out ClientCertStoreChromeOS change. Created 6 years, 1 month 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
(Empty)
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 #ifndef COMPONENTS_CERT_DATABASE_PUBLIC_CHROMEOS_CERT_DATABASE_SERVICE_IO_PART_C HROMEOS_H_
6 #define COMPONENTS_CERT_DATABASE_PUBLIC_CHROMEOS_CERT_DATABASE_SERVICE_IO_PART_C HROMEOS_H_
7
8 #include <string>
9
10 #include "base/files/file_path.h"
11 #include "base/macros.h"
12 #include "base/memory/ref_counted.h"
13 #include "base/sequenced_task_runner.h"
14 #include "components/cert_database/public/cert_database_service_io_part.h"
15
16 namespace chromeos {
17 class CryptohomeClient;
18 }
19
20 namespace cert_database {
21
22 class CertDatabaseServiceIOPartChromeOS : public CertDatabaseServiceIOPart {
23 public:
24 typedef base::Callback<void(bool system_tpm_token_enabled)>
25 SystemTPMTokenReadyCallback;
26
27 CertDatabaseServiceIOPartChromeOS(
28 const std::string& user_email,
29 const std::string& username_hash,
30 bool use_system_key_slot,
31 const base::FilePath& path,
32 const scoped_refptr<base::SequencedTaskRunner>& dbus_task_runner,
33 chromeos::CryptohomeClient* cryptohome_client);
34
35 ~CertDatabaseServiceIOPartChromeOS() override;
36
37 void Init() override;
38
39 // Returns a callback that must be called at most once to signal that the
40 // system TPM token is ready (disabled or enabled).
41 // This function may only be called before Init(). However, the callback must
42 // be called after Init() on the IO thread.
mattm 2014/10/30 03:37:48 confusing wording, maybe "the callback must be cal
pneubeck (no reviews) 2014/11/05 14:53:37 Done.
43 SystemTPMTokenReadyCallback GetSystemTPMTokenReadyCallback();
44
45 protected:
46 void DidCreateNSSCertDatabase(scoped_ptr<net::NSSCertDatabase> db);
47
48 private:
49 class Internal;
50 scoped_ptr<Internal> internal_;
51
52 DISALLOW_COPY_AND_ASSIGN(CertDatabaseServiceIOPartChromeOS);
53 };
54
55 } // namespace cert_database
56
57 #endif // COMPONENTS_CERT_DATABASE_PUBLIC_CHROMEOS_CERT_DATABASE_SERVICE_IO_PAR T_CHROMEOS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698