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

Side by Side Diff: chrome/browser/net/nss_context.h

Issue 53763003: Initialize per-ChromeOS-user NSS slots and provide the functions to access them. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: linux build fix Created 7 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | chrome/browser/net/nss_context.cc » ('j') | chrome/browser/net/nss_context.cc » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef CHROME_BROWSER_NET_NSS_CONTEXT_H_
6 #define CHROME_BROWSER_NET_NSS_CONTEXT_H_
7
8 #include <string>
9
10 #include "base/callback.h"
11 #include "base/compiler_specific.h"
12 #include "crypto/scoped_nss_types.h"
13
14 namespace content {
15 class ResourceContext;
16 } // namespace content
17
18 // Returns a reference to the public slot for the user associated with
19 // |context|. Should be called only on the IO thread.
20 crypto::ScopedPK11Slot GetPublicNSSKeySlotForResourceContext(
21 content::ResourceContext* context) WARN_UNUSED_RESULT;
Ryan Sleevi 2013/12/04 20:59:55 Why W_U_R on these? What's the bad effect you're t
mattm 2013/12/04 22:09:28 Guess I got overzealous, since there's not really
22
23 // Returns a reference to the private slot for the user associated with
24 // |context|, if it is loaded. If it is not loaded and |callback| is non-null,
25 // the |callback| will be run once the slot is loaded.
26 // Should be called only on the IO thread.
27 crypto::ScopedPK11Slot GetPrivateNSSKeySlotForResourceContext(
28 content::ResourceContext* context,
29 const base::Callback<void(crypto::ScopedPK11Slot)>& callback)
30 WARN_UNUSED_RESULT;
31
32 #endif // CHROME_BROWSER_NET_NSS_CONTEXT_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/net/nss_context.cc » ('j') | chrome/browser/net/nss_context.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698