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

Side by Side Diff: mojo/edk/embedder/scoped_ipc_support.h

Issue 2074453003: Move ScopedIPCSupport to mojo/edk/embedder and the mojo::edk namespace. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 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 unified diff | Download patch
« no previous file with comments | « mojo/edk/embedder/BUILD.gn ('k') | mojo/edk/embedder/scoped_ipc_support.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef IPC_MOJO_SCOPED_IPC_SUPPORT_H_ 5 #ifndef MOJO_EDK_EMBEDDER_SCOPED_IPC_SUPPORT_H_
6 #define IPC_MOJO_SCOPED_IPC_SUPPORT_H_ 6 #define MOJO_EDK_EMBEDDER_SCOPED_IPC_SUPPORT_H_
7 7
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "base/memory/ref_counted.h" 9 #include "base/memory/ref_counted.h"
10 #include "base/task_runner.h" 10 #include "base/task_runner.h"
11 #include "mojo/edk/system/system_impl_export.h"
11 12
12 namespace IPC { 13 namespace mojo {
14 namespace edk {
13 15
14 // Performs any necessary Mojo IPC initialization on construction, and shuts 16 // Performs any necessary Mojo initialization on construction, and shuts
15 // down Mojo IPC on destruction. 17 // down Mojo on destruction.
16 // 18 //
17 // This should be instantiated once per process and retained as long as Mojo IPC 19 // This should be instantiated once per process and retained as long as Mojo
18 // is needed. The TaskRunner passed to the constructor should outlive this 20 // is needed. The TaskRunner passed to the constructor should outlive this
19 // object. 21 // object.
20 class ScopedIPCSupport { 22 class MOJO_SYSTEM_IMPL_EXPORT ScopedIPCSupport {
21 public: 23 public:
22 ScopedIPCSupport(scoped_refptr<base::TaskRunner> io_thread_task_runner); 24 ScopedIPCSupport(scoped_refptr<base::TaskRunner> io_thread_task_runner);
23 ~ScopedIPCSupport(); 25 ~ScopedIPCSupport();
24 26
25 private: 27 private:
26 DISALLOW_COPY_AND_ASSIGN(ScopedIPCSupport); 28 DISALLOW_COPY_AND_ASSIGN(ScopedIPCSupport);
27 }; 29 };
28 30
29 } // namespace IPC 31 } // namespace edk
32 } // namespace mojo
30 33
31 #endif // IPC_MOJO_SCOPED_IPC_SUPPORT_H_ 34 #endif // MOJO_EDK_EMBEDDER_SCOPED_IPC_SUPPORT_H_
OLDNEW
« no previous file with comments | « mojo/edk/embedder/BUILD.gn ('k') | mojo/edk/embedder/scoped_ipc_support.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698