LEFT | RIGHT |
1 /* | 1 /* |
2 * Copyright (C) 2014-2016 Apple Inc. All rights reserved. | 2 * Copyright (C) 2014-2016 Apple Inc. All rights reserved. |
3 * | 3 * |
4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
5 * modification, are permitted provided that the following conditions | 5 * modification, are permitted provided that the following conditions |
6 * are met: | 6 * are met: |
7 * 1. Redistributions of source code must retain the above copyright | 7 * 1. Redistributions of source code must retain the above copyright |
8 * notice, this list of conditions and the following disclaimer. | 8 * notice, this list of conditions and the following disclaimer. |
9 * 2. Redistributions in binary form must reproduce the above copyright | 9 * 2. Redistributions in binary form must reproduce the above copyright |
10 * notice, this list of conditions and the following disclaimer in the | 10 * notice, this list of conditions and the following disclaimer in the |
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
77 void navigationGestureWillEnd(bool willNavigate, WebBackForwardListItem&); | 77 void navigationGestureWillEnd(bool willNavigate, WebBackForwardListItem&); |
78 void navigationGestureDidEnd(bool willNavigate, WebBackForwardListItem&); | 78 void navigationGestureDidEnd(bool willNavigate, WebBackForwardListItem&); |
79 void willRecordNavigationSnapshot(WebBackForwardListItem&); | 79 void willRecordNavigationSnapshot(WebBackForwardListItem&); |
80 void navigationGestureSnapshotWasRemoved(); | 80 void navigationGestureSnapshotWasRemoved(); |
81 #if USE(QUICK_LOOK) | 81 #if USE(QUICK_LOOK) |
82 void didRequestPasswordForQuickLookDocument(); | 82 void didRequestPasswordForQuickLookDocument(); |
83 #endif | 83 #endif |
84 | 84 |
85 void didFirstPaint(); | 85 void didFirstPaint(); |
86 | 86 |
| 87 #if PLATFORM(IOS) |
| 88 enum class NetworkActivityTokenReleaseReason { LoadCompleted, ScreenLocked }
; |
| 89 void releaseNetworkActivityToken(NetworkActivityTokenReleaseReason); |
| 90 #endif |
| 91 |
87 private: | 92 private: |
88 class NavigationClient final : public API::NavigationClient { | 93 class NavigationClient final : public API::NavigationClient { |
89 public: | 94 public: |
90 explicit NavigationClient(NavigationState&); | 95 explicit NavigationClient(NavigationState&); |
91 ~NavigationClient(); | 96 ~NavigationClient(); |
92 | 97 |
93 private: | 98 private: |
94 void didStartProvisionalNavigation(WebPageProxy&, API::Navigation*, API:
:Object*) override; | 99 void didStartProvisionalNavigation(WebPageProxy&, API::Navigation*, API:
:Object*) override; |
95 void didReceiveServerRedirectForProvisionalNavigation(WebPageProxy&, API
::Navigation*, API::Object*) override; | 100 void didReceiveServerRedirectForProvisionalNavigation(WebPageProxy&, API
::Navigation*, API::Object*) override; |
96 void willPerformClientRedirect(WebPageProxy&, const WTF::String&, double
) override; | 101 void willPerformClientRedirect(WebPageProxy&, const WTF::String&, double
) override; |
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
169 void willChangeCanGoForward() override; | 174 void willChangeCanGoForward() override; |
170 void didChangeCanGoForward() override; | 175 void didChangeCanGoForward() override; |
171 void willChangeNetworkRequestsInProgress() override; | 176 void willChangeNetworkRequestsInProgress() override; |
172 void didChangeNetworkRequestsInProgress() override; | 177 void didChangeNetworkRequestsInProgress() override; |
173 void willChangeCertificateInfo() override; | 178 void willChangeCertificateInfo() override; |
174 void didChangeCertificateInfo() override; | 179 void didChangeCertificateInfo() override; |
175 void willChangeWebProcessIsResponsive() override; | 180 void willChangeWebProcessIsResponsive() override; |
176 void didChangeWebProcessIsResponsive() override; | 181 void didChangeWebProcessIsResponsive() override; |
177 | 182 |
178 #if PLATFORM(IOS) | 183 #if PLATFORM(IOS) |
179 void releaseNetworkActivityToken(); | 184 void releaseNetworkActivityTokenAfterLoadCompletion() { releaseNetworkActivi
tyToken(NetworkActivityTokenReleaseReason::LoadCompleted); } |
180 #endif | 185 #endif |
181 | 186 |
182 WKWebView *m_webView; | 187 WKWebView *m_webView; |
183 WeakObjCPtr<id <WKNavigationDelegate> > m_navigationDelegate; | 188 WeakObjCPtr<id <WKNavigationDelegate> > m_navigationDelegate; |
184 std::unique_ptr<SafeBrowsingController> m_safeBrowsingController; | 189 std::unique_ptr<SafeBrowsingController> m_safeBrowsingController; |
185 | 190 |
186 struct { | 191 struct { |
187 bool webViewDecidePolicyForNavigationActionDecisionHandler : 1; | 192 bool webViewDecidePolicyForNavigationActionDecisionHandler : 1; |
188 bool webViewDecidePolicyForNavigationActionDecisionHandlerWebsitePolicie
s : 1; | 193 bool webViewDecidePolicyForNavigationActionDecisionHandlerWebsitePolicie
s : 1; |
189 bool webViewDecidePolicyForNavigationActionUserInfoDecisionHandlerWebsit
ePolicies : 1; | 194 bool webViewDecidePolicyForNavigationActionUserInfoDecisionHandlerWebsit
ePolicies : 1; |
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
246 | 251 |
247 #if PLATFORM(IOS) | 252 #if PLATFORM(IOS) |
248 ProcessThrottler::BackgroundActivityToken m_activityToken; | 253 ProcessThrottler::BackgroundActivityToken m_activityToken; |
249 RunLoop::Timer<NavigationState> m_releaseActivityTimer; | 254 RunLoop::Timer<NavigationState> m_releaseActivityTimer; |
250 #endif | 255 #endif |
251 }; | 256 }; |
252 | 257 |
253 } // namespace WebKit | 258 } // namespace WebKit |
254 | 259 |
255 #endif | 260 #endif |
LEFT | RIGHT |