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 197 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
208 bool PreProcessContextMenu(HMENU menu); | 208 bool PreProcessContextMenu(HMENU menu); |
209 bool HandleContextMenuCommand(UINT cmd); | 209 bool HandleContextMenuCommand(UINT cmd); |
210 | 210 |
211 // Should connections initiated by this class try to block | 211 // Should connections initiated by this class try to block |
212 // responses served with the X-Frame-Options header? | 212 // responses served with the X-Frame-Options header? |
213 bool is_frame_busting_enabled(); | 213 bool is_frame_busting_enabled(); |
214 | 214 |
215 protected: | 215 protected: |
216 // ChromeFrameActivexBase overrides | 216 // ChromeFrameActivexBase overrides |
217 virtual void OnOpenURL(int tab_handle, const GURL& url_to_open, | 217 virtual void OnOpenURL(int tab_handle, const GURL& url_to_open, |
218 int open_disposition); | 218 const GURL& referrer, int open_disposition); |
219 | 219 |
220 virtual void OnLoad(int tab_handle, const GURL& url); | 220 virtual void OnLoad(int tab_handle, const GURL& url); |
221 virtual void OnGoToHistoryEntryOffset(int tab_handle, int offset); | 221 virtual void OnGoToHistoryEntryOffset(int tab_handle, int offset); |
222 | 222 |
223 // A helper method that updates our internal navigation state | 223 // A helper method that updates our internal navigation state |
224 // as well as IE's navigation state (viz Title and current URL). | 224 // as well as IE's navigation state (viz Title and current URL). |
225 // The navigation_flags is a TabContents::InvalidateTypes enum | 225 // The navigation_flags is a TabContents::InvalidateTypes enum |
226 void UpdateNavigationState(const IPC::NavigationInfo& nav_info); | 226 void UpdateNavigationState(const IPC::NavigationInfo& nav_info); |
227 | 227 |
228 TabProxy* GetTabProxy() const { | 228 TabProxy* GetTabProxy() const { |
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
288 ScopedComPtr<IInternetSecurityManager> security_manager_; | 288 ScopedComPtr<IInternetSecurityManager> security_manager_; |
289 | 289 |
290 public: | 290 public: |
291 ScopedComPtr<IOleInPlaceFrame> in_place_frame_; | 291 ScopedComPtr<IOleInPlaceFrame> in_place_frame_; |
292 OLEINPLACEFRAMEINFO frame_info_; | 292 OLEINPLACEFRAMEINFO frame_info_; |
293 }; | 293 }; |
294 | 294 |
295 OBJECT_ENTRY_AUTO(__uuidof(ChromeActiveDocument), ChromeActiveDocument) | 295 OBJECT_ENTRY_AUTO(__uuidof(ChromeActiveDocument), ChromeActiveDocument) |
296 | 296 |
297 #endif // CHROME_FRAME_CHROME_ACTIVE_DOCUMENT_H_ | 297 #endif // CHROME_FRAME_CHROME_ACTIVE_DOCUMENT_H_ |
OLD | NEW |