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