Chromium Code Reviews| 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" |
| 38 #include "platform/geometry/IntRect.h" | |
|
Nate Chapin
2014/11/05 18:29:43
Is this actually needed?
Zhen Wang
2014/11/06 17:59:26
Removed
| |
| 37 #include "platform/heap/Handle.h" | 39 #include "platform/heap/Handle.h" |
| 38 #include "platform/network/ResourceLoadPriority.h" | 40 #include "platform/network/ResourceLoadPriority.h" |
| 39 #include "platform/weborigin/Referrer.h" | 41 #include "platform/weborigin/Referrer.h" |
| 40 #include "wtf/Forward.h" | 42 #include "wtf/Forward.h" |
| 41 #include "wtf/Vector.h" | 43 #include "wtf/Vector.h" |
| 42 #include <v8.h> | 44 #include <v8.h> |
| 43 | 45 |
| 44 namespace blink { | 46 namespace blink { |
| 45 class WebCookieJar; | 47 class WebCookieJar; |
| 46 class WebRTCPeerConnectionHandler; | 48 class WebRTCPeerConnectionHandler; |
| (...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 93 virtual void dispatchDidCommitLoad(LocalFrame*, HistoryItem*, HistoryCom mitType) = 0; | 95 virtual void dispatchDidCommitLoad(LocalFrame*, HistoryItem*, HistoryCom mitType) = 0; |
| 94 virtual void dispatchDidFailProvisionalLoad(const ResourceError&) = 0; | 96 virtual void dispatchDidFailProvisionalLoad(const ResourceError&) = 0; |
| 95 virtual void dispatchDidFailLoad(const ResourceError&) = 0; | 97 virtual void dispatchDidFailLoad(const ResourceError&) = 0; |
| 96 virtual void dispatchDidFinishDocumentLoad() = 0; | 98 virtual void dispatchDidFinishDocumentLoad() = 0; |
| 97 virtual void dispatchDidFinishLoad() = 0; | 99 virtual void dispatchDidFinishLoad() = 0; |
| 98 virtual void dispatchDidFirstVisuallyNonEmptyLayout() = 0; | 100 virtual void dispatchDidFirstVisuallyNonEmptyLayout() = 0; |
| 99 virtual void dispatchDidChangeThemeColor() = 0; | 101 virtual void dispatchDidChangeThemeColor() = 0; |
| 100 | 102 |
| 101 virtual NavigationPolicy decidePolicyForNavigation(const ResourceRequest &, DocumentLoader*, NavigationPolicy, bool isTransitionNavigation) = 0; | 103 virtual NavigationPolicy decidePolicyForNavigation(const ResourceRequest &, DocumentLoader*, NavigationPolicy, bool isTransitionNavigation) = 0; |
| 102 | 104 |
| 103 virtual void dispatchAddNavigationTransitionData(const String& origin, c onst String& selector, const String& markup) { } | 105 virtual void dispatchAddNavigationTransitionData(const Document::Transit ionElementData&) { } |
|
Nate Chapin
2014/11/05 18:29:43
I'm not thrilled with this struct being part of Do
| |
| 104 virtual void dispatchWillRequestResource(FetchRequest*) { } | 106 virtual void dispatchWillRequestResource(FetchRequest*) { } |
| 105 | 107 |
| 106 virtual void dispatchWillSendSubmitEvent(HTMLFormElement*) = 0; | 108 virtual void dispatchWillSendSubmitEvent(HTMLFormElement*) = 0; |
| 107 virtual void dispatchWillSubmitForm(HTMLFormElement*) = 0; | 109 virtual void dispatchWillSubmitForm(HTMLFormElement*) = 0; |
| 108 | 110 |
| 109 virtual void didStartLoading(LoadStartType) = 0; | 111 virtual void didStartLoading(LoadStartType) = 0; |
| 110 virtual void progressEstimateChanged(double progressEstimate) = 0; | 112 virtual void progressEstimateChanged(double progressEstimate) = 0; |
| 111 virtual void didStopLoading() = 0; | 113 virtual void didStopLoading() = 0; |
| 112 | 114 |
| 113 virtual void loadURLExternally(const ResourceRequest&, NavigationPolicy, const String& suggestedName = String()) = 0; | 115 virtual void loadURLExternally(const ResourceRequest&, NavigationPolicy, const String& suggestedName = String()) = 0; |
| (...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 220 virtual void didStopAllLoaders() { } | 222 virtual void didStopAllLoaders() { } |
| 221 | 223 |
| 222 virtual void dispatchDidChangeManifest() { } | 224 virtual void dispatchDidChangeManifest() { } |
| 223 | 225 |
| 224 virtual bool isFrameLoaderClientImpl() const { return false; } | 226 virtual bool isFrameLoaderClientImpl() const { return false; } |
| 225 }; | 227 }; |
| 226 | 228 |
| 227 } // namespace blink | 229 } // namespace blink |
| 228 | 230 |
| 229 #endif // FrameLoaderClient_h | 231 #endif // FrameLoaderClient_h |
| OLD | NEW |