| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2006, 2007, 2008, 2009, 2010, 2011, 2012 Apple Inc. All rights | 2 * Copyright (C) 2006, 2007, 2008, 2009, 2010, 2011, 2012 Apple Inc. All rights |
| 3 * reserved. | 3 * reserved. |
| 4 * Copyright (C) 2012 Google Inc. All rights reserved. | 4 * Copyright (C) 2012 Google Inc. All rights reserved. |
| 5 * | 5 * |
| 6 * Redistribution and use in source and binary forms, with or without | 6 * Redistribution and use in source and binary forms, with or without |
| 7 * modification, are permitted provided that the following conditions | 7 * modification, are permitted provided that the following conditions |
| 8 * are met: | 8 * are met: |
| 9 * | 9 * |
| 10 * 1. Redistributions of source code must retain the above copyright | 10 * 1. Redistributions of source code must retain the above copyright |
| (...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 83 class WebRTCPeerConnectionHandler; | 83 class WebRTCPeerConnectionHandler; |
| 84 class WebServiceWorkerProvider; | 84 class WebServiceWorkerProvider; |
| 85 class Widget; | 85 class Widget; |
| 86 | 86 |
| 87 class CORE_EXPORT FrameLoaderClient : public FrameClient { | 87 class CORE_EXPORT FrameLoaderClient : public FrameClient { |
| 88 public: | 88 public: |
| 89 ~FrameLoaderClient() override {} | 89 ~FrameLoaderClient() override {} |
| 90 | 90 |
| 91 virtual bool hasWebView() const = 0; // mainly for assertions | 91 virtual bool hasWebView() const = 0; // mainly for assertions |
| 92 | 92 |
| 93 virtual void dispatchWillSendRequest(ResourceRequest&) = 0; | 93 virtual void willSendRequest(ResourceRequest&, FrameLoadType) = 0; |
| 94 virtual void dispatchDidReceiveResponse(const ResourceResponse&) = 0; | 94 virtual void dispatchDidReceiveResponse(const ResourceResponse&) = 0; |
| 95 virtual void dispatchDidLoadResourceFromMemoryCache( | 95 virtual void dispatchDidLoadResourceFromMemoryCache( |
| 96 const ResourceRequest&, | 96 const ResourceRequest&, |
| 97 const ResourceResponse&) = 0; | 97 const ResourceResponse&) = 0; |
| 98 | 98 |
| 99 virtual void dispatchDidHandleOnloadEvents() = 0; | 99 virtual void dispatchDidHandleOnloadEvents() = 0; |
| 100 virtual void dispatchDidReceiveServerRedirectForProvisionalLoad() = 0; | 100 virtual void dispatchDidReceiveServerRedirectForProvisionalLoad() = 0; |
| 101 virtual void dispatchDidNavigateWithinPage(HistoryItem*, | 101 virtual void didNavigateWithinPage(DocumentLoader*, |
| 102 HistoryCommitType, | 102 FrameLoadType, |
| 103 bool contentInitiated) {} | 103 HistoryItem*, |
| 104 HistoryCommitType, |
| 105 bool contentInitiated) {} |
| 104 virtual void dispatchWillCommitProvisionalLoad() = 0; | 106 virtual void dispatchWillCommitProvisionalLoad() = 0; |
| 105 virtual void dispatchDidStartProvisionalLoad() = 0; | 107 virtual void didStartProvisionalLoad(DocumentLoader*, FrameLoadType) = 0; |
| 106 virtual void dispatchDidReceiveTitle(const String&) = 0; | 108 virtual void dispatchDidReceiveTitle(const String&) = 0; |
| 107 virtual void dispatchDidChangeIcons(IconType) = 0; | 109 virtual void dispatchDidChangeIcons(IconType) = 0; |
| 108 virtual void dispatchDidCommitLoad(HistoryItem*, HistoryCommitType) = 0; | 110 virtual void didCommitProvisionalLoad(DocumentLoader*, |
| 111 FrameLoadType, |
| 112 HistoryItem*, |
| 113 HistoryCommitType) = 0; |
| 109 virtual void dispatchDidFailProvisionalLoad(const ResourceError&, | 114 virtual void dispatchDidFailProvisionalLoad(const ResourceError&, |
| 110 HistoryCommitType) = 0; | 115 HistoryCommitType) = 0; |
| 111 virtual void dispatchDidFailLoad(const ResourceError&, HistoryCommitType) = 0; | 116 virtual void dispatchDidFailLoad(const ResourceError&, HistoryCommitType) = 0; |
| 112 virtual void dispatchDidFinishDocumentLoad() = 0; | 117 virtual void dispatchDidFinishDocumentLoad() = 0; |
| 113 virtual void dispatchDidFinishLoad() = 0; | 118 virtual void dispatchDidFinishLoad() = 0; |
| 114 virtual void dispatchDidChangeThemeColor() = 0; | 119 virtual void dispatchDidChangeThemeColor() = 0; |
| 115 | 120 |
| 116 virtual NavigationPolicy decidePolicyForNavigation( | 121 virtual NavigationPolicy decidePolicyForNavigation(const ResourceRequest&, |
| 117 const ResourceRequest&, | 122 DocumentLoader*, |
| 118 DocumentLoader*, | 123 NavigationPolicy, |
| 119 NavigationType, | 124 FrameLoadType, |
| 120 NavigationPolicy, | 125 bool isClientRedirect, |
| 121 bool shouldReplaceCurrentEntry, | 126 HTMLFormElement*) = 0; |
| 122 bool isClientRedirect, | |
| 123 HTMLFormElement*) = 0; | |
| 124 | 127 |
| 125 virtual void dispatchWillSendSubmitEvent(HTMLFormElement*) = 0; | 128 virtual void dispatchWillSendSubmitEvent(HTMLFormElement*) = 0; |
| 126 virtual void dispatchWillSubmitForm(HTMLFormElement*) = 0; | 129 virtual void dispatchWillSubmitForm(HTMLFormElement*) = 0; |
| 127 | 130 |
| 128 virtual void didStartLoading(LoadStartType) = 0; | 131 virtual void didStartLoading(LoadStartType) = 0; |
| 129 virtual void progressEstimateChanged(double progressEstimate) = 0; | 132 virtual void progressEstimateChanged(double progressEstimate) = 0; |
| 130 virtual void didStopLoading() = 0; | 133 virtual void didStopLoading() = 0; |
| 131 | 134 |
| 132 virtual void loadURLExternally(const ResourceRequest&, | 135 virtual void loadURLExternally(const ResourceRequest&, |
| 133 NavigationPolicy, | 136 NavigationPolicy, |
| 134 const String& suggestedName, | 137 const String& suggestedName, |
| 135 bool replacesCurrentHistoryItem) = 0; | 138 FrameLoadType) = 0; |
| 136 virtual void loadErrorPage(int reason) = 0; | 139 virtual void loadErrorPage(int reason) = 0; |
| 137 | 140 |
| 138 virtual bool navigateBackForward(int offset) const = 0; | 141 virtual bool navigateBackForward(int offset) const = 0; |
| 139 | 142 |
| 140 // Another page has accessed the initial empty document of this frame. It is | 143 // Another page has accessed the initial empty document of this frame. It is |
| 141 // no longer safe to display a provisional URL, since a URL spoof is now | 144 // no longer safe to display a provisional URL, since a URL spoof is now |
| 142 // possible. | 145 // possible. |
| 143 virtual void didAccessInitialDocument() {} | 146 virtual void didAccessInitialDocument() {} |
| 144 | 147 |
| 145 // This frame has displayed inactive content (such as an image) from an | 148 // This frame has displayed inactive content (such as an image) from an |
| (...skipping 192 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 338 virtual KURL overrideFlashEmbedWithHTML(const KURL&) { return KURL(); } | 341 virtual KURL overrideFlashEmbedWithHTML(const KURL&) { return KURL(); } |
| 339 | 342 |
| 340 virtual BlameContext* frameBlameContext() { return nullptr; } | 343 virtual BlameContext* frameBlameContext() { return nullptr; } |
| 341 | 344 |
| 342 virtual void setHasReceivedUserGesture() {} | 345 virtual void setHasReceivedUserGesture() {} |
| 343 }; | 346 }; |
| 344 | 347 |
| 345 } // namespace blink | 348 } // namespace blink |
| 346 | 349 |
| 347 #endif // FrameLoaderClient_h | 350 #endif // FrameLoaderClient_h |
| OLD | NEW |