| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 BASE_WIN_SCOPED_COMPTR_H_ | 5 #ifndef BASE_WIN_SCOPED_COMPTR_H_ |
| 6 #define BASE_WIN_SCOPED_COMPTR_H_ | 6 #define BASE_WIN_SCOPED_COMPTR_H_ |
| 7 #pragma once | |
| 8 | 7 |
| 9 #include <unknwn.h> | 8 #include <unknwn.h> |
| 10 | 9 |
| 11 #include "base/logging.h" | 10 #include "base/logging.h" |
| 12 #include "base/memory/ref_counted.h" | 11 #include "base/memory/ref_counted.h" |
| 13 | 12 |
| 14 namespace base { | 13 namespace base { |
| 15 namespace win { | 14 namespace win { |
| 16 | 15 |
| 17 // A fairly minimalistic smart class for COM interface pointers. | 16 // A fairly minimalistic smart class for COM interface pointers. |
| (...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 160 | 159 |
| 161 static const IID& iid() { | 160 static const IID& iid() { |
| 162 return *interface_id; | 161 return *interface_id; |
| 163 } | 162 } |
| 164 }; | 163 }; |
| 165 | 164 |
| 166 } // namespace win | 165 } // namespace win |
| 167 } // namespace base | 166 } // namespace base |
| 168 | 167 |
| 169 #endif // BASE_WIN_SCOPED_COMPTR_H_ | 168 #endif // BASE_WIN_SCOPED_COMPTR_H_ |
| OLD | NEW |