| OLD | NEW |
| 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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 CHROME_BROWSER_NET_NSS_CONTEXT_H_ | 5 #ifndef CHROME_BROWSER_NET_NSS_CONTEXT_H_ |
| 6 #define CHROME_BROWSER_NET_NSS_CONTEXT_H_ | 6 #define CHROME_BROWSER_NET_NSS_CONTEXT_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/callback.h" | 10 #include "base/callback.h" |
| 11 #include "base/compiler_specific.h" | 11 #include "base/compiler_specific.h" |
| 12 #include "build/build_config.h" |
| 12 #include "crypto/scoped_nss_types.h" | 13 #include "crypto/scoped_nss_types.h" |
| 13 | 14 |
| 14 class Profile; | 15 class Profile; |
| 15 | 16 |
| 16 namespace net { | 17 namespace net { |
| 17 class NSSCertDatabase; | 18 class NSSCertDatabase; |
| 18 } | 19 } |
| 19 | 20 |
| 20 namespace content { | 21 namespace content { |
| 21 class ResourceContext; | 22 class ResourceContext; |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 57 // Gets a pointer to the NSSCertDatabase for the user associated with |context|. | 58 // Gets a pointer to the NSSCertDatabase for the user associated with |context|. |
| 58 // It's a wrapper around |GetNSSCertDatabaseForResourceContext| which makes | 59 // It's a wrapper around |GetNSSCertDatabaseForResourceContext| which makes |
| 59 // sure it's called on IO thread (with |profile|'s resource context). The | 60 // sure it's called on IO thread (with |profile|'s resource context). The |
| 60 // callback will be called on the originating message loop. | 61 // callback will be called on the originating message loop. |
| 61 // It's accessing profile, so it should be called on the UI thread. | 62 // It's accessing profile, so it should be called on the UI thread. |
| 62 void GetNSSCertDatabaseForProfile( | 63 void GetNSSCertDatabaseForProfile( |
| 63 Profile* profile, | 64 Profile* profile, |
| 64 const base::Callback<void(net::NSSCertDatabase*)>& callback); | 65 const base::Callback<void(net::NSSCertDatabase*)>& callback); |
| 65 | 66 |
| 66 #endif // CHROME_BROWSER_NET_NSS_CONTEXT_H_ | 67 #endif // CHROME_BROWSER_NET_NSS_CONTEXT_H_ |
| OLD | NEW |