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

Unified Diff: content/common/thread_safe_sender.h

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/socket_stream_dispatcher.cc ('k') | content/common/thread_safe_sender.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/common/thread_safe_sender.h
diff --git a/content/common/thread_safe_sender.h b/content/common/thread_safe_sender.h
deleted file mode 100644
index a7da56c95a08514605dafef1b5edbcd20b5277dc..0000000000000000000000000000000000000000
--- a/content/common/thread_safe_sender.h
+++ /dev/null
@@ -1,45 +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.
-
-#ifndef CONTENT_COMMON_THREAD_SAFE_SENDER_H_
-#define CONTENT_COMMON_THREAD_SAFE_SENDER_H_
-
-#include "base/memory/ref_counted.h"
-#include "ipc/ipc_sender.h"
-
-namespace base {
-class MessageLoopProxy;
-}
-
-namespace IPC {
-class SyncMessageFilter;
-}
-
-namespace content {
-class ChildThread;
-
-// The class of Sender returned by ChildThread::thread_safe_sender().
-class ThreadSafeSender
- : public IPC::Sender,
- public base::RefCountedThreadSafe<ThreadSafeSender> {
- public:
- virtual bool Send(IPC::Message* msg) OVERRIDE;
-
- private:
- friend class ChildThread; // for construction
- friend class base::RefCountedThreadSafe<ThreadSafeSender>;
-
- ThreadSafeSender(base::MessageLoopProxy* main_loop,
- IPC::SyncMessageFilter* sync_filter);
- virtual ~ThreadSafeSender();
-
- scoped_refptr<base::MessageLoopProxy> main_loop_;
- scoped_refptr<IPC::SyncMessageFilter> sync_filter_;
-
- DISALLOW_COPY_AND_ASSIGN(ThreadSafeSender);
-};
-
-} // namespace content
-
-#endif // CONTENT_COMMON_THREAD_SAFE_SENDER_H_
« no previous file with comments | « content/common/socket_stream_dispatcher.cc ('k') | content/common/thread_safe_sender.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698