| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 MOJO_SHELL_EXTERNAL_APPLICATION_LISTENER_WIN_H_ | 5 #ifndef SHELL_EXTERNAL_APPLICATION_LISTENER_WIN_H_ |
| 6 #define MOJO_SHELL_EXTERNAL_APPLICATION_LISTENER_WIN_H_ | 6 #define SHELL_EXTERNAL_APPLICATION_LISTENER_WIN_H_ |
| 7 | 7 |
| 8 #include "mojo/shell/external_application_listener.h" | 8 #include "shell/external_application_listener.h" |
| 9 | 9 |
| 10 #include "base/callback.h" | 10 #include "base/callback.h" |
| 11 #include "base/files/file_path.h" | 11 #include "base/files/file_path.h" |
| 12 | 12 |
| 13 namespace mojo { | 13 namespace mojo { |
| 14 namespace shell { | 14 namespace shell { |
| 15 | 15 |
| 16 // External application registration is not supported on Windows, hence this | 16 // External application registration is not supported on Windows, hence this |
| 17 // stub. | 17 // stub. |
| 18 class ExternalApplicationListenerStub : public ExternalApplicationListener { | 18 class ExternalApplicationListenerStub : public ExternalApplicationListener { |
| 19 public: | 19 public: |
| 20 ExternalApplicationListenerStub(); | 20 ExternalApplicationListenerStub(); |
| 21 virtual ~ExternalApplicationListenerStub() override; | 21 virtual ~ExternalApplicationListenerStub() override; |
| 22 | 22 |
| 23 void ListenInBackground(const base::FilePath& listen_socket_path, | 23 void ListenInBackground(const base::FilePath& listen_socket_path, |
| 24 const RegisterCallback& register_callback) override; | 24 const RegisterCallback& register_callback) override; |
| 25 void ListenInBackgroundWithErrorCallback( | 25 void ListenInBackgroundWithErrorCallback( |
| 26 const base::FilePath& listen_socket_path, | 26 const base::FilePath& listen_socket_path, |
| 27 const RegisterCallback& register_callback, | 27 const RegisterCallback& register_callback, |
| 28 const ErrorCallback& error_callback) override; | 28 const ErrorCallback& error_callback) override; |
| 29 void WaitForListening() override; | 29 void WaitForListening() override; |
| 30 }; | 30 }; |
| 31 | 31 |
| 32 } // namespace shell | 32 } // namespace shell |
| 33 } // namespace mojo | 33 } // namespace mojo |
| 34 | 34 |
| 35 #endif // MOJO_SHELL_EXTERNAL_APPLICATION_LISTENER_WIN_H_ | 35 #endif // SHELL_EXTERNAL_APPLICATION_LISTENER_WIN_H_ |
| OLD | NEW |