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

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

Issue 2191533003: Refactor Timer classes in preparation for landing FrameTimers. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: More build fixes 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) 2010 Google Inc. All rights reserved. 2 * Copyright (C) 2010 Google 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 are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
82 static void start(LocalFrame*, ResourceRequest&, const FetchInitiatorInfo&, StoredCredentials = AllowStoredCredentials); 82 static void start(LocalFrame*, ResourceRequest&, const FetchInitiatorInfo&, StoredCredentials = AllowStoredCredentials);
83 83
84 void dispose(); 84 void dispose();
85 85
86 private: 86 private:
87 void didReceiveResponse(WebURLLoader*, const WebURLResponse&) final; 87 void didReceiveResponse(WebURLLoader*, const WebURLResponse&) final;
88 void didReceiveData(WebURLLoader*, const char*, int, int, int) final; 88 void didReceiveData(WebURLLoader*, const char*, int, int, int) final;
89 void didFinishLoading(WebURLLoader*, double, int64_t) final; 89 void didFinishLoading(WebURLLoader*, double, int64_t) final;
90 void didFail(WebURLLoader*, const WebURLError&) final; 90 void didFail(WebURLLoader*, const WebURLError&) final;
91 91
92 void timeout(Timer<PingLoader>*); 92 void timeout(TimerBase*);
93 93
94 void didFailLoading(LocalFrame*); 94 void didFailLoading(LocalFrame*);
95 95
96 std::unique_ptr<WebURLLoader> m_loader; 96 std::unique_ptr<WebURLLoader> m_loader;
97 Timer<PingLoader> m_timeout; 97 Timer<PingLoader> m_timeout;
98 String m_url; 98 String m_url;
99 unsigned long m_identifier; 99 unsigned long m_identifier;
100 SelfKeepAlive<PingLoader> m_keepAlive; 100 SelfKeepAlive<PingLoader> m_keepAlive;
101 }; 101 };
102 102
103 } // namespace blink 103 } // namespace blink
104 104
105 #endif // PingLoader_h 105 #endif // PingLoader_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/loader/LinkLoader.cpp ('k') | third_party/WebKit/Source/core/loader/PingLoader.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698