| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2006, 2007, 2008, 2009, 2010, 2011, 2012 Apple Inc. All rights
reserved. | 2 * Copyright (C) 2006, 2007, 2008, 2009, 2010, 2011, 2012 Apple Inc. All rights
reserved. |
| 3 * Copyright (C) 2012 Google Inc. All rights reserved. | 3 * Copyright (C) 2012 Google Inc. All rights reserved. |
| 4 * | 4 * |
| 5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
| 6 * modification, are permitted provided that the following conditions | 6 * modification, are permitted provided that the following conditions |
| 7 * are met: | 7 * are met: |
| 8 * | 8 * |
| 9 * 1. Redistributions of source code must retain the above copyright | 9 * 1. Redistributions of source code must retain the above copyright |
| 10 * notice, this list of conditions and the following disclaimer. | 10 * notice, this list of conditions and the following disclaimer. |
| (...skipping 12 matching lines...) Expand all Loading... |
| 23 * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; | 23 * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; |
| 24 * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND | 24 * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND |
| 25 * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | 25 * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
| 26 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF | 26 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF |
| 27 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 27 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| 28 */ | 28 */ |
| 29 | 29 |
| 30 #ifndef FrameLoaderClient_h | 30 #ifndef FrameLoaderClient_h |
| 31 #define FrameLoaderClient_h | 31 #define FrameLoaderClient_h |
| 32 | 32 |
| 33 #include "core/dom/Document.h" |
| 33 #include "core/dom/IconURL.h" | 34 #include "core/dom/IconURL.h" |
| 34 #include "core/frame/FrameClient.h" | 35 #include "core/frame/FrameClient.h" |
| 35 #include "core/loader/FrameLoaderTypes.h" | 36 #include "core/loader/FrameLoaderTypes.h" |
| 36 #include "core/loader/NavigationPolicy.h" | 37 #include "core/loader/NavigationPolicy.h" |
| 37 #include "platform/heap/Handle.h" | 38 #include "platform/heap/Handle.h" |
| 38 #include "platform/network/ResourceLoadPriority.h" | 39 #include "platform/network/ResourceLoadPriority.h" |
| 39 #include "platform/weborigin/Referrer.h" | 40 #include "platform/weborigin/Referrer.h" |
| 40 #include "wtf/Forward.h" | 41 #include "wtf/Forward.h" |
| 41 #include "wtf/Vector.h" | 42 #include "wtf/Vector.h" |
| 42 #include <v8.h> | 43 #include <v8.h> |
| (...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 92 virtual void dispatchDidCommitLoad(LocalFrame*, HistoryItem*, HistoryCom
mitType) = 0; | 93 virtual void dispatchDidCommitLoad(LocalFrame*, HistoryItem*, HistoryCom
mitType) = 0; |
| 93 virtual void dispatchDidFailProvisionalLoad(const ResourceError&) = 0; | 94 virtual void dispatchDidFailProvisionalLoad(const ResourceError&) = 0; |
| 94 virtual void dispatchDidFailLoad(const ResourceError&) = 0; | 95 virtual void dispatchDidFailLoad(const ResourceError&) = 0; |
| 95 virtual void dispatchDidFinishDocumentLoad() = 0; | 96 virtual void dispatchDidFinishDocumentLoad() = 0; |
| 96 virtual void dispatchDidFinishLoad() = 0; | 97 virtual void dispatchDidFinishLoad() = 0; |
| 97 virtual void dispatchDidFirstVisuallyNonEmptyLayout() = 0; | 98 virtual void dispatchDidFirstVisuallyNonEmptyLayout() = 0; |
| 98 virtual void dispatchDidChangeThemeColor() = 0; | 99 virtual void dispatchDidChangeThemeColor() = 0; |
| 99 | 100 |
| 100 virtual NavigationPolicy decidePolicyForNavigation(const ResourceRequest
&, DocumentLoader*, NavigationPolicy, bool isTransitionNavigation) = 0; | 101 virtual NavigationPolicy decidePolicyForNavigation(const ResourceRequest
&, DocumentLoader*, NavigationPolicy, bool isTransitionNavigation) = 0; |
| 101 | 102 |
| 102 virtual void dispatchAddNavigationTransitionData(const String& origin, c
onst String& selector, const String& markup) { } | 103 virtual void dispatchAddNavigationTransitionData(const Document::Transit
ionElementData&) { } |
| 103 virtual void dispatchWillRequestResource(FetchRequest*) { } | 104 virtual void dispatchWillRequestResource(FetchRequest*) { } |
| 104 | 105 |
| 105 virtual void dispatchWillSendSubmitEvent(HTMLFormElement*) = 0; | 106 virtual void dispatchWillSendSubmitEvent(HTMLFormElement*) = 0; |
| 106 virtual void dispatchWillSubmitForm(HTMLFormElement*) = 0; | 107 virtual void dispatchWillSubmitForm(HTMLFormElement*) = 0; |
| 107 | 108 |
| 108 virtual void didStartLoading(LoadStartType) = 0; | 109 virtual void didStartLoading(LoadStartType) = 0; |
| 109 virtual void progressEstimateChanged(double progressEstimate) = 0; | 110 virtual void progressEstimateChanged(double progressEstimate) = 0; |
| 110 virtual void didStopLoading() = 0; | 111 virtual void didStopLoading() = 0; |
| 111 | 112 |
| 112 virtual void loadURLExternally(const ResourceRequest&, NavigationPolicy,
const String& suggestedName = String()) = 0; | 113 virtual void loadURLExternally(const ResourceRequest&, NavigationPolicy,
const String& suggestedName = String()) = 0; |
| (...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 220 virtual void didStopAllLoaders() { } | 221 virtual void didStopAllLoaders() { } |
| 221 | 222 |
| 222 virtual void dispatchDidChangeManifest() { } | 223 virtual void dispatchDidChangeManifest() { } |
| 223 | 224 |
| 224 virtual bool isFrameLoaderClientImpl() const { return false; } | 225 virtual bool isFrameLoaderClientImpl() const { return false; } |
| 225 }; | 226 }; |
| 226 | 227 |
| 227 } // namespace blink | 228 } // namespace blink |
| 228 | 229 |
| 229 #endif // FrameLoaderClient_h | 230 #endif // FrameLoaderClient_h |
| OLD | NEW |