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

Unified Diff: mojo/common/scoped_message_pipe.h

Issue 64973002: Moves some files into mojo/common (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 1 month 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
Index: mojo/common/scoped_message_pipe.h
diff --git a/mojo/shell/scoped_message_pipe.h b/mojo/common/scoped_message_pipe.h
similarity index 72%
rename from mojo/shell/scoped_message_pipe.h
rename to mojo/common/scoped_message_pipe.h
index 7b0d84b9ce10e2ef59183c1648aa731eef676f2f..476efdeb32952c2109f5f2a5da04a67de75d1fc7 100644
--- a/mojo/shell/scoped_message_pipe.h
+++ b/mojo/common/scoped_message_pipe.h
@@ -2,18 +2,19 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef MOJO_SHELL_SCOPED_MESSAGE_PIPE_H_
-#define MOJO_SHELL_SCOPED_MESSAGE_PIPE_H_
+#ifndef MOJO_COMMON_SCOPED_MESSAGE_PIPE_H_
+#define MOJO_COMMON_SCOPED_MESSAGE_PIPE_H_
#include "base/basictypes.h"
+#include "mojo/common/mojo_common_export.h"
#include "mojo/public/system/core.h"
namespace mojo {
-namespace shell {
+namespace common {
// Simple scoper that creates a message pipe in constructor and closes it in
// destructor. Test for success by comparing handles with MOJO_HANDLE_INVALID.
-class ScopedMessagePipe {
+class MOJO_COMMON_EXPORT ScopedMessagePipe {
darin (slow to review) 2013/11/07 18:41:24 This may end up being something we just want to ha
public:
ScopedMessagePipe();
~ScopedMessagePipe();
@@ -28,7 +29,7 @@ class ScopedMessagePipe {
DISALLOW_COPY_AND_ASSIGN(ScopedMessagePipe);
};
-} // namespace shell
+} // namespace common
} // namespace mojo
-#endif // MOJO_SHELL_SCOPED_MESSAGE_PIPE_H_
+#endif // MOJO_COMMON_SCOPED_MESSAGE_PIPE_H_

Powered by Google App Engine
This is Rietveld 408576698