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

Side by Side Diff: components/nacl/browser/nacl_browser.cc

Issue 1970833002: Fix include path for moved thread_task_runner_handle.h header in components/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@a1_move_task_runner_handle
Patch Set: merge up to r393009 Created 4 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 unified diff | Download patch
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 "components/nacl/browser/nacl_browser.h" 5 #include "components/nacl/browser/nacl_browser.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 8
9 #include "base/command_line.h" 9 #include "base/command_line.h"
10 #include "base/files/file_proxy.h" 10 #include "base/files/file_proxy.h"
11 #include "base/files/file_util.h" 11 #include "base/files/file_util.h"
12 #include "base/location.h" 12 #include "base/location.h"
13 #include "base/metrics/histogram_macros.h" 13 #include "base/metrics/histogram_macros.h"
14 #include "base/path_service.h" 14 #include "base/path_service.h"
15 #include "base/pickle.h" 15 #include "base/pickle.h"
16 #include "base/rand_util.h" 16 #include "base/rand_util.h"
17 #include "base/single_thread_task_runner.h" 17 #include "base/single_thread_task_runner.h"
18 #include "base/thread_task_runner_handle.h" 18 #include "base/threading/thread_task_runner_handle.h"
19 #include "base/time/time.h" 19 #include "base/time/time.h"
20 #include "base/win/windows_version.h" 20 #include "base/win/windows_version.h"
21 #include "build/build_config.h" 21 #include "build/build_config.h"
22 #include "content/public/browser/browser_thread.h" 22 #include "content/public/browser/browser_thread.h"
23 #include "url/gurl.h" 23 #include "url/gurl.h"
24 24
25 namespace { 25 namespace {
26 26
27 // An arbitrary delay to coalesce multiple writes to the cache. 27 // An arbitrary delay to coalesce multiple writes to the cache.
28 const int kValidationCacheCoalescingTimeMS = 6000; 28 const int kValidationCacheCoalescingTimeMS = 6000;
(...skipping 537 matching lines...) Expand 10 before | Expand all | Expand 10 after
566 bool NaClBrowser::IsThrottled() { 566 bool NaClBrowser::IsThrottled() {
567 DCHECK_CURRENTLY_ON(content::BrowserThread::IO); 567 DCHECK_CURRENTLY_ON(content::BrowserThread::IO);
568 if (crash_times_.size() != kMaxCrashesPerInterval) { 568 if (crash_times_.size() != kMaxCrashesPerInterval) {
569 return false; 569 return false;
570 } 570 }
571 base::TimeDelta delta = base::Time::Now() - crash_times_.front(); 571 base::TimeDelta delta = base::Time::Now() - crash_times_.front();
572 return delta.InSeconds() <= kCrashesIntervalInSeconds; 572 return delta.InSeconds() <= kCrashesIntervalInSeconds;
573 } 573 }
574 574
575 } // namespace nacl 575 } // namespace nacl
OLDNEW
« no previous file with comments | « components/nacl/broker/nacl_broker_listener.cc ('k') | components/nacl/browser/nacl_process_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698