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

Side by Side Diff: content/gpu/gpu_watchdog_thread.cc

Issue 20114003: Update include paths in miscellaneous content/ directories for base/process changes. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixy Created 7 years, 4 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/child/resource_dispatcher_unittest.cc ('k') | content/plugin/plugin_channel.h » ('j') | 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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 #if defined(OS_WIN) 5 #if defined(OS_WIN)
6 #include <windows.h> 6 #include <windows.h>
7 #endif 7 #endif
8 8
9 #include "content/gpu/gpu_watchdog_thread.h" 9 #include "content/gpu/gpu_watchdog_thread.h"
10 10
11 #include "base/bind.h" 11 #include "base/bind.h"
12 #include "base/bind_helpers.h" 12 #include "base/bind_helpers.h"
13 #include "base/command_line.h" 13 #include "base/command_line.h"
14 #include "base/compiler_specific.h" 14 #include "base/compiler_specific.h"
15 #include "base/process_util.h" 15 #include "base/process/process.h"
16 #include "base/process.h"
17 #include "build/build_config.h" 16 #include "build/build_config.h"
18 #include "content/public/common/content_switches.h" 17 #include "content/public/common/content_switches.h"
19 #include "content/public/common/result_codes.h" 18 #include "content/public/common/result_codes.h"
20 19
21 namespace content { 20 namespace content {
22 namespace { 21 namespace {
23 const int64 kCheckPeriodMs = 2000; 22 const int64 kCheckPeriodMs = 2000;
24 } // namespace 23 } // namespace
25 24
26 GpuWatchdogThread::GpuWatchdogThread(int timeout) 25 GpuWatchdogThread::GpuWatchdogThread(int timeout)
(...skipping 215 matching lines...) Expand 10 before | Expand all | Expand 10 after
242 // not increasing. The other is where either the kernel hangs and never 241 // not increasing. The other is where either the kernel hangs and never
243 // returns to user level or where user level code 242 // returns to user level or where user level code
244 // calls into kernel level repeatedly, giving up its quanta before it is 243 // calls into kernel level repeatedly, giving up its quanta before it is
245 // tracked, for example a loop that repeatedly Sleeps. 244 // tracked, for example a loop that repeatedly Sleeps.
246 return base::TimeDelta::FromMilliseconds(static_cast<int64>( 245 return base::TimeDelta::FromMilliseconds(static_cast<int64>(
247 (user_time64.QuadPart + kernel_time64.QuadPart) / 10000)); 246 (user_time64.QuadPart + kernel_time64.QuadPart) / 10000));
248 } 247 }
249 #endif 248 #endif
250 249
251 } // namespace content 250 } // namespace content
OLDNEW
« no previous file with comments | « content/child/resource_dispatcher_unittest.cc ('k') | content/plugin/plugin_channel.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698