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

Side by Side Diff: chrome/gpu/gpu_watchdog_thread.h

Issue 6028009: Move base/thread.h to base/threading, fix up callers to use the new location.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 9 years, 11 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) 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 #ifndef CHROME_GPU_GPU_WATCHDOG_THREAD_H_ 5 #ifndef CHROME_GPU_GPU_WATCHDOG_THREAD_H_
6 #define CHROME_GPU_GPU_WATCHDOG_THREAD_H_ 6 #define CHROME_GPU_GPU_WATCHDOG_THREAD_H_
7 7
8 #include "base/message_loop.h" 8 #include "base/message_loop.h"
9 #include "base/ref_counted.h" 9 #include "base/ref_counted.h"
10 #include "base/scoped_ptr.h" 10 #include "base/scoped_ptr.h"
11 #include "base/task.h" 11 #include "base/task.h"
12 #include "base/thread.h" 12 #include "base/threading/thread.h"
13 13
14 // A thread that intermitently sends tasks to a group of watched message loops 14 // A thread that intermitently sends tasks to a group of watched message loops
15 // and deliberately crashes if one of them does not respond after a timeout. 15 // and deliberately crashes if one of them does not respond after a timeout.
16 class GpuWatchdogThread : public base::Thread, 16 class GpuWatchdogThread : public base::Thread,
17 public base::RefCountedThreadSafe<GpuWatchdogThread> { 17 public base::RefCountedThreadSafe<GpuWatchdogThread> {
18 public: 18 public:
19 explicit GpuWatchdogThread(int timeout); 19 explicit GpuWatchdogThread(int timeout);
20 virtual ~GpuWatchdogThread(); 20 virtual ~GpuWatchdogThread();
21 21
22 // Accessible on watched thread but only modified by watchdog thread. 22 // Accessible on watched thread but only modified by watchdog thread.
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
62 int64 arm_time_; 62 int64 arm_time_;
63 #endif 63 #endif
64 64
65 typedef ScopedRunnableMethodFactory<GpuWatchdogThread> MethodFactory; 65 typedef ScopedRunnableMethodFactory<GpuWatchdogThread> MethodFactory;
66 scoped_ptr<MethodFactory> method_factory_; 66 scoped_ptr<MethodFactory> method_factory_;
67 67
68 DISALLOW_COPY_AND_ASSIGN(GpuWatchdogThread); 68 DISALLOW_COPY_AND_ASSIGN(GpuWatchdogThread);
69 }; 69 };
70 70
71 #endif // CHROME_GPU_GPU_WATCHDOG_THREAD_H_ 71 #endif // CHROME_GPU_GPU_WATCHDOG_THREAD_H_
OLDNEW
« no previous file with comments | « chrome/default_plugin/plugin_install_job_monitor.h ('k') | chrome/installer/util/google_update_settings.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698