| 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_BUGGY_BHO_HANDLING_H_ | 5 #ifndef CHROME_FRAME_BUGGY_BHO_HANDLING_H_ |
| 6 #define CHROME_FRAME_BUGGY_BHO_HANDLING_H_ | 6 #define CHROME_FRAME_BUGGY_BHO_HANDLING_H_ |
| 7 | 7 |
| 8 #include <atlbase.h> | 8 #include <atlbase.h> |
| 9 #include <atlcom.h> | 9 #include <atlcom.h> |
| 10 #include <exdisp.h> | 10 #include <exdisp.h> |
| 11 | 11 |
| 12 #include <vector> | 12 #include <vector> |
| 13 | 13 |
| 14 #include "base/threading/thread_local.h" | 14 #include "base/threading/thread_local.h" |
| 15 #include "base/win/atlcheck.h" |
| 15 #include "base/win/scoped_comptr.h" | 16 #include "base/win/scoped_comptr.h" |
| 16 | 17 |
| 17 namespace buggy_bho { | 18 namespace buggy_bho { |
| 18 | 19 |
| 19 // Method prototype for IDispatch::Invoke. | 20 // Method prototype for IDispatch::Invoke. |
| 20 typedef HRESULT (__stdcall* InvokeFunc)(IDispatch* me, DISPID dispid, | 21 typedef HRESULT (__stdcall* InvokeFunc)(IDispatch* me, DISPID dispid, |
| 21 REFIID riid, LCID lcid, WORD flags, | 22 REFIID riid, LCID lcid, WORD flags, |
| 22 DISPPARAMS* params, VARIANT* result, | 23 DISPPARAMS* params, VARIANT* result, |
| 23 EXCEPINFO* ei, UINT* err); | 24 EXCEPINFO* ei, UINT* err); |
| 24 | 25 |
| (...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 82 static base::ThreadLocalPointer<BuggyBhoTls> s_bad_object_tls_; | 83 static base::ThreadLocalPointer<BuggyBhoTls> s_bad_object_tls_; |
| 83 // The IWebBrowser2 instance for this thread. | 84 // The IWebBrowser2 instance for this thread. |
| 84 base::win::ScopedComPtr<IWebBrowser2> web_browser2_; | 85 base::win::ScopedComPtr<IWebBrowser2> web_browser2_; |
| 85 // Set to true when we are done patching the event sinks of buggy bho's. | 86 // Set to true when we are done patching the event sinks of buggy bho's. |
| 86 bool patched_; | 87 bool patched_; |
| 87 }; | 88 }; |
| 88 | 89 |
| 89 } // end namespace buggy_bho | 90 } // end namespace buggy_bho |
| 90 | 91 |
| 91 #endif // CHROME_FRAME_BUGGY_BHO_HANDLING_H_ | 92 #endif // CHROME_FRAME_BUGGY_BHO_HANDLING_H_ |
| OLD | NEW |