| OLD | NEW |
| 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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_BHO_H_ | 5 #ifndef CHROME_FRAME_BHO_H_ |
| 6 #define CHROME_FRAME_BHO_H_ | 6 #define CHROME_FRAME_BHO_H_ |
| 7 | 7 |
| 8 #include <atlbase.h> | 8 #include <atlbase.h> |
| 9 #include <atlcom.h> | 9 #include <atlcom.h> |
| 10 #include <deletebrowsinghistory.h> | 10 #include <deletebrowsinghistory.h> |
| 11 #include <exdisp.h> | 11 #include <exdisp.h> |
| 12 #include <exdispid.h> | 12 #include <exdispid.h> |
| 13 #include <mshtml.h> | 13 #include <mshtml.h> |
| 14 #include <shdeprecated.h> | 14 #include <shdeprecated.h> |
| 15 | 15 |
| 16 #include <string> | 16 #include <string> |
| 17 | 17 |
| 18 #include "chrome_tab.h" // NOLINT | 18 #include "chrome_tab.h" // NOLINT |
| 19 #include "chrome_frame/delete_chrome_history.h" | 19 #include "chrome_frame/delete_chrome_history.h" |
| 20 #include "chrome_frame/infobar_manager.h" |
| 20 #include "chrome_frame/resource.h" | 21 #include "chrome_frame/resource.h" |
| 21 #include "chrome_frame/urlmon_moniker.h" | 22 #include "chrome_frame/urlmon_moniker.h" |
| 22 #include "chrome_frame/urlmon_url_request.h" | 23 #include "chrome_frame/urlmon_url_request.h" |
| 23 #include "grit/chrome_frame_resources.h" | 24 #include "grit/chrome_frame_resources.h" |
| 24 | 25 |
| 25 class DeleteChromeHistory; | 26 class DeleteChromeHistory; |
| 27 class InfobarManager; |
| 26 | 28 |
| 27 class PatchHelper { | 29 class PatchHelper { |
| 28 public: | 30 public: |
| 29 enum State { UNKNOWN, PATCH_IBROWSER, PATCH_PROTOCOL, PATCH_MONIKER }; | 31 enum State { UNKNOWN, PATCH_IBROWSER, PATCH_PROTOCOL, PATCH_MONIKER }; |
| 30 PatchHelper() : state_(UNKNOWN) { | 32 PatchHelper() : state_(UNKNOWN) { |
| 31 } | 33 } |
| 32 | 34 |
| 33 State state() const { | 35 State state() const { |
| 34 return state_; | 36 return state_; |
| 35 } | 37 } |
| (...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 113 // COM_INTERFACE_ENTRY_CACHED_TEAR_OFF manages the raw pointer from CComPtr | 115 // COM_INTERFACE_ENTRY_CACHED_TEAR_OFF manages the raw pointer from CComPtr |
| 114 // which ScopedComPtr doesn't expose. | 116 // which ScopedComPtr doesn't expose. |
| 115 CComPtr<IUnknown> delete_chrome_history_; | 117 CComPtr<IUnknown> delete_chrome_history_; |
| 116 | 118 |
| 117 protected: | 119 protected: |
| 118 bool PatchProtocolHandler(const CLSID& handler_clsid); | 120 bool PatchProtocolHandler(const CLSID& handler_clsid); |
| 119 | 121 |
| 120 static _ATL_FUNC_INFO kBeforeNavigate2Info; | 122 static _ATL_FUNC_INFO kBeforeNavigate2Info; |
| 121 static _ATL_FUNC_INFO kNavigateComplete2Info; | 123 static _ATL_FUNC_INFO kNavigateComplete2Info; |
| 122 static _ATL_FUNC_INFO kDocumentCompleteInfo; | 124 static _ATL_FUNC_INFO kDocumentCompleteInfo; |
| 125 |
| 126 private: |
| 127 scoped_ptr<InfobarManager> infobar_manager_; |
| 123 }; | 128 }; |
| 124 | 129 |
| 125 #endif // CHROME_FRAME_BHO_H_ | 130 #endif // CHROME_FRAME_BHO_H_ |
| OLD | NEW |