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 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
72 class Page; | 72 class Page; |
73 class PluginView; | 73 class PluginView; |
74 class ResourceError; | 74 class ResourceError; |
75 class ResourceHandle; | 75 class ResourceHandle; |
76 class ResourceRequest; | 76 class ResourceRequest; |
77 class ResourceResponse; | 77 class ResourceResponse; |
78 class RTCPeerConnectionHandler; | 78 class RTCPeerConnectionHandler; |
79 class SecurityOrigin; | 79 class SecurityOrigin; |
80 class SharedBuffer; | 80 class SharedBuffer; |
81 class SocketStreamHandle; | 81 class SocketStreamHandle; |
82 class StringWithDirection; | |
83 class SubstituteData; | 82 class SubstituteData; |
84 class Widget; | 83 class Widget; |
85 | 84 |
86 class FrameLoaderClient { | 85 class FrameLoaderClient { |
87 public: | 86 public: |
88 virtual ~FrameLoaderClient() { } | 87 virtual ~FrameLoaderClient() { } |
89 | 88 |
90 virtual void frameLoaderDestroyed() = 0; | 89 virtual void frameLoaderDestroyed() = 0; |
91 | 90 |
92 virtual bool hasWebView() const = 0; // mainly for assertions | 91 virtual bool hasWebView() const = 0; // mainly for assertions |
93 | 92 |
94 virtual void detachedFromParent() = 0; | 93 virtual void detachedFromParent() = 0; |
95 | 94 |
96 virtual void dispatchWillRequestAfterPreconnect(ResourceRequest&) { } | 95 virtual void dispatchWillRequestAfterPreconnect(ResourceRequest&) { } |
97 virtual void dispatchWillSendRequest(DocumentLoader*, unsigned long iden
tifier, ResourceRequest&, const ResourceResponse& redirectResponse) = 0; | 96 virtual void dispatchWillSendRequest(DocumentLoader*, unsigned long iden
tifier, ResourceRequest&, const ResourceResponse& redirectResponse) = 0; |
98 virtual void dispatchDidReceiveResponse(DocumentLoader*, unsigned long i
dentifier, const ResourceResponse&) = 0; | 97 virtual void dispatchDidReceiveResponse(DocumentLoader*, unsigned long i
dentifier, const ResourceResponse&) = 0; |
99 virtual void dispatchDidFinishLoading(DocumentLoader*, unsigned long ide
ntifier) = 0; | 98 virtual void dispatchDidFinishLoading(DocumentLoader*, unsigned long ide
ntifier) = 0; |
100 virtual void dispatchDidLoadResourceFromMemoryCache(DocumentLoader*, con
st ResourceRequest&, const ResourceResponse&, int length) = 0; | 99 virtual void dispatchDidLoadResourceFromMemoryCache(DocumentLoader*, con
st ResourceRequest&, const ResourceResponse&, int length) = 0; |
101 | 100 |
102 virtual void dispatchDidHandleOnloadEvents() = 0; | 101 virtual void dispatchDidHandleOnloadEvents() = 0; |
103 virtual void dispatchDidReceiveServerRedirectForProvisionalLoad() = 0; | 102 virtual void dispatchDidReceiveServerRedirectForProvisionalLoad() = 0; |
104 virtual void dispatchDidNavigateWithinPage() { } | 103 virtual void dispatchDidNavigateWithinPage() { } |
105 virtual void dispatchWillClose() = 0; | 104 virtual void dispatchWillClose() = 0; |
106 virtual void dispatchDidStartProvisionalLoad() = 0; | 105 virtual void dispatchDidStartProvisionalLoad() = 0; |
107 virtual void dispatchDidReceiveTitle(const StringWithDirection&) = 0; | 106 virtual void dispatchDidReceiveTitle(const String&) = 0; |
108 virtual void dispatchDidChangeIcons(IconType) = 0; | 107 virtual void dispatchDidChangeIcons(IconType) = 0; |
109 virtual void dispatchDidCommitLoad() = 0; | 108 virtual void dispatchDidCommitLoad() = 0; |
110 virtual void dispatchDidFailProvisionalLoad(const ResourceError&) = 0; | 109 virtual void dispatchDidFailProvisionalLoad(const ResourceError&) = 0; |
111 virtual void dispatchDidFailLoad(const ResourceError&) = 0; | 110 virtual void dispatchDidFailLoad(const ResourceError&) = 0; |
112 virtual void dispatchDidFinishDocumentLoad() = 0; | 111 virtual void dispatchDidFinishDocumentLoad() = 0; |
113 virtual void dispatchDidFinishLoad() = 0; | 112 virtual void dispatchDidFinishLoad() = 0; |
114 | 113 |
115 virtual void dispatchDidLayout(LayoutMilestones) { } | 114 virtual void dispatchDidLayout(LayoutMilestones) { } |
116 | 115 |
117 virtual NavigationPolicy decidePolicyForNavigation(const ResourceRequest
&, DocumentLoader*, NavigationPolicy) = 0; | 116 virtual NavigationPolicy decidePolicyForNavigation(const ResourceRequest
&, DocumentLoader*, NavigationPolicy) = 0; |
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
215 | 214 |
216 // If an HTML document is being loaded, informs the embedder that the do
cument will have its <body> attached soon. | 215 // If an HTML document is being loaded, informs the embedder that the do
cument will have its <body> attached soon. |
217 virtual void dispatchWillInsertBody() { } | 216 virtual void dispatchWillInsertBody() { } |
218 | 217 |
219 virtual void dispatchDidChangeResourcePriority(unsigned long /*identifie
r*/, ResourceLoadPriority) { } | 218 virtual void dispatchDidChangeResourcePriority(unsigned long /*identifie
r*/, ResourceLoadPriority) { } |
220 }; | 219 }; |
221 | 220 |
222 } // namespace WebCore | 221 } // namespace WebCore |
223 | 222 |
224 #endif // FrameLoaderClient_h | 223 #endif // FrameLoaderClient_h |
OLD | NEW |