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

Unified Diff: mojo/edk/embedder/channel_init.h

Issue 814543006: Move //mojo/{public, edk} underneath //third_party (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 5 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 | « mojo/edk/embedder/channel_info_forward.h ('k') | mojo/edk/embedder/channel_init.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/edk/embedder/channel_init.h
diff --git a/mojo/edk/embedder/channel_init.h b/mojo/edk/embedder/channel_init.h
deleted file mode 100644
index 59b6694d8809d22650ab9b4c0969fdd0f7488b37..0000000000000000000000000000000000000000
--- a/mojo/edk/embedder/channel_init.h
+++ /dev/null
@@ -1,60 +0,0 @@
-// Copyright 2014 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 MOJO_EDK_EMBEDDER_CHANNEL_INIT_H_
-#define MOJO_EDK_EMBEDDER_CHANNEL_INIT_H_
-
-#include "base/files/file.h"
-#include "base/memory/ref_counted.h"
-#include "base/memory/weak_ptr.h"
-#include "mojo/edk/embedder/channel_info_forward.h"
-#include "mojo/edk/system/system_impl_export.h"
-#include "mojo/public/cpp/system/message_pipe.h"
-
-namespace base {
-class MessageLoopProxy;
-class TaskRunner;
-}
-
-namespace mojo {
-namespace embedder {
-
-// |ChannelInit| handles creation (and destruction) of the Mojo channel. It is
-// not thread-safe, but may be used on any single thread (with a |MessageLoop|).
-class MOJO_SYSTEM_IMPL_EXPORT ChannelInit {
- public:
- ChannelInit();
- ~ChannelInit();
-
- // Initializes the channel. This takes ownership of |file|. Returns the
- // primordial MessagePipe for the channel.
- mojo::ScopedMessagePipeHandle Init(
- base::PlatformFile file,
- scoped_refptr<base::TaskRunner> io_thread_task_runner);
-
- // Notifies the channel that we (hence it) will soon be destroyed.
- void WillDestroySoon();
-
- private:
- // Invoked on the thread on which this object lives once the channel has been
- // established. (This is a static method that takes a weak pointer to self,
- // since we want to destroy the channel even if we're destroyed.)
- static void OnCreatedChannel(base::WeakPtr<ChannelInit> self,
- scoped_refptr<base::TaskRunner> io_thread,
- ChannelInfo* channel);
-
- scoped_refptr<base::TaskRunner> io_thread_task_runner_;
-
- // If non-null the channel has been established.
- ChannelInfo* channel_info_;
-
- base::WeakPtrFactory<ChannelInit> weak_factory_;
-
- DISALLOW_COPY_AND_ASSIGN(ChannelInit);
-};
-
-} // namespace embedder
-} // namespace mojo
-
-#endif // MOJO_EDK_EMBEDDER_CHANNEL_INIT_H_
« no previous file with comments | « mojo/edk/embedder/channel_info_forward.h ('k') | mojo/edk/embedder/channel_init.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698