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

Side by Side Diff: remoting/base/plugin_message_loop_proxy.h

Issue 9703053: Remove old Sleep and PostDelayedTask interfaces that use int ms instead of TimeDelta. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Remove old PDT interface in webkit/dom_storage. 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
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 REMOTING_BASE_PLUGIN_MESSAGE_LOOP_H_ 5 #ifndef REMOTING_BASE_PLUGIN_MESSAGE_LOOP_H_
6 #define REMOTING_BASE_PLUGIN_MESSAGE_LOOP_H_ 6 #define REMOTING_BASE_PLUGIN_MESSAGE_LOOP_H_
7 7
8 #include "base/callback_forward.h" 8 #include "base/callback_forward.h"
9 #include "base/compiler_specific.h" 9 #include "base/compiler_specific.h"
10 #include "base/message_loop_proxy.h" 10 #include "base/message_loop_proxy.h"
(...skipping 17 matching lines...) Expand all
28 // Caller keeps ownership of delegate. 28 // Caller keeps ownership of delegate.
29 PluginMessageLoopProxy(Delegate* delegate); 29 PluginMessageLoopProxy(Delegate* delegate);
30 virtual ~PluginMessageLoopProxy(); 30 virtual ~PluginMessageLoopProxy();
31 31
32 void Detach(); 32 void Detach();
33 33
34 // base::MessageLoopProxy implementation. 34 // base::MessageLoopProxy implementation.
35 virtual bool PostDelayedTask( 35 virtual bool PostDelayedTask(
36 const tracked_objects::Location& from_here, 36 const tracked_objects::Location& from_here,
37 const base::Closure& task, 37 const base::Closure& task,
38 int64 delay_ms) OVERRIDE;
39 virtual bool PostDelayedTask(
40 const tracked_objects::Location& from_here,
41 const base::Closure& task,
42 base::TimeDelta delay) OVERRIDE; 38 base::TimeDelta delay) OVERRIDE;
43 virtual bool PostNonNestableDelayedTask( 39 virtual bool PostNonNestableDelayedTask(
44 const tracked_objects::Location& from_here, 40 const tracked_objects::Location& from_here,
45 const base::Closure& task, 41 const base::Closure& task,
46 int64 delay_ms) OVERRIDE;
47 virtual bool PostNonNestableDelayedTask(
48 const tracked_objects::Location& from_here,
49 const base::Closure& task,
50 base::TimeDelta delay) OVERRIDE; 42 base::TimeDelta delay) OVERRIDE;
51 43
52 virtual bool RunsTasksOnCurrentThread() const OVERRIDE; 44 virtual bool RunsTasksOnCurrentThread() const OVERRIDE;
53 45
54 private: 46 private:
55 static void TaskSpringboard(void* data); 47 static void TaskSpringboard(void* data);
56 48
57 void RunClosureIf(const base::Closure& task); 49 void RunClosureIf(const base::Closure& task);
58 50
59 base::PlatformThreadId plugin_thread_id_; 51 base::PlatformThreadId plugin_thread_id_;
60 52
61 // |lock_| must be acquired when accessing |delegate_|. 53 // |lock_| must be acquired when accessing |delegate_|.
62 base::Lock lock_; 54 base::Lock lock_;
63 Delegate* delegate_; 55 Delegate* delegate_;
64 56
65 DISALLOW_COPY_AND_ASSIGN(PluginMessageLoopProxy); 57 DISALLOW_COPY_AND_ASSIGN(PluginMessageLoopProxy);
66 }; 58 };
67 59
68 } // namespace remoting 60 } // namespace remoting
69 61
70 #endif // REMOTING_BASE_PLUGIN_MESSAGE_LOOP_H_ 62 #endif // REMOTING_BASE_PLUGIN_MESSAGE_LOOP_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698