| 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_CHROME_ACTIVE_DOCUMENT_H_ | 5 #ifndef CHROME_FRAME_CHROME_ACTIVE_DOCUMENT_H_ |
| 6 #define CHROME_FRAME_CHROME_ACTIVE_DOCUMENT_H_ | 6 #define CHROME_FRAME_CHROME_ACTIVE_DOCUMENT_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 224 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 235 HRESULT ActiveXDocActivate(LONG verb); | 235 HRESULT ActiveXDocActivate(LONG verb); |
| 236 | 236 |
| 237 // Callbacks from ChromeFramePlugin<T> | 237 // Callbacks from ChromeFramePlugin<T> |
| 238 bool PreProcessContextMenu(HMENU menu); | 238 bool PreProcessContextMenu(HMENU menu); |
| 239 bool HandleContextMenuCommand(UINT cmd); | 239 bool HandleContextMenuCommand(UINT cmd); |
| 240 | 240 |
| 241 // Should connections initiated by this class try to block | 241 // Should connections initiated by this class try to block |
| 242 // responses served with the X-Frame-Options header? | 242 // responses served with the X-Frame-Options header? |
| 243 bool is_frame_busting_enabled(); | 243 bool is_frame_busting_enabled(); |
| 244 | 244 |
| 245 // ChromeFramePlugin overrides. |
| 246 virtual void OnAutomationServerReady(); |
| 247 |
| 245 protected: | 248 protected: |
| 246 // ChromeFrameActivexBase overrides | 249 // ChromeFrameActivexBase overrides |
| 247 virtual void OnOpenURL(int tab_handle, const GURL& url_to_open, | 250 virtual void OnOpenURL(int tab_handle, const GURL& url_to_open, |
| 248 const GURL& referrer, int open_disposition); | 251 const GURL& referrer, int open_disposition); |
| 249 | 252 |
| 250 virtual void OnGoToHistoryEntryOffset(int tab_handle, int offset); | 253 virtual void OnGoToHistoryEntryOffset(int tab_handle, int offset); |
| 251 | 254 |
| 252 // A helper method that updates our internal navigation state | 255 // A helper method that updates our internal navigation state |
| 253 // as well as IE's navigation state (viz Title and current URL). | 256 // as well as IE's navigation state (viz Title and current URL). |
| 254 // The navigation_flags is a TabContents::InvalidateTypes enum | 257 // The navigation_flags is a TabContents::InvalidateTypes enum |
| (...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 321 ScopedComPtr<IInternetSecurityManager> security_manager_; | 324 ScopedComPtr<IInternetSecurityManager> security_manager_; |
| 322 | 325 |
| 323 public: | 326 public: |
| 324 ScopedComPtr<IOleInPlaceFrame> in_place_frame_; | 327 ScopedComPtr<IOleInPlaceFrame> in_place_frame_; |
| 325 OLEINPLACEFRAMEINFO frame_info_; | 328 OLEINPLACEFRAMEINFO frame_info_; |
| 326 }; | 329 }; |
| 327 | 330 |
| 328 OBJECT_ENTRY_AUTO(__uuidof(ChromeActiveDocument), ChromeActiveDocument) | 331 OBJECT_ENTRY_AUTO(__uuidof(ChromeActiveDocument), ChromeActiveDocument) |
| 329 | 332 |
| 330 #endif // CHROME_FRAME_CHROME_ACTIVE_DOCUMENT_H_ | 333 #endif // CHROME_FRAME_CHROME_ACTIVE_DOCUMENT_H_ |
| OLD | NEW |