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

Side by Side Diff: chrome/common/worker_thread_ticker.h

Issue 1548153002: Switch to standard integer types in chrome/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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
« no previous file with comments | « chrome/common/widevine_cdm_constants.cc ('k') | chrome/installer/gcapi/gcapi.cc » ('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 #ifndef CHROME_COMMON_WORKER_THREAD_TICKER_H_ 5 #ifndef CHROME_COMMON_WORKER_THREAD_TICKER_H_
6 #define CHROME_COMMON_WORKER_THREAD_TICKER_H_ 6 #define CHROME_COMMON_WORKER_THREAD_TICKER_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/macros.h"
10 #include "base/synchronization/lock.h" 11 #include "base/synchronization/lock.h"
11 #include "base/threading/thread.h" 12 #include "base/threading/thread.h"
12 13
13 // This class provides the following functionality: 14 // This class provides the following functionality:
14 // It invokes a set of registered handlers at periodic intervals in 15 // It invokes a set of registered handlers at periodic intervals in
15 // the context of an arbitrary worker thread. 16 // the context of an arbitrary worker thread.
16 // The timer runs on a separate thread, so it will run even if the current 17 // The timer runs on a separate thread, so it will run even if the current
17 // thread is hung. Similarly, the callbacks will be called on a separate 18 // thread is hung. Similarly, the callbacks will be called on a separate
18 // thread so they won't block the main thread. 19 // thread so they won't block the main thread.
19 class WorkerThreadTicker { 20 class WorkerThreadTicker {
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
77 // The interval at which the callbacks are to be invoked 78 // The interval at which the callbacks are to be invoked
78 base::TimeDelta tick_interval_; 79 base::TimeDelta tick_interval_;
79 80
80 // A list that holds all registered callback interfaces 81 // A list that holds all registered callback interfaces
81 TickHandlerListType tick_handler_list_; 82 TickHandlerListType tick_handler_list_;
82 83
83 DISALLOW_COPY_AND_ASSIGN(WorkerThreadTicker); 84 DISALLOW_COPY_AND_ASSIGN(WorkerThreadTicker);
84 }; 85 };
85 86
86 #endif // CHROME_COMMON_WORKER_THREAD_TICKER_H_ 87 #endif // CHROME_COMMON_WORKER_THREAD_TICKER_H_
OLDNEW
« no previous file with comments | « chrome/common/widevine_cdm_constants.cc ('k') | chrome/installer/gcapi/gcapi.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698