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

Side by Side Diff: third_party/WebKit/Source/platform/loader/fetch/IntegrityMetadata.h

Issue 2920663002: Class/struct layout optimization for blink Resource related classes (Closed)
Patch Set: Rebase Created 3 years, 6 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
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 IntegrityMetadata_h 5 #ifndef IntegrityMetadata_h
6 #define IntegrityMetadata_h 6 #define IntegrityMetadata_h
7 7
8 #include "platform/Crypto.h" 8 #include "platform/Crypto.h"
9 #include "platform/PlatformExport.h" 9 #include "platform/PlatformExport.h"
10 #include "platform/wtf/HashSet.h" 10 #include "platform/wtf/HashSet.h"
(...skipping 22 matching lines...) Expand all
33 IntegrityMetadataPair ToPair() const; 33 IntegrityMetadataPair ToPair() const;
34 34
35 static bool SetsEqual(const IntegrityMetadataSet& set1, 35 static bool SetsEqual(const IntegrityMetadataSet& set1,
36 const IntegrityMetadataSet& set2); 36 const IntegrityMetadataSet& set2);
37 37
38 private: 38 private:
39 WTF::String digest_; 39 WTF::String digest_;
40 HashAlgorithm algorithm_; 40 HashAlgorithm algorithm_;
41 }; 41 };
42 42
43 enum class ResourceIntegrityDisposition { kNotChecked = 0, kFailed, kPassed }; 43 enum class ResourceIntegrityDisposition : uint8_t {
44 kNotChecked = 0,
45 kFailed,
46 kPassed
47 };
44 48
45 } // namespace blink 49 } // namespace blink
46 50
47 #endif 51 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698