OLD | NEW |
(Empty) | |
| 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 |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef MOJO_EDK_EMBEDDER_PROCESS_DELEGATE_H_ |
| 6 #define MOJO_EDK_EMBEDDER_PROCESS_DELEGATE_H_ |
| 7 |
| 8 #include "base/macros.h" |
| 9 #include "mojo/edk/embedder/process_type.h" |
| 10 #include "mojo/edk/system/system_impl_export.h" |
| 11 |
| 12 namespace mojo { |
| 13 namespace embedder { |
| 14 |
| 15 // An interface for process delegates. |
| 16 class MOJO_SYSTEM_IMPL_EXPORT ProcessDelegate { |
| 17 public: |
| 18 virtual ProcessType GetType() const; |
| 19 |
| 20 // Called when |ShutdownIPCSupport()| has "completed". Note that this is NOT |
| 21 // called if |ShutdownIPCSupportOnIOThread()| is used instead. |
| 22 virtual void OnShutdownComplete() = 0; |
| 23 |
| 24 protected: |
| 25 ProcessDelegate() {} |
| 26 virtual ~ProcessDelegate() {} |
| 27 |
| 28 private: |
| 29 DISALLOW_COPY_AND_ASSIGN(ProcessDelegate); |
| 30 }; |
| 31 |
| 32 inline ProcessType ProcessDelegate::GetType() const { |
| 33 return ProcessType::NONE; |
| 34 } |
| 35 |
| 36 } // namespace embedder |
| 37 } // namespace mojo |
| 38 |
| 39 #endif // MOJO_EDK_EMBEDDER_PROCESS_DELEGATE_H_ |
OLD | NEW |