OLD | NEW |
---|---|
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 "base/basictypes.h" | 8 #include "base/basictypes.h" |
9 #include "base/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
10 #include "base/supports_user_data.h" | 10 #include "base/supports_user_data.h" |
(...skipping 26 matching lines...) Expand all Loading... | |
37 virtual ~ResourceContext(); | 37 virtual ~ResourceContext(); |
38 #endif | 38 #endif |
39 virtual net::HostResolver* GetHostResolver() = 0; | 39 virtual net::HostResolver* GetHostResolver() = 0; |
40 | 40 |
41 // DEPRECATED: This is no longer a valid given isolated apps/sites and | 41 // DEPRECATED: This is no longer a valid given isolated apps/sites and |
42 // storage partitioning. This getter returns the default context associated | 42 // storage partitioning. This getter returns the default context associated |
43 // with a BrowsingContext. | 43 // with a BrowsingContext. |
44 virtual net::URLRequestContext* GetRequestContext() = 0; | 44 virtual net::URLRequestContext* GetRequestContext() = 0; |
45 | 45 |
46 // Get platform ClientCertStore. May return NULL. | 46 // Get platform ClientCertStore. May return NULL. |
47 virtual scoped_ptr<net::ClientCertStore> CreateClientCertStore(); | 47 virtual scoped_ptr<net::ClientCertStore> CreateClientCertStore( |
48 const std::string& host_and_port); | |
Ryan Sleevi
2013/11/25 06:24:34
I'm really not a fan of threading the host name up
mattm
2013/11/26 01:15:21
Yeah, I agree that it wasn't the cleanest approach
| |
48 | 49 |
49 // Returns true if microphone access is allowed for |origin|. Used to | 50 // Returns true if microphone access is allowed for |origin|. Used to |
50 // determine what level of authorization is given to |origin| to access | 51 // determine what level of authorization is given to |origin| to access |
51 // resource metadata. | 52 // resource metadata. |
52 virtual bool AllowMicAccess(const GURL& origin) = 0; | 53 virtual bool AllowMicAccess(const GURL& origin) = 0; |
53 | 54 |
54 // Returns true if web camera access is allowed for |origin|. Used to | 55 // Returns true if web camera access is allowed for |origin|. Used to |
55 // determine what level of authorization is given to |origin| to access | 56 // determine what level of authorization is given to |origin| to access |
56 // resource metadata. | 57 // resource metadata. |
57 virtual bool AllowCameraAccess(const GURL& origin) = 0; | 58 virtual bool AllowCameraAccess(const GURL& origin) = 0; |
58 }; | 59 }; |
59 | 60 |
60 } // namespace content | 61 } // namespace content |
61 | 62 |
62 #endif // CONTENT_PUBLIC_BROWSER_RESOURCE_CONTEXT_H_ | 63 #endif // CONTENT_PUBLIC_BROWSER_RESOURCE_CONTEXT_H_ |
OLD | NEW |