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

Unified Diff: content/shell/browser/shell_content_browser_client.cc

Issue 282103004: Rename ProtocolInterceptJobFactory and make it not use ProtocolHandlers. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Response to jam's comments (And a merge) Created 6 years, 7 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
Index: content/shell/browser/shell_content_browser_client.cc
diff --git a/content/shell/browser/shell_content_browser_client.cc b/content/shell/browser/shell_content_browser_client.cc
index 6da4ecebe3627f39017ea2b8c4c2617fddddfdae..e49d5b7555fd1382a89cc2c997b7810828d771ee 100644
--- a/content/shell/browser/shell_content_browser_client.cc
+++ b/content/shell/browser/shell_content_browser_client.cc
@@ -162,11 +162,11 @@ void ShellContentBrowserClient::RenderProcessWillLaunch(
net::URLRequestContextGetter* ShellContentBrowserClient::CreateRequestContext(
BrowserContext* content_browser_context,
ProtocolHandlerMap* protocol_handlers,
- ProtocolHandlerScopedVector protocol_interceptors) {
+ URLRequestInterceptorScopedVector request_interceptors) {
ShellBrowserContext* shell_browser_context =
ShellBrowserContextForBrowserContext(content_browser_context);
return shell_browser_context->CreateRequestContext(
- protocol_handlers, protocol_interceptors.Pass());
+ protocol_handlers, request_interceptors.Pass());
}
net::URLRequestContextGetter*
@@ -175,14 +175,14 @@ ShellContentBrowserClient::CreateRequestContextForStoragePartition(
const base::FilePath& partition_path,
bool in_memory,
ProtocolHandlerMap* protocol_handlers,
- ProtocolHandlerScopedVector protocol_interceptors) {
+ URLRequestInterceptorScopedVector request_interceptors) {
ShellBrowserContext* shell_browser_context =
ShellBrowserContextForBrowserContext(content_browser_context);
return shell_browser_context->CreateRequestContextForStoragePartition(
partition_path,
in_memory,
protocol_handlers,
- protocol_interceptors.Pass());
+ request_interceptors.Pass());
}
bool ShellContentBrowserClient::IsHandledURL(const GURL& url) {
@@ -294,7 +294,7 @@ bool ShellContentBrowserClient::ShouldSwapProcessesForRedirect(
void ShellContentBrowserClient::GetAdditionalMappedFilesForChildProcess(
const CommandLine& command_line,
int child_process_id,
- std::vector<content::FileDescriptorInfo>* mappings) {
+ std::vector<FileDescriptorInfo>* mappings) {
#if defined(OS_ANDROID)
int flags = base::PLATFORM_FILE_OPEN | base::PLATFORM_FILE_READ;
base::FilePath pak_file;
@@ -309,8 +309,7 @@ void ShellContentBrowserClient::GetAdditionalMappedFilesForChildProcess(
<< "content_shell.pak";
}
mappings->push_back(
- content::FileDescriptorInfo(kShellPakDescriptor,
- base::FileDescriptor(f.Pass())));
+ FileDescriptorInfo(kShellPakDescriptor, base::FileDescriptor(f.Pass())));
if (breakpad::IsCrashReporterEnabled()) {
f = breakpad::CrashDumpManager::GetInstance()->CreateMinidumpFile(
« no previous file with comments | « content/shell/browser/shell_content_browser_client.h ('k') | content/shell/browser/shell_url_request_context_getter.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698