OLD | NEW |
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_BIND_STATUS_CALLBACK_IMPL_H_ | 5 #ifndef CHROME_FRAME_BIND_STATUS_CALLBACK_IMPL_H_ |
6 #define CHROME_FRAME_BIND_STATUS_CALLBACK_IMPL_H_ | 6 #define CHROME_FRAME_BIND_STATUS_CALLBACK_IMPL_H_ |
7 | 7 |
8 #include <atlbase.h> | 8 #include <atlbase.h> |
9 #include <atlcom.h> | 9 #include <atlcom.h> |
10 #include <string> | 10 #include <string> |
11 #include <urlmon.h> | 11 #include <urlmon.h> |
12 | 12 |
13 #include "base/scoped_comptr_win.h" | 13 #include "base/win/scoped_comptr.h" |
14 #include "chrome_frame/utils.h" | 14 #include "chrome_frame/utils.h" |
15 | 15 |
16 // A generic base class for IBindStatus callback implementation. | 16 // A generic base class for IBindStatus callback implementation. |
17 // If initialized with delegate, it will hand over all the calls | 17 // If initialized with delegate, it will hand over all the calls |
18 // to the delegate. This can also be used as a base class to | 18 // to the delegate. This can also be used as a base class to |
19 // provide the base implementation by not providing any delegate. | 19 // provide the base implementation by not providing any delegate. |
20 class BSCBImpl | 20 class BSCBImpl |
21 : public CComObjectRootEx<CComMultiThreadModel>, | 21 : public CComObjectRootEx<CComMultiThreadModel>, |
22 public IBindStatusCallbackEx, | 22 public IBindStatusCallbackEx, |
23 public IHttpNegotiate3, | 23 public IHttpNegotiate3, |
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
81 STDMETHOD(GetRootSecurityId)(BYTE* security_id, DWORD* security_id_size, | 81 STDMETHOD(GetRootSecurityId)(BYTE* security_id, DWORD* security_id_size, |
82 DWORD_PTR reserved); | 82 DWORD_PTR reserved); |
83 | 83 |
84 // IHttpNegotiate3 | 84 // IHttpNegotiate3 |
85 STDMETHOD(GetSerializedClientCertContext)(BYTE** cert, DWORD* cert_size); | 85 STDMETHOD(GetSerializedClientCertContext)(BYTE** cert, DWORD* cert_size); |
86 | 86 |
87 protected: | 87 protected: |
88 // used for logging. | 88 // used for logging. |
89 std::string me(); | 89 std::string me(); |
90 | 90 |
91 ScopedComPtr<IBindStatusCallback> delegate_; | 91 base::win::ScopedComPtr<IBindStatusCallback> delegate_; |
92 ScopedComPtr<IBindCtx> bind_ctx_; | 92 base::win::ScopedComPtr<IBindCtx> bind_ctx_; |
93 | 93 |
94 private: | 94 private: |
95 DISALLOW_COPY_AND_ASSIGN(BSCBImpl); | 95 DISALLOW_COPY_AND_ASSIGN(BSCBImpl); |
96 }; | 96 }; |
97 | 97 |
98 #endif // CHROME_FRAME_BIND_STATUS_CALLBACK_IMPL_H_ | 98 #endif // CHROME_FRAME_BIND_STATUS_CALLBACK_IMPL_H_ |
OLD | NEW |