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

Side by Side Diff: third_party/WebKit/Source/core/loader/DocumentThreadableLoader.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) 2009, 2012 Google Inc. All rights reserved. 2 * Copyright (C) 2009, 2012 Google Inc. All rights reserved.
3 * Copyright (C) 2013, Intel Corporation 3 * Copyright (C) 2013, Intel Corporation
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 are 6 * modification, are permitted provided that the following conditions are
7 * met: 7 * met:
8 * 8 *
9 * * Redistributions of source code must retain the above copyright 9 * * 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 96 matching lines...) Expand 10 before | Expand all | Expand 10 after
107 107
108 // Methods containing code to handle resource fetch results which are 108 // Methods containing code to handle resource fetch results which are
109 // common to both sync and async mode. 109 // common to both sync and async mode.
110 // 110 //
111 // |this| may be dead after calling these method in async mode. 111 // |this| may be dead after calling these method in async mode.
112 void handleResponse(unsigned long identifier, const ResourceResponse&, s td::unique_ptr<WebDataConsumerHandle>); 112 void handleResponse(unsigned long identifier, const ResourceResponse&, s td::unique_ptr<WebDataConsumerHandle>);
113 void handleReceivedData(const char* data, size_t dataLength); 113 void handleReceivedData(const char* data, size_t dataLength);
114 void handleSuccessfulFinish(unsigned long identifier, double finishTime) ; 114 void handleSuccessfulFinish(unsigned long identifier, double finishTime) ;
115 115
116 // |this| may be dead after calling this method. 116 // |this| may be dead after calling this method.
117 void didTimeout(Timer<DocumentThreadableLoader>*); 117 void didTimeout(TimerBase*);
118 // Calls the appropriate loading method according to policy and data 118 // Calls the appropriate loading method according to policy and data
119 // about origin. Only for handling the initial load (including fallback 119 // about origin. Only for handling the initial load (including fallback
120 // after consulting ServiceWorker). 120 // after consulting ServiceWorker).
121 // 121 //
122 // |this| may be dead after calling this method in async mode. 122 // |this| may be dead after calling this method in async mode.
123 void dispatchInitialRequest(const ResourceRequest&); 123 void dispatchInitialRequest(const ResourceRequest&);
124 // |this| may be dead after calling this method in async mode. 124 // |this| may be dead after calling this method in async mode.
125 void makeCrossOriginAccessRequest(const ResourceRequest&); 125 void makeCrossOriginAccessRequest(const ResourceRequest&);
126 // Loads m_fallbackRequestForServiceWorker. 126 // Loads m_fallbackRequestForServiceWorker.
127 // 127 //
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after
230 // header when following the redirect. 230 // header when following the redirect.
231 bool m_didRedirect; 231 bool m_didRedirect;
232 Referrer m_referrerAfterRedirect; 232 Referrer m_referrerAfterRedirect;
233 233
234 WeakPtrFactory<DocumentThreadableLoader> m_weakFactory; 234 WeakPtrFactory<DocumentThreadableLoader> m_weakFactory;
235 }; 235 };
236 236
237 } // namespace blink 237 } // namespace blink
238 238
239 #endif // DocumentThreadableLoader_h 239 #endif // DocumentThreadableLoader_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698