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

Side by Side Diff: components/ownership/owner_key_util.h

Issue 2511973004: components: Cleanup class/struct fwd declarations (Closed)
Patch Set: Rebase on top of current master branch Created 4 years 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
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 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 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 #ifndef COMPONENTS_OWNERSHIP_OWNER_KEY_UTIL_H_ 5 #ifndef COMPONENTS_OWNERSHIP_OWNER_KEY_UTIL_H_
6 #define COMPONENTS_OWNERSHIP_OWNER_KEY_UTIL_H_ 6 #define COMPONENTS_OWNERSHIP_OWNER_KEY_UTIL_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <string> 10 #include <string>
11 #include <vector> 11 #include <vector>
12 12
13 #include "base/macros.h" 13 #include "base/macros.h"
14 #include "base/memory/ref_counted.h" 14 #include "base/memory/ref_counted.h"
15 #include "components/ownership/ownership_export.h" 15 #include "components/ownership/ownership_export.h"
16 #include "crypto/scoped_nss_types.h" 16 #include "crypto/scoped_nss_types.h"
17 17
18 struct PK11SlotInfoStr; 18 struct PK11SlotInfoStr;
19 typedef struct PK11SlotInfoStr PK11SlotInfo; 19 typedef struct PK11SlotInfoStr PK11SlotInfo;
20 20
21 namespace ownership { 21 namespace ownership {
22 22
23 class OwnerKeyUtilTest;
24
25 // This class is a ref-counted wrapper around a plain public key. 23 // This class is a ref-counted wrapper around a plain public key.
26 class OWNERSHIP_EXPORT PublicKey 24 class OWNERSHIP_EXPORT PublicKey
27 : public base::RefCountedThreadSafe<PublicKey> { 25 : public base::RefCountedThreadSafe<PublicKey> {
28 public: 26 public:
29 PublicKey(); 27 PublicKey();
30 28
31 std::vector<uint8_t>& data() { return data_; } 29 std::vector<uint8_t>& data() { return data_; }
32 30
33 bool is_loaded() const { return !data_.empty(); } 31 bool is_loaded() const { return !data_.empty(); }
34 32
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
88 protected: 86 protected:
89 virtual ~OwnerKeyUtil() {} 87 virtual ~OwnerKeyUtil() {}
90 88
91 private: 89 private:
92 friend class base::RefCountedThreadSafe<OwnerKeyUtil>; 90 friend class base::RefCountedThreadSafe<OwnerKeyUtil>;
93 }; 91 };
94 92
95 } // namespace ownership 93 } // namespace ownership
96 94
97 #endif // COMPONENTS_OWNERSHIP_OWNER_KEY_UTIL_H_ 95 #endif // COMPONENTS_OWNERSHIP_OWNER_KEY_UTIL_H_
OLDNEW
« no previous file with comments | « components/omnibox/browser/zero_suggest_provider.h ('k') | components/packed_ct_ev_whitelist/packed_ct_ev_whitelist.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698