Index: chromecast/service/cast_service.h |
diff --git a/chromecast/service/cast_service.h b/chromecast/service/cast_service.h |
index 606f8f7c87b6d89850fe6efccf72adfa223afeea..9514b5262c1de3f70c8dbd76fc3483e2fadcb53e 100644 |
--- a/chromecast/service/cast_service.h |
+++ b/chromecast/service/cast_service.h |
@@ -16,11 +16,23 @@ namespace content{ |
class BrowserContext; |
} |
+namespace net { |
+class URLRequestContextGetter; |
+} |
+ |
namespace chromecast { |
class CastService { |
public: |
- static CastService* Create(content::BrowserContext* browser_context); |
+ // Create() takes a separate url request context getter because the request |
+ // context getter obtained through the browser context might not be |
+ // appropriate for the url requests made by the cast service/reciever. |
+ // For example, on Chromecast, it is needed to pass in a system url request |
+ // context getter that would set the request context for NSS, which the main |
+ // getter doesn't do. |
+ static CastService* Create( |
+ content::BrowserContext* browser_context, |
+ net::URLRequestContextGetter* request_context_getter); |
gunsch
2014/09/25 15:50:02
Hm, is there any case where we actually want to ch
lcwu1
2014/09/25 17:07:37
There are two reasons to pass in an url request co
|
virtual ~CastService(); |