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

Unified Diff: content/public/browser/resource_context.h

Issue 42773002: Get ClientCertStore through ResourceContext. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: changes for comments #4 and #5 Created 7 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 side-by-side diff with in-line comments
Download patch
Index: content/public/browser/resource_context.h
diff --git a/content/public/browser/resource_context.h b/content/public/browser/resource_context.h
index 191f30ac13bfe71b1d65053b73199c436b47c808..770be42bd682712108f239832ad5c1920679fdd1 100644
--- a/content/public/browser/resource_context.h
+++ b/content/public/browser/resource_context.h
@@ -6,6 +6,7 @@
#define CONTENT_PUBLIC_BROWSER_RESOURCE_CONTEXT_H_
#include "base/basictypes.h"
+#include "base/memory/scoped_ptr.h"
#include "base/supports_user_data.h"
#include "build/build_config.h"
#include "content/common/content_export.h"
@@ -17,6 +18,7 @@ class AppCacheService;
}
namespace net {
+class ClientCertStore;
class HostResolver;
class URLRequestContext;
}
@@ -41,6 +43,9 @@ class CONTENT_EXPORT ResourceContext : public base::SupportsUserData {
// with a BrowsingContext.
virtual net::URLRequestContext* GetRequestContext() = 0;
+ // Get platform ClientCertStore. May return NULL.
+ virtual scoped_ptr<net::ClientCertStore> GetClientCertStore();
wtc 2013/10/28 19:41:12 It is strange to see this method returns a scoped_
mattm 2013/10/28 23:56:16 Should be addressed by the name change.
+
// Returns true if microphone access is allowed for |origin|. Used to
// determine what level of authorization is given to |origin| to access
// resource metadata.

Powered by Google App Engine
This is Rietveld 408576698