| OLD | NEW |
| 1 // Copyright 2016 the V8 project authors. All rights reserved. | 1 // Copyright 2016 the V8 project 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 V8_INSPECTOR_PROTOCOLPLATFORM_H_ | 5 #ifndef V8_INSPECTOR_PROTOCOLPLATFORM_H_ |
| 6 #define V8_INSPECTOR_PROTOCOLPLATFORM_H_ | 6 #define V8_INSPECTOR_PROTOCOLPLATFORM_H_ |
| 7 | 7 |
| 8 #include <memory> | 8 #include <memory> |
| 9 | 9 |
| 10 #include "src/base/logging.h" | 10 #include "src/base/logging.h" |
| 11 | 11 |
| 12 namespace v8_inspector { | 12 namespace v8_inspector { |
| 13 | 13 |
| 14 template <typename T> | 14 template <typename T> |
| 15 std::unique_ptr<T> wrapUnique(T* ptr) { | 15 std::unique_ptr<T> wrapUnique(T* ptr) { |
| 16 return std::unique_ptr<T>(ptr); | 16 return std::unique_ptr<T>(ptr); |
| 17 } | 17 } |
| 18 | 18 |
| 19 } // namespace v8_inspector | 19 } // namespace v8_inspector |
| 20 | 20 |
| 21 #endif // V8_INSPECTOR_PROTOCOLPLATFORM_H_ | 21 #endif // V8_INSPECTOR_PROTOCOLPLATFORM_H_ |
| OLD | NEW |