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

Side by Side Diff: content/public/browser/resource_context.h

Issue 384413004: Remove default key slot from KeygenHandler. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixed compilation, addressed suggestions. Created 6 years, 5 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 | Annotate | Revision Log
OLDNEW
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 #ifndef CONTENT_PUBLIC_BROWSER_RESOURCE_CONTEXT_H_ 5 #ifndef CONTENT_PUBLIC_BROWSER_RESOURCE_CONTEXT_H_
6 #define CONTENT_PUBLIC_BROWSER_RESOURCE_CONTEXT_H_ 6 #define CONTENT_PUBLIC_BROWSER_RESOURCE_CONTEXT_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
47 47
48 // Get platform ClientCertStore. May return NULL. 48 // Get platform ClientCertStore. May return NULL.
49 virtual scoped_ptr<net::ClientCertStore> CreateClientCertStore(); 49 virtual scoped_ptr<net::ClientCertStore> CreateClientCertStore();
50 50
51 // Create a platform KeygenHandler and pass it to |callback|. The |callback| 51 // Create a platform KeygenHandler and pass it to |callback|. The |callback|
52 // may be run synchronously. 52 // may be run synchronously.
53 virtual void CreateKeygenHandler( 53 virtual void CreateKeygenHandler(
54 uint32 key_size_in_bits, 54 uint32 key_size_in_bits,
55 const std::string& challenge_string, 55 const std::string& challenge_string,
56 const GURL& url, 56 const GURL& url,
57 const base::Callback<void(scoped_ptr<net::KeygenHandler>)>& callback); 57 const base::Callback<void(scoped_ptr<net::KeygenHandler>)>& callback) = 0;
58 58
59 // Returns true if microphone access is allowed for |origin|. Used to 59 // Returns true if microphone access is allowed for |origin|. Used to
60 // determine what level of authorization is given to |origin| to access 60 // determine what level of authorization is given to |origin| to access
61 // resource metadata. 61 // resource metadata.
62 virtual bool AllowMicAccess(const GURL& origin) = 0; 62 virtual bool AllowMicAccess(const GURL& origin) = 0;
63 63
64 // Returns true if web camera access is allowed for |origin|. Used to 64 // Returns true if web camera access is allowed for |origin|. Used to
65 // determine what level of authorization is given to |origin| to access 65 // determine what level of authorization is given to |origin| to access
66 // resource metadata. 66 // resource metadata.
67 virtual bool AllowCameraAccess(const GURL& origin) = 0; 67 virtual bool AllowCameraAccess(const GURL& origin) = 0;
(...skipping 19 matching lines...) Expand all
87 // 87 //
88 // TODO(perkj): Make this method pure virtual when crbug/315022 is 88 // TODO(perkj): Make this method pure virtual when crbug/315022 is
89 // fixed. 89 // fixed.
90 typedef base::Callback<std::string()> SaltCallback; 90 typedef base::Callback<std::string()> SaltCallback;
91 virtual SaltCallback GetMediaDeviceIDSalt(); 91 virtual SaltCallback GetMediaDeviceIDSalt();
92 }; 92 };
93 93
94 } // namespace content 94 } // namespace content
95 95
96 #endif // CONTENT_PUBLIC_BROWSER_RESOURCE_CONTEXT_H_ 96 #endif // CONTENT_PUBLIC_BROWSER_RESOURCE_CONTEXT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698