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

Side by Side Diff: content/browser/worker_host/worker_service.cc

Issue 6697012: Remove 'off the record' references from ChromeURLContext. (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Removed 'off the record' references from ChromeURLRequestContext. Created 9 years, 9 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 | Annotate | Revision Log
« no previous file with comments | « content/browser/worker_host/worker_message_filter.cc ('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 (c) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2009 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 "content/browser/worker_host/worker_service.h" 5 #include "content/browser/worker_host/worker_service.h"
6 6
7 #include <string> 7 #include <string>
8 8
9 #include "base/command_line.h" 9 #include "base/command_line.h"
10 #include "base/sys_info.h" 10 #include "base/sys_info.h"
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
76 ChromeURLRequestContext* context = static_cast<ChromeURLRequestContext*>( 76 ChromeURLRequestContext* context = static_cast<ChromeURLRequestContext*>(
77 request_context->GetURLRequestContext()); 77 request_context->GetURLRequestContext());
78 78
79 // Generate a unique route id for the browser-worker communication that's 79 // Generate a unique route id for the browser-worker communication that's
80 // unique among all worker processes. That way when the worker process sends 80 // unique among all worker processes. That way when the worker process sends
81 // a wrapped IPC message through us, we know which WorkerProcessHost to give 81 // a wrapped IPC message through us, we know which WorkerProcessHost to give
82 // it to. 82 // it to.
83 WorkerProcessHost::WorkerInstance instance( 83 WorkerProcessHost::WorkerInstance instance(
84 params.url, 84 params.url,
85 params.is_shared, 85 params.is_shared,
86 context->is_off_the_record(), 86 context->is_incognito(),
87 params.name, 87 params.name,
88 next_worker_route_id(), 88 next_worker_route_id(),
89 params.is_shared ? 0 : filter->render_process_id(), 89 params.is_shared ? 0 : filter->render_process_id(),
90 params.is_shared ? 0 : params.parent_appcache_host_id, 90 params.is_shared ? 0 : params.parent_appcache_host_id,
91 params.is_shared ? params.script_resource_appcache_id : 0, 91 params.is_shared ? params.script_resource_appcache_id : 0,
92 request_context); 92 request_context);
93 instance.AddFilter(filter, route_id); 93 instance.AddFilter(filter, route_id);
94 instance.worker_document_set()->Add( 94 instance.worker_document_set()->Add(
95 filter, params.document_id, filter->render_process_id(), 95 filter, params.document_id, filter->render_process_id(),
96 params.render_view_route_id); 96 params.render_view_route_id);
(...skipping 452 matching lines...) Expand 10 before | Expand all | Expand 10 after
549 FindPendingInstance(url, name, incognito); 549 FindPendingInstance(url, name, incognito);
550 if (instance) 550 if (instance)
551 return instance; 551 return instance;
552 552
553 // No existing pending worker - create a new one. 553 // No existing pending worker - create a new one.
554 WorkerProcessHost::WorkerInstance pending( 554 WorkerProcessHost::WorkerInstance pending(
555 url, true, incognito, name, MSG_ROUTING_NONE, 0, 0, 0, NULL); 555 url, true, incognito, name, MSG_ROUTING_NONE, 0, 0, 0, NULL);
556 pending_shared_workers_.push_back(pending); 556 pending_shared_workers_.push_back(pending);
557 return &pending_shared_workers_.back(); 557 return &pending_shared_workers_.back();
558 } 558 }
OLDNEW
« no previous file with comments | « content/browser/worker_host/worker_message_filter.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698