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

Side by Side Diff: content/browser/browser_thread_impl.h

Issue 9427023: Add functions to expand PostDelayedTask interface. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Add fix to RunOnPluginThread() in host_plugin.cc Created 8 years, 9 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 | « base/task_runner.h ('k') | content/browser/browser_thread_impl.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 CONTENT_BROWSER_BROWSER_THREAD_IMPL_H_ 5 #ifndef CONTENT_BROWSER_BROWSER_THREAD_IMPL_H_
6 #define CONTENT_BROWSER_BROWSER_THREAD_IMPL_H_ 6 #define CONTENT_BROWSER_BROWSER_THREAD_IMPL_H_
7 #pragma once 7 #pragma once
8 8
9 #include "base/synchronization/lock.h" 9 #include "base/synchronization/lock.h"
10 #include "base/threading/thread.h" 10 #include "base/threading/thread.h"
(...skipping 23 matching lines...) Expand all
34 private: 34 private:
35 // We implement all the functionality of the public BrowserThread 35 // We implement all the functionality of the public BrowserThread
36 // functions, but state is stored in the BrowserThreadImpl to keep 36 // functions, but state is stored in the BrowserThreadImpl to keep
37 // the API cleaner. Therefore make BrowserThread a friend class. 37 // the API cleaner. Therefore make BrowserThread a friend class.
38 friend class BrowserThread; 38 friend class BrowserThread;
39 39
40 static bool PostTaskHelper( 40 static bool PostTaskHelper(
41 BrowserThread::ID identifier, 41 BrowserThread::ID identifier,
42 const tracked_objects::Location& from_here, 42 const tracked_objects::Location& from_here,
43 const base::Closure& task, 43 const base::Closure& task,
44 int64 delay_ms, 44 base::TimeDelta delay,
45 bool nestable); 45 bool nestable);
46 46
47 // Common initialization code for the constructors. 47 // Common initialization code for the constructors.
48 void Initialize(); 48 void Initialize();
49 49
50 // The identifier of this thread. Only one thread can exist with a given 50 // The identifier of this thread. Only one thread can exist with a given
51 // identifier at a given time. 51 // identifier at a given time.
52 ID identifier_; 52 ID identifier_;
53 }; 53 };
54 54
55 } // namespace content 55 } // namespace content
56 56
57 #endif // CONTENT_BROWSER_BROWSER_THREAD_IMPL_H_ 57 #endif // CONTENT_BROWSER_BROWSER_THREAD_IMPL_H_
OLDNEW
« no previous file with comments | « base/task_runner.h ('k') | content/browser/browser_thread_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698