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

Unified Diff: chrome_frame/task_marshaller.h

Issue 126143005: Remove Chrome Frame code and resources. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: sync to r244038 Created 6 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome_frame/sync_msg_reply_dispatcher.cc ('k') | chrome_frame/task_marshaller.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome_frame/task_marshaller.h
diff --git a/chrome_frame/task_marshaller.h b/chrome_frame/task_marshaller.h
deleted file mode 100644
index fa68f2f0b014abfeb997875118fc0c7153c9f69b..0000000000000000000000000000000000000000
--- a/chrome_frame/task_marshaller.h
+++ /dev/null
@@ -1,67 +0,0 @@
-// Copyright (c) 2011 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 CHROME_FRAME_TASK_MARSHALLER_H_
-#define CHROME_FRAME_TASK_MARSHALLER_H_
-
-#include <windows.h>
-#include <deque>
-#include <queue>
-
-#include "base/callback.h"
-#include "base/pending_task.h"
-#include "base/synchronization/lock.h"
-#include "base/threading/non_thread_safe.h"
-#include "base/time/time.h"
-
-class Task;
-
-namespace tracked_objects {
-class Location;
-}
-
-// TaskMarshallerThroughMessageQueue is similar to base::MessageLoopForUI
-// in cases where we do not control the thread lifetime and message retrieval
-// and dispatching. It uses a HWND to ::PostMessage to it as a signal that
-// the task queue is not empty.
-class TaskMarshallerThroughMessageQueue : public base::NonThreadSafe {
- public:
- TaskMarshallerThroughMessageQueue();
- virtual ~TaskMarshallerThroughMessageQueue();
-
- void SetWindow(HWND wnd, UINT msg) {
- wnd_ = wnd;
- msg_ = msg;
- }
-
- virtual void PostTask(const tracked_objects::Location& from_here,
- const base::Closure& task);
- virtual void PostDelayedTask(const tracked_objects::Location& source,
- const base::Closure& task,
- base::TimeDelta& delay);
-
- // Called by the owner of the HWND.
- BOOL ProcessWindowMessage(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam,
- LRESULT& lResult, DWORD dwMsgMapID = 0);
- private:
- void ClearTasks();
- inline base::Closure PopTask();
- inline void ExecuteQueuedTasks();
- void ExecuteDelayedTasks();
-
- // Shortest delays ordered at the top of the queue.
- base::DelayedTaskQueue delayed_tasks_;
-
- // A list of tasks that need to be processed by this instance.
- std::queue<base::Closure> pending_tasks_;
-
- // Lock accesses to |pending_tasks_|.
- base::Lock lock_;
-
- // ::PostMessage parameters.
- HWND wnd_;
- UINT msg_;
-};
-
-#endif // CHROME_FRAME_TASK_MARSHALLER_H_
« no previous file with comments | « chrome_frame/sync_msg_reply_dispatcher.cc ('k') | chrome_frame/task_marshaller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698