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

Side by Side Diff: chrome/browser/ui/webui/chrome_url_data_manager_backend.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
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 "chrome/browser/ui/webui/chrome_url_data_manager_backend.h" 5 #include "chrome/browser/ui/webui/chrome_url_data_manager_backend.h"
6 6
7 #include "base/file_util.h" 7 #include "base/file_util.h"
8 #include "base/message_loop.h" 8 #include "base/message_loop.h"
9 #include "base/path_service.h" 9 #include "base/path_service.h"
10 #include "base/ref_counted_memory.h" 10 #include "base/ref_counted_memory.h"
(...skipping 189 matching lines...) Expand 10 before | Expand all | Expand 10 after
200 200
201 ChromeURLRequestContext* context = static_cast<ChromeURLRequestContext*>( 201 ChromeURLRequestContext* context = static_cast<ChromeURLRequestContext*>(
202 job->request()->context()); 202 job->request()->context());
203 203
204 // Forward along the request to the data source. 204 // Forward along the request to the data source.
205 MessageLoop* target_message_loop = source->MessageLoopForRequestPath(path); 205 MessageLoop* target_message_loop = source->MessageLoopForRequestPath(path);
206 if (!target_message_loop) { 206 if (!target_message_loop) {
207 // The DataSource is agnostic to which thread StartDataRequest is called 207 // The DataSource is agnostic to which thread StartDataRequest is called
208 // on for this path. Call directly into it from this thread, the IO 208 // on for this path. Call directly into it from this thread, the IO
209 // thread. 209 // thread.
210 source->StartDataRequest(path, context->is_off_the_record(), request_id); 210 source->StartDataRequest(path, context->is_incognito(), request_id);
211 } else { 211 } else {
212 // The DataSource wants StartDataRequest to be called on a specific thread, 212 // The DataSource wants StartDataRequest to be called on a specific thread,
213 // usually the UI thread, for this path. 213 // usually the UI thread, for this path.
214 target_message_loop->PostTask( 214 target_message_loop->PostTask(
215 FROM_HERE, 215 FROM_HERE,
216 NewRunnableMethod(source, 216 NewRunnableMethod(source,
217 &ChromeURLDataManager::DataSource::StartDataRequest, 217 &ChromeURLDataManager::DataSource::StartDataRequest,
218 path, context->is_off_the_record(), request_id)); 218 path, context->is_incognito(), request_id));
219 } 219 }
220 return true; 220 return true;
221 } 221 }
222 222
223 void ChromeURLDataManagerBackend::RemoveRequest(URLRequestChromeJob* job) { 223 void ChromeURLDataManagerBackend::RemoveRequest(URLRequestChromeJob* job) {
224 // Remove the request from our list of pending requests. 224 // Remove the request from our list of pending requests.
225 // If/when the source sends the data that was requested, the data will just 225 // If/when the source sends the data that was requested, the data will just
226 // be thrown away. 226 // be thrown away.
227 for (PendingRequestMap::iterator i = pending_requests_.begin(); 227 for (PendingRequestMap::iterator i = pending_requests_.begin();
228 i != pending_requests_.end(); ++i) { 228 i != pending_requests_.end(); ++i) {
(...skipping 172 matching lines...) Expand 10 before | Expand all | Expand 10 after
401 return false; 401 return false;
402 402
403 *path = inspector_dir.AppendASCII(relative_path); 403 *path = inspector_dir.AppendASCII(relative_path);
404 return true; 404 return true;
405 } 405 }
406 406
407 net::URLRequestJob* DevToolsJobFactory::CreateJobForRequest( 407 net::URLRequestJob* DevToolsJobFactory::CreateJobForRequest(
408 net::URLRequest* request, const FilePath& path) { 408 net::URLRequest* request, const FilePath& path) {
409 return new URLRequestChromeFileJob(request, path); 409 return new URLRequestChromeFileJob(request, path);
410 } 410 }
OLDNEW
« no previous file with comments | « chrome/browser/profiles/profile_io_data.cc ('k') | content/browser/worker_host/worker_message_filter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698