summaryrefslogtreecommitdiffstats
path: root/chrome/common/ipc_maybe.h
diff options
context:
space:
mode:
authoragl@chromium.org <agl@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-04-03 02:19:49 +0000
committeragl@chromium.org <agl@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-04-03 02:19:49 +0000
commit8cf3f1dae79db8cfbf9dc6b75c140eabad918a6e (patch)
tree89e93505cc275c0a22b5ca7d95c5f03cfacff6a1 /chrome/common/ipc_maybe.h
parent343b7211ff31670cded0f85fa8a056fa6cf7a9f3 (diff)
downloadchromium_src-8cf3f1dae79db8cfbf9dc6b75c140eabad918a6e.zip
chromium_src-8cf3f1dae79db8cfbf9dc6b75c140eabad918a6e.tar.gz
chromium_src-8cf3f1dae79db8cfbf9dc6b75c140eabad918a6e.tar.bz2
Move IPC code to ipc/
(No review URL: Rietvelt couldn't cope) git-svn-id: svn://svn.chromium.org/chrome/trunk/src@13062 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/common/ipc_maybe.h')
-rw-r--r--chrome/common/ipc_maybe.h19
1 files changed, 0 insertions, 19 deletions
diff --git a/chrome/common/ipc_maybe.h b/chrome/common/ipc_maybe.h
deleted file mode 100644
index de45dc0..0000000
--- a/chrome/common/ipc_maybe.h
+++ /dev/null
@@ -1,19 +0,0 @@
-#ifndef CHROME_COMMON_MAYBE_H_
-#define CHROME_COMMON_MAYBE_H_
-
-namespace IPC {
-
-// The Maybe type can be used to avoid serialising a type when it's invalid.
-// This is most useful in conjunction with FileDescriptor, as there's no
-// possible invalid value which can be serialised (one can type to use -1, but
-// the IPC channel will fail). It may also be useful if the invalid value is
-// otherwise expensive to serialise.
-template<typename A>
-struct Maybe {
- bool valid;
- A value;
-};
-
-} // namespace IPC
-
-#endif // CHROME_COMMON_MAYBE_H_