| 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_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/scoped_comptr_win.h" |
| 14 #include "base/win/atlcheck.h" |
| 14 #include "chrome_frame/utils.h" | 15 #include "chrome_frame/utils.h" |
| 15 | 16 |
| 16 // A generic base class for IBindStatus callback implementation. | 17 // A generic base class for IBindStatus callback implementation. |
| 17 // If initialized with delegate, it will hand over all the calls | 18 // 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 | 19 // to the delegate. This can also be used as a base class to |
| 19 // provide the base implementation by not providing any delegate. | 20 // provide the base implementation by not providing any delegate. |
| 20 class BSCBImpl | 21 class BSCBImpl |
| 21 : public CComObjectRootEx<CComMultiThreadModel>, | 22 : public CComObjectRootEx<CComMultiThreadModel>, |
| 22 public IBindStatusCallbackEx, | 23 public IBindStatusCallbackEx, |
| 23 public IHttpNegotiate3, | 24 public IHttpNegotiate3, |
| (...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 89 std::string me(); | 90 std::string me(); |
| 90 | 91 |
| 91 ScopedComPtr<IBindStatusCallback> delegate_; | 92 ScopedComPtr<IBindStatusCallback> delegate_; |
| 92 ScopedComPtr<IBindCtx> bind_ctx_; | 93 ScopedComPtr<IBindCtx> bind_ctx_; |
| 93 | 94 |
| 94 private: | 95 private: |
| 95 DISALLOW_COPY_AND_ASSIGN(BSCBImpl); | 96 DISALLOW_COPY_AND_ASSIGN(BSCBImpl); |
| 96 }; | 97 }; |
| 97 | 98 |
| 98 #endif // CHROME_FRAME_BIND_STATUS_CALLBACK_IMPL_H_ | 99 #endif // CHROME_FRAME_BIND_STATUS_CALLBACK_IMPL_H_ |
| OLD | NEW |