OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 1998, 1999 Torben Weis <weis@kde.org> | 2 * Copyright (C) 1998, 1999 Torben Weis <weis@kde.org> |
3 * 1999-2001 Lars Knoll <knoll@kde.org> | 3 * 1999-2001 Lars Knoll <knoll@kde.org> |
4 * 1999-2001 Antti Koivisto <koivisto@kde.org> | 4 * 1999-2001 Antti Koivisto <koivisto@kde.org> |
5 * 2000-2001 Simon Hausmann <hausmann@kde.org> | 5 * 2000-2001 Simon Hausmann <hausmann@kde.org> |
6 * 2000-2001 Dirk Mueller <mueller@kde.org> | 6 * 2000-2001 Dirk Mueller <mueller@kde.org> |
7 * 2000 Stefan Schimanski <1Stein@gmx.de> | 7 * 2000 Stefan Schimanski <1Stein@gmx.de> |
8 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010 Apple Inc. All rights | 8 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010 Apple Inc. All rights |
9 * reserved. | 9 * reserved. |
10 * Copyright (C) 2008 Nokia Corporation and/or its subsidiary(-ies) | 10 * Copyright (C) 2008 Nokia Corporation and/or its subsidiary(-ies) |
(...skipping 202 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
213 void RemoveSpellingMarkersUnderWords(const Vector<String>& words); | 213 void RemoveSpellingMarkersUnderWords(const Vector<String>& words); |
214 | 214 |
215 bool ShouldThrottleRendering() const; | 215 bool ShouldThrottleRendering() const; |
216 | 216 |
217 // Returns the frame scheduler, creating one if needed. | 217 // Returns the frame scheduler, creating one if needed. |
218 WebFrameScheduler* FrameScheduler(); | 218 WebFrameScheduler* FrameScheduler(); |
219 void ScheduleVisualUpdateUnlessThrottled(); | 219 void ScheduleVisualUpdateUnlessThrottled(); |
220 | 220 |
221 bool IsNavigationAllowed() const { return navigation_disable_count_ == 0; } | 221 bool IsNavigationAllowed() const { return navigation_disable_count_ == 0; } |
222 | 222 |
| 223 bool CanNavigate(const Frame&); |
| 224 |
223 InterfaceProvider* GetInterfaceProvider() { return interface_provider_; } | 225 InterfaceProvider* GetInterfaceProvider() { return interface_provider_; } |
224 InterfaceRegistry* GetInterfaceRegistry() { return interface_registry_; } | 226 InterfaceRegistry* GetInterfaceRegistry() { return interface_registry_; } |
225 | 227 |
226 LocalFrameClient* Client() const; | 228 LocalFrameClient* Client() const; |
227 | 229 |
228 ContentSettingsClient* GetContentSettingsClient(); | 230 ContentSettingsClient* GetContentSettingsClient(); |
229 | 231 |
230 PluginData* GetPluginData() const; | 232 PluginData* GetPluginData() const; |
231 | 233 |
232 PerformanceMonitor* GetPerformanceMonitor() { return performance_monitor_; } | 234 PerformanceMonitor* GetPerformanceMonitor() { return performance_monitor_; } |
(...skipping 30 matching lines...) Expand all Loading... |
263 InterfaceRegistry*); | 265 InterfaceRegistry*); |
264 | 266 |
265 // Intentionally private to prevent redundant checks when the type is | 267 // Intentionally private to prevent redundant checks when the type is |
266 // already LocalFrame. | 268 // already LocalFrame. |
267 bool IsLocalFrame() const override { return true; } | 269 bool IsLocalFrame() const override { return true; } |
268 bool IsRemoteFrame() const override { return false; } | 270 bool IsRemoteFrame() const override { return false; } |
269 | 271 |
270 void EnableNavigation() { --navigation_disable_count_; } | 272 void EnableNavigation() { --navigation_disable_count_; } |
271 void DisableNavigation() { ++navigation_disable_count_; } | 273 void DisableNavigation() { ++navigation_disable_count_; } |
272 | 274 |
| 275 bool CanNavigateWithoutFramebusting(const Frame&, String& error_reason); |
| 276 |
273 std::unique_ptr<WebFrameScheduler> frame_scheduler_; | 277 std::unique_ptr<WebFrameScheduler> frame_scheduler_; |
274 | 278 |
275 mutable FrameLoader loader_; | 279 mutable FrameLoader loader_; |
276 Member<NavigationScheduler> navigation_scheduler_; | 280 Member<NavigationScheduler> navigation_scheduler_; |
277 | 281 |
278 // Cleared by LocalFrame::detach(), so as to keep the observable lifespan | 282 // Cleared by LocalFrame::detach(), so as to keep the observable lifespan |
279 // of LocalFrame::view(). | 283 // of LocalFrame::view(). |
280 Member<LocalFrameView> view_; | 284 Member<LocalFrameView> view_; |
281 // Usually 0. Non-null if this is the top frame of PagePopup. | 285 // Usually 0. Non-null if this is the top frame of PagePopup. |
282 Member<Element> page_popup_owner_; | 286 Member<Element> page_popup_owner_; |
(...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
395 explicit ScopedFrameBlamer(LocalFrame*); | 399 explicit ScopedFrameBlamer(LocalFrame*); |
396 ~ScopedFrameBlamer(); | 400 ~ScopedFrameBlamer(); |
397 | 401 |
398 private: | 402 private: |
399 Member<LocalFrame> frame_; | 403 Member<LocalFrame> frame_; |
400 }; | 404 }; |
401 | 405 |
402 } // namespace blink | 406 } // namespace blink |
403 | 407 |
404 #endif // LocalFrame_h | 408 #endif // LocalFrame_h |
OLD | NEW |