| 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 "mojo/edk/system/system_impl_export.h" | 8 #include "mojo/edk/system/system_impl_export.h" |
| 9 #include "third_party/mojo/src/mojo/public/cpp/system/macros.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". Note that this is NOT | 17 // Called when |ShutdownIPCSupport()| has "completed". Note that this is NOT |
| 18 // called if |ShutdownIPCSupportOnIOThread()| is used instead. | 18 // called if |ShutdownIPCSupportOnIOThread()| is used instead. |
| 19 virtual void OnShutdownComplete() = 0; | 19 virtual void OnShutdownComplete() = 0; |
| 20 | 20 |
| 21 protected: | 21 protected: |
| 22 ProcessDelegate() {} | 22 ProcessDelegate() {} |
| 23 virtual ~ProcessDelegate() {} | 23 virtual ~ProcessDelegate() {} |
| 24 | 24 |
| 25 private: | 25 private: |
| 26 MOJO_DISALLOW_COPY_AND_ASSIGN(ProcessDelegate); | 26 MOJO_DISALLOW_COPY_AND_ASSIGN(ProcessDelegate); |
| 27 }; | 27 }; |
| 28 | 28 |
| 29 } // namespace edk | 29 } // namespace edk |
| 30 } // namespace mojo | 30 } // namespace mojo |
| 31 | 31 |
| 32 #endif // MOJO_EDK_EMBEDDER_PROCESS_DELEGATE_H_ | 32 #endif // MOJO_EDK_EMBEDDER_PROCESS_DELEGATE_H_ |
| OLD | NEW |