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

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

Issue 1878153002: Revert of Simplify BrowserContext by removing redundant methods. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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 unified diff | Download patch
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 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
87 } 87 }
88 88
89 base::FilePath CastBrowserContext::GetPath() const { 89 base::FilePath CastBrowserContext::GetPath() const {
90 return path_; 90 return path_;
91 } 91 }
92 92
93 bool CastBrowserContext::IsOffTheRecord() const { 93 bool CastBrowserContext::IsOffTheRecord() const {
94 return false; 94 return false;
95 } 95 }
96 96
97 net::URLRequestContextGetter* CastBrowserContext::GetRequestContext() {
98 return GetDefaultStoragePartition(this)->GetURLRequestContext();
99 }
100
97 net::URLRequestContextGetter* CastBrowserContext::GetMediaRequestContext() { 101 net::URLRequestContextGetter* CastBrowserContext::GetMediaRequestContext() {
98 return url_request_context_factory_->GetMediaGetter(); 102 return url_request_context_factory_->GetMediaGetter();
99 } 103 }
100 104
101 net::URLRequestContextGetter* 105 net::URLRequestContextGetter*
102 CastBrowserContext::GetMediaRequestContextForRenderProcess( 106 CastBrowserContext::GetMediaRequestContextForRenderProcess(
103 int renderer_child_id) { 107 int renderer_child_id) {
104 return GetMediaRequestContext(); 108 return GetMediaRequestContext();
105 } 109 }
106 110
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
161 CastBrowserContext::CreateRequestContextForStoragePartition( 165 CastBrowserContext::CreateRequestContextForStoragePartition(
162 const base::FilePath& partition_path, 166 const base::FilePath& partition_path,
163 bool in_memory, 167 bool in_memory,
164 content::ProtocolHandlerMap* protocol_handlers, 168 content::ProtocolHandlerMap* protocol_handlers,
165 content::URLRequestInterceptorScopedVector request_interceptors) { 169 content::URLRequestInterceptorScopedVector request_interceptors) {
166 return nullptr; 170 return nullptr;
167 } 171 }
168 172
169 } // namespace shell 173 } // namespace shell
170 } // namespace chromecast 174 } // namespace chromecast
OLDNEW
« no previous file with comments | « chromecast/browser/cast_browser_context.h ('k') | chromecast/browser/cast_browser_main_parts.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698