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

Unified Diff: remoting/base/plugin_message_loop_proxy.h

Issue 10830016: Replace PluginMessageLoopProxy with PluginThreadTaskRunner. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 5 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | remoting/base/plugin_message_loop_proxy.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/base/plugin_message_loop_proxy.h
diff --git a/remoting/base/plugin_message_loop_proxy.h b/remoting/base/plugin_message_loop_proxy.h
deleted file mode 100644
index 1088344fd8e307c1f40d16a7aafe17c70e4b2dd7..0000000000000000000000000000000000000000
--- a/remoting/base/plugin_message_loop_proxy.h
+++ /dev/null
@@ -1,64 +0,0 @@
-// Copyright (c) 2012 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#ifndef REMOTING_BASE_PLUGIN_MESSAGE_LOOP_H_
-#define REMOTING_BASE_PLUGIN_MESSAGE_LOOP_H_
-
-#include "base/callback_forward.h"
-#include "base/compiler_specific.h"
-#include "base/message_loop_proxy.h"
-#include "base/synchronization/lock.h"
-#include "base/threading/platform_thread.h"
-
-namespace remoting {
-
-// MessageLoopProxy for plugin main threads.
-class PluginMessageLoopProxy : public base::MessageLoopProxy {
- public:
- class Delegate {
- public:
- Delegate() { }
- virtual ~Delegate() { }
-
- virtual bool RunOnPluginThread(
- base::TimeDelta delay, void(function)(void*), void* data) = 0;
- };
-
- // Caller keeps ownership of delegate.
- PluginMessageLoopProxy(Delegate* delegate);
-
- void Detach();
-
- // base::MessageLoopProxy implementation.
- virtual bool PostDelayedTask(
- const tracked_objects::Location& from_here,
- const base::Closure& task,
- base::TimeDelta delay) OVERRIDE;
- virtual bool PostNonNestableDelayedTask(
- const tracked_objects::Location& from_here,
- const base::Closure& task,
- base::TimeDelta delay) OVERRIDE;
-
- virtual bool RunsTasksOnCurrentThread() const OVERRIDE;
-
- protected:
- virtual ~PluginMessageLoopProxy();
-
- private:
- static void TaskSpringboard(void* data);
-
- void RunClosureIf(const base::Closure& task);
-
- base::PlatformThreadId plugin_thread_id_;
-
- // |lock_| must be acquired when accessing |delegate_|.
- base::Lock lock_;
- Delegate* delegate_;
-
- DISALLOW_COPY_AND_ASSIGN(PluginMessageLoopProxy);
-};
-
-} // namespace remoting
-
-#endif // REMOTING_BASE_PLUGIN_MESSAGE_LOOP_H_
« no previous file with comments | « no previous file | remoting/base/plugin_message_loop_proxy.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698