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

Side by Side Diff: chrome/browser/extensions/api/platform_keys/verify_trust_api.cc

Issue 2333923004: Extracting NetLog inner classes into their own classes. (Closed)
Patch Set: Some nit fixes and better, impl-agnostic naming of net_log_parameters_callback_typedef.h -> net/log… Created 4 years, 2 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 #include "chrome/browser/extensions/api/platform_keys/verify_trust_api.h" 5 #include "chrome/browser/extensions/api/platform_keys/verify_trust_api.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 8
9 #include "base/lazy_instance.h" 9 #include "base/lazy_instance.h"
10 #include "base/macros.h" 10 #include "base/macros.h"
11 #include "base/memory/linked_ptr.h" 11 #include "base/memory/linked_ptr.h"
12 #include "base/memory/ref_counted.h" 12 #include "base/memory/ref_counted.h"
13 #include "chrome/browser/extensions/api/platform_keys/platform_keys_api.h" 13 #include "chrome/browser/extensions/api/platform_keys/platform_keys_api.h"
14 #include "chrome/common/extensions/api/platform_keys_internal.h" 14 #include "chrome/common/extensions/api/platform_keys_internal.h"
15 #include "extensions/browser/extension_registry_factory.h" 15 #include "extensions/browser/extension_registry_factory.h"
16 #include "net/base/net_errors.h" 16 #include "net/base/net_errors.h"
17 #include "net/cert/cert_verifier.h" 17 #include "net/cert/cert_verifier.h"
18 #include "net/cert/cert_verify_result.h" 18 #include "net/cert/cert_verify_result.h"
19 #include "net/cert/x509_certificate.h" 19 #include "net/cert/x509_certificate.h"
20 #include "net/log/net_log.h" 20 #include "net/log/net_log_with_source.h"
21 #include "net/ssl/ssl_config_service.h" 21 #include "net/ssl/ssl_config_service.h"
22 22
23 namespace extensions { 23 namespace extensions {
24 24
25 namespace { 25 namespace {
26 26
27 base::LazyInstance<BrowserContextKeyedAPIFactory<VerifyTrustAPI>>::Leaky 27 base::LazyInstance<BrowserContextKeyedAPIFactory<VerifyTrustAPI>>::Leaky
28 g_factory = LAZY_INSTANCE_INITIALIZER; 28 g_factory = LAZY_INSTANCE_INITIALIZER;
29 29
30 const char kErrorEmptyCertificateChain[] = 30 const char kErrorEmptyCertificateChain[] =
(...skipping 187 matching lines...) Expand 10 before | Expand all | Expand 10 after
218 std::unique_ptr<net::CertVerifyResult> verify_result, 218 std::unique_ptr<net::CertVerifyResult> verify_result,
219 RequestState* request_state, 219 RequestState* request_state,
220 int return_value) { 220 int return_value) {
221 DCHECK_CURRENTLY_ON(content::BrowserThread::IO); 221 DCHECK_CURRENTLY_ON(content::BrowserThread::IO);
222 222
223 callback.Run(std::string() /* no error message */, return_value, 223 callback.Run(std::string() /* no error message */, return_value,
224 verify_result->cert_status); 224 verify_result->cert_status);
225 } 225 }
226 226
227 } // namespace extensions 227 } // namespace extensions
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698