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

Unified Diff: mojo/shell/external_application_listener_win.h

Issue 522443003: Accept inbound connections on unix domain socket (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@bug407782
Patch Set: Deleted extra curly brace, which was closing a namespace too early Created 6 years, 3 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
Index: mojo/shell/external_application_listener_win.h
diff --git a/mojo/shell/external_application_listener_win.h b/mojo/shell/external_application_listener_win.h
new file mode 100644
index 0000000000000000000000000000000000000000..934cd41ac8d20049153a2ec3322be5ee6454e300
--- /dev/null
+++ b/mojo/shell/external_application_listener_win.h
@@ -0,0 +1,35 @@
+// 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_SHELL_EXTERNAL_APPLICATION_LISTENER_WIN_H_
+#define MOJO_SHELL_EXTERNAL_APPLICATION_LISTENER_WIN_H_
+
+#include "mojo/shell/external_application_listener.h"
+
+#include "base/callback.h"
+#include "base/files/file_path.h"
+
+namespace mojo {
+namespace shell {
+
+// External application registration is not supported on Windows, hence this
+// stub.
+class ExternalApplicationListenerStub : public ExternalApplicationListener {
+ public:
+ ExternalApplicationListenerStub();
+ virtual ~ExternalApplicationListenerStub() OVERRIDE;
+
+ void ListenInBackground(const base::FilePath& listen_socket_path,
+ const RegisterCallback& register_callback) OVERRIDE;
+ void ListenInBackgroundWithErrorCallback(
+ const base::FilePath& listen_socket_path,
+ const RegisterCallback& register_callback,
+ const ErrorCallback& error_callback) OVERRIDE;
+ void WaitForListening() OVERRIDE;
+};
+
+} // namespace shell
+} // namespace mojo
+
+#endif // MOJO_SHELL_EXTERNAL_APPLICATION_LISTENER_WIN_H_
« no previous file with comments | « mojo/shell/external_application_listener_unittest.cc ('k') | mojo/shell/external_application_listener_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698