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

Side by Side Diff: chrome/browser/io_thread.cc

Issue 4222005: Turn on file access checks on Win. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Second try Created 10 years, 1 month 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) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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/io_thread.h" 5 #include "chrome/browser/io_thread.h"
6 6
7 #include "base/command_line.h" 7 #include "base/command_line.h"
8 #include "base/debug/leak_tracker.h" 8 #include "base/debug/leak_tracker.h"
9 #include "base/logging.h" 9 #include "base/logging.h"
10 #include "base/metrics/field_trial.h" 10 #include "base/metrics/field_trial.h"
(...skipping 239 matching lines...) Expand 10 before | Expand all | Expand 10 after
250 this, 250 this,
251 &IOThread::ChangedToOnTheRecordOnIOThread)); 251 &IOThread::ChangedToOnTheRecordOnIOThread));
252 } 252 }
253 253
254 net::ProxyScriptFetcher* IOThread::CreateAndRegisterProxyScriptFetcher( 254 net::ProxyScriptFetcher* IOThread::CreateAndRegisterProxyScriptFetcher(
255 URLRequestContext* url_request_context) { 255 URLRequestContext* url_request_context) {
256 return new ManagedProxyScriptFetcher(url_request_context, this); 256 return new ManagedProxyScriptFetcher(url_request_context, this);
257 } 257 }
258 258
259 void IOThread::Init() { 259 void IOThread::Init() {
260 #if (defined(OS_LINUX) && !defined(OS_CHROMEOS)) || defined(OS_MACOSX) 260 #if !defined(OS_CHROMEOS)
261 // TODO(evan): test and enable this on all platforms. 261 // TODO(evan): test and enable this on all platforms.
262 // Though this thread is called the "IO" thread, it actually just routes 262 // Though this thread is called the "IO" thread, it actually just routes
263 // messages around; it shouldn't be allowed to perform any blocking disk I/O. 263 // messages around; it shouldn't be allowed to perform any blocking disk I/O.
264 base::ThreadRestrictions::SetIOAllowed(false); 264 base::ThreadRestrictions::SetIOAllowed(false);
265 #endif 265 #endif
266 266
267 BrowserProcessSubThread::Init(); 267 BrowserProcessSubThread::Init();
268 268
269 DCHECK_EQ(MessageLoop::TYPE_IO, message_loop()->type()); 269 DCHECK_EQ(MessageLoop::TYPE_IO, message_loop()->type());
270 270
(...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after
435 net::HostCache* host_cache = 435 net::HostCache* host_cache =
436 globals_->host_resolver.get()->GetAsHostResolverImpl()->cache(); 436 globals_->host_resolver.get()->GetAsHostResolverImpl()->cache();
437 if (host_cache) 437 if (host_cache)
438 host_cache->clear(); 438 host_cache->clear();
439 } 439 }
440 // Clear all of the passively logged data. 440 // Clear all of the passively logged data.
441 // TODO(eroman): this is a bit heavy handed, really all we need to do is 441 // TODO(eroman): this is a bit heavy handed, really all we need to do is
442 // clear the data pertaining to off the record context. 442 // clear the data pertaining to off the record context.
443 globals_->net_log->passive_collector()->Clear(); 443 globals_->net_log->passive_collector()->Clear();
444 } 444 }
OLDNEW
« no previous file with comments | « chrome/browser/extensions/sandboxed_extension_unpacker.cc ('k') | chrome/browser/tab_contents/tab_contents.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698