| OLD | NEW |
| 1 // Copyright (c) 2011 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_CHROME_FRAME_ACTIVEX_BASE_H_ | 5 #ifndef CHROME_FRAME_CHROME_FRAME_ACTIVEX_BASE_H_ |
| 6 #define CHROME_FRAME_CHROME_FRAME_ACTIVEX_BASE_H_ | 6 #define CHROME_FRAME_CHROME_FRAME_ACTIVEX_BASE_H_ |
| 7 | 7 |
| 8 #include <atlbase.h> | 8 #include <atlbase.h> |
| 9 #include <atlcom.h> | 9 #include <atlcom.h> |
| 10 #include <atlctl.h> | 10 #include <atlctl.h> |
| (...skipping 10 matching lines...) Expand all Loading... |
| 21 #include "base/string_util.h" | 21 #include "base/string_util.h" |
| 22 #include "base/stringprintf.h" | 22 #include "base/stringprintf.h" |
| 23 #include "base/utf_string_conversions.h" | 23 #include "base/utf_string_conversions.h" |
| 24 #include "base/win/scoped_bstr.h" | 24 #include "base/win/scoped_bstr.h" |
| 25 #include "base/win/scoped_comptr.h" | 25 #include "base/win/scoped_comptr.h" |
| 26 #include "base/win/scoped_variant.h" | 26 #include "base/win/scoped_variant.h" |
| 27 #include "grit/chrome_frame_resources.h" | 27 #include "grit/chrome_frame_resources.h" |
| 28 #include "chrome/app/chrome_command_ids.h" | 28 #include "chrome/app/chrome_command_ids.h" |
| 29 #include "chrome/common/url_constants.h" | 29 #include "chrome/common/url_constants.h" |
| 30 #include "chrome_frame/chrome_frame_plugin.h" | 30 #include "chrome_frame/chrome_frame_plugin.h" |
| 31 #include "chrome_frame/chrome_tab.h" |
| 31 #include "chrome_frame/com_message_event.h" | 32 #include "chrome_frame/com_message_event.h" |
| 32 #include "chrome_frame/com_type_info_holder.h" | 33 #include "chrome_frame/com_type_info_holder.h" |
| 33 #include "chrome_frame/simple_resource_loader.h" | 34 #include "chrome_frame/simple_resource_loader.h" |
| 34 #include "chrome_frame/urlmon_url_request.h" | 35 #include "chrome_frame/urlmon_url_request.h" |
| 35 #include "chrome_frame/urlmon_url_request_private.h" | 36 #include "chrome_frame/urlmon_url_request_private.h" |
| 36 #include "chrome_frame/utils.h" | 37 #include "chrome_frame/utils.h" |
| 37 #include "grit/generated_resources.h" | 38 #include "grit/generated_resources.h" |
| 38 #include "net/base/cookie_monster.h" | 39 #include "net/base/cookie_monster.h" |
| 39 | 40 |
| 40 // Include without path to make GYP build see it. | |
| 41 #include "chrome_tab.h" // NOLINT | |
| 42 | |
| 43 // Connection point class to support firing IChromeFrameEvents (dispinterface). | 41 // Connection point class to support firing IChromeFrameEvents (dispinterface). |
| 44 template<class T> | 42 template<class T> |
| 45 class ATL_NO_VTABLE ProxyDIChromeFrameEvents | 43 class ATL_NO_VTABLE ProxyDIChromeFrameEvents |
| 46 : public IConnectionPointImpl<T, &DIID_DIChromeFrameEvents> { | 44 : public IConnectionPointImpl<T, &DIID_DIChromeFrameEvents> { |
| 47 public: | 45 public: |
| 48 void FireMethodWithParams(ChromeFrameEventDispId dispid, | 46 void FireMethodWithParams(ChromeFrameEventDispId dispid, |
| 49 const VARIANT* params, size_t num_params) { | 47 const VARIANT* params, size_t num_params) { |
| 50 T* me = static_cast<T*>(this); | 48 T* me = static_cast<T*>(this); |
| 51 // We need to copy the whole vector and AddRef the sinks in case | 49 // We need to copy the whole vector and AddRef the sinks in case |
| 52 // some would get disconnected as we fire methods. Note that this is not | 50 // some would get disconnected as we fire methods. Note that this is not |
| (...skipping 1167 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1220 EventHandlers onreadystatechanged_; | 1218 EventHandlers onreadystatechanged_; |
| 1221 EventHandlers onprivatemessage_; | 1219 EventHandlers onprivatemessage_; |
| 1222 EventHandlers onextensionready_; | 1220 EventHandlers onextensionready_; |
| 1223 | 1221 |
| 1224 // Handle network requests when host network stack is used. Passed to the | 1222 // Handle network requests when host network stack is used. Passed to the |
| 1225 // automation client on initialization. | 1223 // automation client on initialization. |
| 1226 scoped_ptr<UrlmonUrlRequestManager> url_fetcher_; | 1224 scoped_ptr<UrlmonUrlRequestManager> url_fetcher_; |
| 1227 }; | 1225 }; |
| 1228 | 1226 |
| 1229 #endif // CHROME_FRAME_CHROME_FRAME_ACTIVEX_BASE_H_ | 1227 #endif // CHROME_FRAME_CHROME_FRAME_ACTIVEX_BASE_H_ |
| OLD | NEW |