| 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_EDK_JS_HANDLE_CLOSE_OBSERVER_H_ | 5 #ifndef MOJO_EDK_JS_HANDLE_CLOSE_OBSERVER_H_ |
| 6 #define MOJO_EDK_JS_HANDLE_CLOSE_OBSERVER_H_ | 6 #define MOJO_EDK_JS_HANDLE_CLOSE_OBSERVER_H_ |
| 7 | 7 |
| 8 namespace mojo { | 8 namespace mojo { |
| 9 namespace js { | 9 namespace js { |
| 10 | 10 |
| 11 class HandleCloseObserver { | 11 class HandleCloseObserver { |
| 12 public: | 12 public: |
| 13 virtual void OnWillCloseHandle() = 0; | 13 virtual void OnWillCloseHandle() = 0; |
| 14 | 14 |
| 15 protected: | 15 protected: |
| 16 virtual ~HandleCloseObserver() {} | 16 virtual ~HandleCloseObserver() {} |
| 17 }; | 17 }; |
| 18 | 18 |
| 19 } // namespace js | 19 } // namespace js |
| 20 } // namespace mojo | 20 } // namespace mojo |
| 21 | 21 |
| 22 #endif // MOJO_EDK_JS_HANDLE_CLOSE_OBSERVER_H_ | 22 #endif // MOJO_EDK_JS_HANDLE_CLOSE_OBSERVER_H_ |
| OLD | NEW |