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

Side by Side Diff: chromecast/browser/cast_browser_context.cc

Issue 749833002: Add a getter for system url request context in CastBrowserContext. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years 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
« no previous file with comments | « chromecast/browser/cast_browser_context.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 #include "chromecast/browser/cast_browser_context.h" 5 #include "chromecast/browser/cast_browser_context.h"
6 6
7 #include "base/command_line.h" 7 #include "base/command_line.h"
8 #include "base/files/file_util.h" 8 #include "base/files/file_util.h"
9 #include "base/macros.h" 9 #include "base/macros.h"
10 #include "base/path_service.h" 10 #include "base/path_service.h"
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after
109 int renderer_child_id) { 109 int renderer_child_id) {
110 return GetMediaRequestContext(); 110 return GetMediaRequestContext();
111 } 111 }
112 112
113 net::URLRequestContextGetter* 113 net::URLRequestContextGetter*
114 CastBrowserContext::GetMediaRequestContextForStoragePartition( 114 CastBrowserContext::GetMediaRequestContextForStoragePartition(
115 const base::FilePath& partition_path, bool in_memory) { 115 const base::FilePath& partition_path, bool in_memory) {
116 return GetMediaRequestContext(); 116 return GetMediaRequestContext();
117 } 117 }
118 118
119 net::URLRequestContextGetter* CastBrowserContext::GetSystemRequestContext() {
120 return url_request_context_factory_->GetSystemGetter();
121 }
122
119 content::ResourceContext* CastBrowserContext::GetResourceContext() { 123 content::ResourceContext* CastBrowserContext::GetResourceContext() {
120 return resource_context_.get(); 124 return resource_context_.get();
121 } 125 }
122 126
123 content::DownloadManagerDelegate* 127 content::DownloadManagerDelegate*
124 CastBrowserContext::GetDownloadManagerDelegate() { 128 CastBrowserContext::GetDownloadManagerDelegate() {
125 return download_manager_delegate_.get(); 129 return download_manager_delegate_.get();
126 } 130 }
127 131
128 content::BrowserPluginGuestManager* CastBrowserContext::GetGuestManager() { 132 content::BrowserPluginGuestManager* CastBrowserContext::GetGuestManager() {
(...skipping 11 matching lines...) Expand all
140 return NULL; 144 return NULL;
141 } 145 }
142 146
143 content::SSLHostStateDelegate* CastBrowserContext::GetSSLHostStateDelegate() { 147 content::SSLHostStateDelegate* CastBrowserContext::GetSSLHostStateDelegate() {
144 NOTIMPLEMENTED(); 148 NOTIMPLEMENTED();
145 return NULL; 149 return NULL;
146 } 150 }
147 151
148 } // namespace shell 152 } // namespace shell
149 } // namespace chromecast 153 } // namespace chromecast
OLDNEW
« no previous file with comments | « chromecast/browser/cast_browser_context.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698