OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 #include "net/http/transport_security_persister.h" | 5 #include "net/http/transport_security_persister.h" |
6 | 6 |
7 #include <memory> | 7 #include <memory> |
8 #include <utility> | 8 #include <utility> |
9 | 9 |
10 #include "base/base64.h" | 10 #include "base/base64.h" |
11 #include "base/bind.h" | 11 #include "base/bind.h" |
12 #include "base/files/file_path.h" | 12 #include "base/files/file_path.h" |
13 #include "base/files/file_util.h" | 13 #include "base/files/file_util.h" |
14 #include "base/json/json_reader.h" | 14 #include "base/json/json_reader.h" |
15 #include "base/json/json_writer.h" | 15 #include "base/json/json_writer.h" |
16 #include "base/location.h" | 16 #include "base/location.h" |
17 #include "base/sequenced_task_runner.h" | 17 #include "base/sequenced_task_runner.h" |
18 #include "base/task_runner_util.h" | 18 #include "base/task_runner_util.h" |
19 #include "base/thread_task_runner_handle.h" | 19 #include "base/threading/thread_task_runner_handle.h" |
20 #include "base/values.h" | 20 #include "base/values.h" |
21 #include "crypto/sha2.h" | 21 #include "crypto/sha2.h" |
22 #include "net/cert/x509_certificate.h" | 22 #include "net/cert/x509_certificate.h" |
23 #include "net/http/transport_security_state.h" | 23 #include "net/http/transport_security_state.h" |
24 | 24 |
25 namespace net { | 25 namespace net { |
26 | 26 |
27 namespace { | 27 namespace { |
28 | 28 |
29 base::ListValue* SPKIHashesToListValue(const HashValueVector& hashes) { | 29 base::ListValue* SPKIHashesToListValue(const HashValueVector& hashes) { |
(...skipping 347 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
377 bool dirty = false; | 377 bool dirty = false; |
378 if (!LoadEntries(state, &dirty)) { | 378 if (!LoadEntries(state, &dirty)) { |
379 LOG(ERROR) << "Failed to deserialize state: " << state; | 379 LOG(ERROR) << "Failed to deserialize state: " << state; |
380 return; | 380 return; |
381 } | 381 } |
382 if (dirty) | 382 if (dirty) |
383 StateIsDirty(transport_security_state_); | 383 StateIsDirty(transport_security_state_); |
384 } | 384 } |
385 | 385 |
386 } // namespace net | 386 } // namespace net |
OLD | NEW |