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 220 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
231 | 231 |
232 // ChromeFrameActivexBase overrides | 232 // ChromeFrameActivexBase overrides |
233 HRESULT IOleObject_SetClientSite(IOleClientSite* client_site); | 233 HRESULT IOleObject_SetClientSite(IOleClientSite* client_site); |
234 | 234 |
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, const IPC::ContextMenuParams& params); | 239 bool HandleContextMenuCommand(UINT cmd, const IPC::ContextMenuParams& params); |
240 | 240 |
241 // Should connections initiated by this class try to block | |
242 // responses served with the X-Frame-Options header? | |
243 bool is_frame_busting_enabled(); | |
244 | |
245 // ChromeFramePlugin overrides. | 241 // ChromeFramePlugin overrides. |
246 virtual void OnAutomationServerReady(); | 242 virtual void OnAutomationServerReady(); |
247 | 243 |
248 protected: | 244 protected: |
249 // ChromeFrameActivexBase overrides | 245 // ChromeFrameActivexBase overrides |
250 virtual void OnOpenURL(int tab_handle, const GURL& url_to_open, | 246 virtual void OnOpenURL(int tab_handle, const GURL& url_to_open, |
251 const GURL& referrer, int open_disposition); | 247 const GURL& referrer, int open_disposition); |
252 | 248 |
253 virtual void OnGoToHistoryEntryOffset(int tab_handle, int offset); | 249 virtual void OnGoToHistoryEntryOffset(int tab_handle, int offset); |
254 | 250 |
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
322 bool is_automation_client_reused_; | 318 bool is_automation_client_reused_; |
323 | 319 |
324 ScopedComPtr<IInternetSecurityManager> security_manager_; | 320 ScopedComPtr<IInternetSecurityManager> security_manager_; |
325 | 321 |
326 public: | 322 public: |
327 ScopedComPtr<IOleInPlaceFrame> in_place_frame_; | 323 ScopedComPtr<IOleInPlaceFrame> in_place_frame_; |
328 OLEINPLACEFRAMEINFO frame_info_; | 324 OLEINPLACEFRAMEINFO frame_info_; |
329 }; | 325 }; |
330 | 326 |
331 #endif // CHROME_FRAME_CHROME_ACTIVE_DOCUMENT_H_ | 327 #endif // CHROME_FRAME_CHROME_ACTIVE_DOCUMENT_H_ |
OLD | NEW |