Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(204)

Side by Side Diff: third_party/WebKit/Source/core/loader/FrameLoader.h

Issue 2191533003: Refactor Timer classes in preparation for landing FrameTimers. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Android build fix Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2006, 2007, 2008, 2009, 2011 Apple Inc. All rights reserved. 2 * Copyright (C) 2006, 2007, 2008, 2009, 2011 Apple Inc. All rights reserved.
3 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. (http://www.t orchmobile.com/) 3 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. (http://www.t orchmobile.com/)
4 * Copyright (C) Research In Motion Limited 2009. All rights reserved. 4 * Copyright (C) Research In Motion Limited 2009. All rights reserved.
5 * Copyright (C) 2011 Google Inc. All rights reserved. 5 * Copyright (C) 2011 Google Inc. All rights reserved.
6 * 6 *
7 * Redistribution and use in source and binary forms, with or without 7 * Redistribution and use in source and binary forms, with or without
8 * modification, are permitted provided that the following conditions 8 * modification, are permitted provided that the following conditions
9 * are met: 9 * are met:
10 * 10 *
(...skipping 174 matching lines...) Expand 10 before | Expand all | Expand 10 after
185 void restoreScrollPositionAndViewState(); 185 void restoreScrollPositionAndViewState();
186 186
187 bool shouldContinueForNavigationPolicy(const ResourceRequest&, const Substit uteData&, DocumentLoader*, ContentSecurityPolicyDisposition, 187 bool shouldContinueForNavigationPolicy(const ResourceRequest&, const Substit uteData&, DocumentLoader*, ContentSecurityPolicyDisposition,
188 NavigationType, NavigationPolicy, bool shouldReplaceCurrentEntry, bool i sClientRedirect); 188 NavigationType, NavigationPolicy, bool shouldReplaceCurrentEntry, bool i sClientRedirect);
189 189
190 DECLARE_TRACE(); 190 DECLARE_TRACE();
191 191
192 static void setReferrerForFrameRequest(FrameLoadRequest&); 192 static void setReferrerForFrameRequest(FrameLoadRequest&);
193 193
194 private: 194 private:
195 void checkTimerFired(Timer<FrameLoader>*); 195 void checkTimerFired(TimerBase*);
196 void didAccessInitialDocumentTimerFired(Timer<FrameLoader>*); 196 void didAccessInitialDocumentTimerFired(TimerBase*);
197 197
198 bool prepareRequestForThisFrame(FrameLoadRequest&); 198 bool prepareRequestForThisFrame(FrameLoadRequest&);
199 FrameLoadType determineFrameLoadType(const FrameLoadRequest&); 199 FrameLoadType determineFrameLoadType(const FrameLoadRequest&);
200 200
201 SubstituteData defaultSubstituteDataForURL(const KURL&); 201 SubstituteData defaultSubstituteDataForURL(const KURL&);
202 202
203 bool shouldPerformFragmentNavigation(bool isFormSubmission, const String& ht tpMethod, FrameLoadType, const KURL&); 203 bool shouldPerformFragmentNavigation(bool isFormSubmission, const String& ht tpMethod, FrameLoadType, const KURL&);
204 void processFragment(const KURL&, LoadStartType); 204 void processFragment(const KURL&, LoadStartType);
205 205
206 void startLoad(FrameLoadRequest&, FrameLoadType, NavigationPolicy); 206 void startLoad(FrameLoadRequest&, FrameLoadType, NavigationPolicy);
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
267 ResourceRequest m_request; 267 ResourceRequest m_request;
268 Member<HistoryItem> m_item; 268 Member<HistoryItem> m_item;
269 FrameLoadType m_loadType; 269 FrameLoadType m_loadType;
270 HistoryLoadType m_historyLoadType; 270 HistoryLoadType m_historyLoadType;
271 }; 271 };
272 272
273 Member<DeferredHistoryLoad> m_deferredHistoryLoad; 273 Member<DeferredHistoryLoad> m_deferredHistoryLoad;
274 274
275 bool m_inStopAllLoaders; 275 bool m_inStopAllLoaders;
276 276
277 Timer<FrameLoader> m_checkTimer; 277 TaskRunnerTimer<FrameLoader> m_checkTimer;
haraken 2016/07/28 14:44:46 Is this change needed?
dcheng 2016/07/29 02:23:18 Yes: in this CL, Timer no longer takes a TaskRunne
278 278
279 bool m_didAccessInitialDocument; 279 bool m_didAccessInitialDocument;
280 280
281 SandboxFlags m_forcedSandboxFlags; 281 SandboxFlags m_forcedSandboxFlags;
282 282
283 bool m_dispatchingDidClearWindowObjectInMainWorld; 283 bool m_dispatchingDidClearWindowObjectInMainWorld;
284 bool m_protectProvisionalLoader; 284 bool m_protectProvisionalLoader;
285 }; 285 };
286 286
287 } // namespace blink 287 } // namespace blink
288 288
289 #endif // FrameLoader_h 289 #endif // FrameLoader_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698