| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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_EDK_EMBEDDER_PROCESS_DELEGATE_H_ | 5 #ifndef MOJO_EDK_EMBEDDER_PROCESS_DELEGATE_H_ |
| 6 #define MOJO_EDK_EMBEDDER_PROCESS_DELEGATE_H_ | 6 #define MOJO_EDK_EMBEDDER_PROCESS_DELEGATE_H_ |
| 7 | 7 |
| 8 #include "base/macros.h" |
| 8 #include "mojo/edk/system/system_impl_export.h" | 9 #include "mojo/edk/system/system_impl_export.h" |
| 9 #include "mojo/public/cpp/system/macros.h" | |
| 10 | 10 |
| 11 namespace mojo { | 11 namespace mojo { |
| 12 namespace edk { | 12 namespace edk { |
| 13 | 13 |
| 14 // An interface for process delegates. | 14 // An interface for process delegates. |
| 15 class MOJO_SYSTEM_IMPL_EXPORT ProcessDelegate { | 15 class MOJO_SYSTEM_IMPL_EXPORT ProcessDelegate { |
| 16 public: | 16 public: |
| 17 // Called when |ShutdownIPCSupport()| has completed work on the I/O thread. | 17 // Called when |ShutdownIPCSupport()| has completed work on the I/O thread. |
| 18 virtual void OnShutdownComplete() = 0; | 18 virtual void OnShutdownComplete() = 0; |
| 19 | 19 |
| 20 protected: | 20 protected: |
| 21 ProcessDelegate() {} | 21 ProcessDelegate() {} |
| 22 virtual ~ProcessDelegate() {} | 22 virtual ~ProcessDelegate() {} |
| 23 | 23 |
| 24 private: | 24 private: |
| 25 MOJO_DISALLOW_COPY_AND_ASSIGN(ProcessDelegate); | 25 DISALLOW_COPY_AND_ASSIGN(ProcessDelegate); |
| 26 }; | 26 }; |
| 27 | 27 |
| 28 } // namespace edk | 28 } // namespace edk |
| 29 } // namespace mojo | 29 } // namespace mojo |
| 30 | 30 |
| 31 #endif // MOJO_EDK_EMBEDDER_PROCESS_DELEGATE_H_ | 31 #endif // MOJO_EDK_EMBEDDER_PROCESS_DELEGATE_H_ |
| OLD | NEW |