Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(64)

Side by Side Diff: chrome_frame/stream_impl.h

Issue 6825055: Include base/win/scoped_comptr.h instead of base/scoped_comptr_win.h. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: revert bad indentation, rebase Created 9 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « chrome_frame/protocol_sink_wrap.cc ('k') | chrome_frame/test/chrome_frame_test_utils.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2010 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 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/win/scoped_comptr.h"
12 12
13 // A generic base class for IStream implementation. If provided 13 // A generic base class for IStream implementation. If provided
14 // with a delegate, it delegated calls to it otherwise can be 14 // with a delegate, it delegated calls to it otherwise can be
15 // used a as a base class for an IStream implementation. 15 // used a as a base class for an IStream implementation.
16 class StreamImpl : public IStream { 16 class StreamImpl : public IStream {
17 public: 17 public:
18 StreamImpl() {} 18 StreamImpl() {}
19 19
20 void Initialize(IStream* delegate); 20 void Initialize(IStream* delegate);
21 21
22 STDMETHOD(Write)(const void * buffer, ULONG size, ULONG* size_written); 22 STDMETHOD(Write)(const void * buffer, ULONG size, ULONG* size_written);
23 STDMETHOD(Read)(void* pv, ULONG cb, ULONG* read); 23 STDMETHOD(Read)(void* pv, ULONG cb, ULONG* read);
24 STDMETHOD(Seek)(LARGE_INTEGER move, DWORD origin, ULARGE_INTEGER* new_pos); 24 STDMETHOD(Seek)(LARGE_INTEGER move, DWORD origin, ULARGE_INTEGER* new_pos);
25 STDMETHOD(SetSize)(ULARGE_INTEGER new_size); 25 STDMETHOD(SetSize)(ULARGE_INTEGER new_size);
26 STDMETHOD(CopyTo)(IStream* stream, ULARGE_INTEGER cb, ULARGE_INTEGER* read, 26 STDMETHOD(CopyTo)(IStream* stream, ULARGE_INTEGER cb, ULARGE_INTEGER* read,
27 ULARGE_INTEGER* written); 27 ULARGE_INTEGER* written);
28 STDMETHOD(Commit)(DWORD flags); 28 STDMETHOD(Commit)(DWORD flags);
29 STDMETHOD(Revert)(); 29 STDMETHOD(Revert)();
30 STDMETHOD(LockRegion)(ULARGE_INTEGER offset, ULARGE_INTEGER cb, 30 STDMETHOD(LockRegion)(ULARGE_INTEGER offset, ULARGE_INTEGER cb,
31 DWORD type); 31 DWORD type);
32 STDMETHOD(UnlockRegion)(ULARGE_INTEGER offset, ULARGE_INTEGER cb, 32 STDMETHOD(UnlockRegion)(ULARGE_INTEGER offset, ULARGE_INTEGER cb,
33 DWORD type); 33 DWORD type);
34 STDMETHOD(Stat)(STATSTG* statstg, DWORD flag); 34 STDMETHOD(Stat)(STATSTG* statstg, DWORD flag);
35 STDMETHOD(Clone)(IStream** stream); 35 STDMETHOD(Clone)(IStream** stream);
36 36
37 protected: 37 protected:
38 ScopedComPtr<IStream> delegate_; 38 base::win::ScopedComPtr<IStream> delegate_;
39 39
40 private: 40 private:
41 DISALLOW_COPY_AND_ASSIGN(StreamImpl); 41 DISALLOW_COPY_AND_ASSIGN(StreamImpl);
42 }; 42 };
43 43
44 #endif // CHROME_FRAME_STREAM_IMPL_H_ 44 #endif // CHROME_FRAME_STREAM_IMPL_H_
OLDNEW
« no previous file with comments | « chrome_frame/protocol_sink_wrap.cc ('k') | chrome_frame/test/chrome_frame_test_utils.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698