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

Unified Diff: content/common/thread_safe_sender.cc

Issue 16328003: Move a bunch of child-only code from content/common to content/child (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 7 years, 6 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 | « content/common/thread_safe_sender.h ('k') | content/common/webkitplatformsupport_impl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/common/thread_safe_sender.cc
diff --git a/content/common/thread_safe_sender.cc b/content/common/thread_safe_sender.cc
deleted file mode 100644
index 89a7cd8650c16e827cddb46f86cb58e4df3edace..0000000000000000000000000000000000000000
--- a/content/common/thread_safe_sender.cc
+++ /dev/null
@@ -1,27 +0,0 @@
-// Copyright (c) 2013 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.
-
-#include "content/common/thread_safe_sender.h"
-
-#include "base/message_loop_proxy.h"
-#include "content/common/child_thread.h"
-#include "ipc/ipc_sync_message_filter.h"
-
-namespace content {
-
-ThreadSafeSender::ThreadSafeSender(base::MessageLoopProxy* main_loop,
- IPC::SyncMessageFilter* sync_filter)
- : main_loop_(main_loop), sync_filter_(sync_filter) {
-}
-
-ThreadSafeSender::~ThreadSafeSender() {
-}
-
-bool ThreadSafeSender::Send(IPC::Message* msg) {
- if (main_loop_->BelongsToCurrentThread())
- return ChildThread::current()->Send(msg);
- return sync_filter_->Send(msg);
-}
-
-} // namespace content
« no previous file with comments | « content/common/thread_safe_sender.h ('k') | content/common/webkitplatformsupport_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698