OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 CHROME_FRAME_STREAM_IMPL_H_ | 5 #ifndef CHROME_FRAME_STREAM_IMPL_H_ |
6 #define CHROME_FRAME_STREAM_IMPL_H_ | 6 #define CHROME_FRAME_STREAM_IMPL_H_ |
7 | 7 |
8 #include <atlbase.h> | 8 #include <atlbase.h> |
9 #include <atlcom.h> | 9 #include <atlcom.h> |
10 | 10 |
11 #include "base/scoped_comptr_win.h" | 11 #include "base/scoped_comptr_win.h" |
| 12 #include "base/win/atlcheck.h" |
12 | 13 |
13 // A generic base class for IStream implementation. If provided | 14 // A generic base class for IStream implementation. If provided |
14 // with a delegate, it delegated calls to it otherwise can be | 15 // with a delegate, it delegated calls to it otherwise can be |
15 // used a as a base class for an IStream implementation. | 16 // used a as a base class for an IStream implementation. |
16 class StreamImpl : public IStream { | 17 class StreamImpl : public IStream { |
17 public: | 18 public: |
18 StreamImpl() {} | 19 StreamImpl() {} |
19 | 20 |
20 void Initialize(IStream* delegate); | 21 void Initialize(IStream* delegate); |
21 | 22 |
(...skipping 13 matching lines...) Expand all Loading... |
35 STDMETHOD(Clone)(IStream** stream); | 36 STDMETHOD(Clone)(IStream** stream); |
36 | 37 |
37 protected: | 38 protected: |
38 ScopedComPtr<IStream> delegate_; | 39 ScopedComPtr<IStream> delegate_; |
39 | 40 |
40 private: | 41 private: |
41 DISALLOW_COPY_AND_ASSIGN(StreamImpl); | 42 DISALLOW_COPY_AND_ASSIGN(StreamImpl); |
42 }; | 43 }; |
43 | 44 |
44 #endif // CHROME_FRAME_STREAM_IMPL_H_ | 45 #endif // CHROME_FRAME_STREAM_IMPL_H_ |
OLD | NEW |