Bug 979858: Add include guards to headers in ipc/unixfd, r=kyle
authorThomas Zimmermann <tdz@users.sourceforge.net>
Thu, 06 Mar 2014 09:32:25 +0100
changeset 172217 f4c6f74a2f4ffe497b756156ab91087067b80b78
parent 172215 ea47af24d9a78cfef60e6656883c5f027cea0b30
child 172218 122e292bd7e7229dc30a197217b64f441b96cdb8
push id26354
push userryanvm@gmail.com
push dateThu, 06 Mar 2014 18:54:54 +0000
treeherdermozilla-central@02506bdd5bd8 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerskyle
bugs979858
milestone30.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 979858: Add include guards to headers in ipc/unixfd, r=kyle
ipc/unixfd/UnixFdWatcher.h
ipc/unixfd/UnixFileWatcher.h
ipc/unixfd/UnixSocketWatcher.h
--- a/ipc/unixfd/UnixFdWatcher.h
+++ b/ipc/unixfd/UnixFdWatcher.h
@@ -1,14 +1,17 @@
 /* -*- Mode: c++; c-basic-offset: 2; indent-tabs-mode: nil; tab-width: 40 -*- */
 /* vim: set ts=2 et sw=2 tw=80: */
 /* This Source Code Form is subject to the terms of the Mozilla Public
  * License, v. 2.0. If a copy of the MPL was not distributed with this
  * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
 
+#ifndef mozilla_ipc_UnixFdWatcher_h
+#define mozilla_ipc_UnixFdWatcher_h
+
 #include "base/message_loop.h"
 #include "mozilla/FileUtils.h"
 
 namespace mozilla {
 namespace ipc {
 
 class UnixFdWatcher : public MessageLoopForIO::Watcher
 {
@@ -57,8 +60,10 @@ private:
   MessageLoop* mIOLoop;
   ScopedClose mFd;
   MessageLoopForIO::FileDescriptorWatcher mReadWatcher;
   MessageLoopForIO::FileDescriptorWatcher mWriteWatcher;
 };
 
 }
 }
+
+#endif
--- a/ipc/unixfd/UnixFileWatcher.h
+++ b/ipc/unixfd/UnixFileWatcher.h
@@ -1,14 +1,17 @@
 /* -*- Mode: c++; c-basic-offset: 2; indent-tabs-mode: nil; tab-width: 40 -*- */
 /* vim: set ts=2 et sw=2 tw=80: */
 /* This Source Code Form is subject to the terms of the Mozilla Public
  * License, v. 2.0. If a copy of the MPL was not distributed with this
  * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
 
+#ifndef mozilla_ipc_UnixFileWatcher_h
+#define mozilla_ipc_UnixFileWatcher_h
+
 #include "UnixFdWatcher.h"
 
 namespace mozilla {
 namespace ipc {
 
 class UnixFileWatcher : public UnixFdWatcher
 {
 public:
@@ -21,8 +24,10 @@ public:
 
 protected:
   UnixFileWatcher(MessageLoop* aIOLoop);
   UnixFileWatcher(MessageLoop* aIOLoop, int aFd);
 };
 
 }
 }
+
+#endif
--- a/ipc/unixfd/UnixSocketWatcher.h
+++ b/ipc/unixfd/UnixSocketWatcher.h
@@ -1,14 +1,17 @@
 /* -*- Mode: c++; c-basic-offset: 2; indent-tabs-mode: nil; tab-width: 40 -*- */
 /* vim: set ts=2 et sw=2 tw=80: */
 /* This Source Code Form is subject to the terms of the Mozilla Public
  * License, v. 2.0. If a copy of the MPL was not distributed with this
  * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
 
+#ifndef mozilla_ipc_UnixSocketWatcher_h
+#define mozilla_ipc_UnixSocketWatcher_h
+
 #include "UnixFdWatcher.h"
 
 namespace mozilla {
 namespace ipc {
 
 class UnixSocketWatcher : public UnixFdWatcher
 {
 public:
@@ -59,8 +62,10 @@ private:
   void OnFileCanReadWithoutBlocking(int aFd) MOZ_OVERRIDE;
   void OnFileCanWriteWithoutBlocking(int aFd) MOZ_OVERRIDE;
 
   ConnectionStatus mConnectionStatus;
 };
 
 }
 }
+
+#endif