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

Unified Diff: chromecast/service/cast_service.h

Issue 606513002: Pass the system url request context getter to the cast service so that it can be used by various sy… (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 3 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
« no previous file with comments | « no previous file | chromecast/service/cast_service_android.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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();
« no previous file with comments | « no previous file | chromecast/service/cast_service_android.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698