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

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

Issue 2080623002: Revert "Remove OwnPtr from Blink." (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 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 23 matching lines...) Expand all
34 34
35 #include "core/CoreExport.h" 35 #include "core/CoreExport.h"
36 #include "core/fetch/ResourceLoaderOptions.h" 36 #include "core/fetch/ResourceLoaderOptions.h"
37 #include "core/frame/LocalFrameLifecycleObserver.h" 37 #include "core/frame/LocalFrameLifecycleObserver.h"
38 #include "platform/Timer.h" 38 #include "platform/Timer.h"
39 #include "platform/heap/Handle.h" 39 #include "platform/heap/Handle.h"
40 #include "platform/heap/SelfKeepAlive.h" 40 #include "platform/heap/SelfKeepAlive.h"
41 #include "public/platform/WebURLLoaderClient.h" 41 #include "public/platform/WebURLLoaderClient.h"
42 #include "wtf/Forward.h" 42 #include "wtf/Forward.h"
43 #include "wtf/Noncopyable.h" 43 #include "wtf/Noncopyable.h"
44 #include <memory>
45 44
46 namespace blink { 45 namespace blink {
47 46
48 class EncodedFormData; 47 class EncodedFormData;
49 class LocalFrame; 48 class LocalFrame;
50 class KURL; 49 class KURL;
51 class ResourceRequest; 50 class ResourceRequest;
52 51
53 // Issue an asynchronous, one-directional request at some resources, ignoring 52 // Issue an asynchronous, one-directional request at some resources, ignoring
54 // any response. The request is made independent of any LocalFrame staying alive , 53 // any response. The request is made independent of any LocalFrame staying alive ,
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
89 private: 88 private:
90 void didReceiveResponse(WebURLLoader*, const WebURLResponse&) final; 89 void didReceiveResponse(WebURLLoader*, const WebURLResponse&) final;
91 void didReceiveData(WebURLLoader*, const char*, int, int) final; 90 void didReceiveData(WebURLLoader*, const char*, int, int) final;
92 void didFinishLoading(WebURLLoader*, double, int64_t) final; 91 void didFinishLoading(WebURLLoader*, double, int64_t) final;
93 void didFail(WebURLLoader*, const WebURLError&) final; 92 void didFail(WebURLLoader*, const WebURLError&) final;
94 93
95 void timeout(Timer<PingLoader>*); 94 void timeout(Timer<PingLoader>*);
96 95
97 void didFailLoading(LocalFrame*); 96 void didFailLoading(LocalFrame*);
98 97
99 std::unique_ptr<WebURLLoader> m_loader; 98 OwnPtr<WebURLLoader> m_loader;
100 Timer<PingLoader> m_timeout; 99 Timer<PingLoader> m_timeout;
101 String m_url; 100 String m_url;
102 unsigned long m_identifier; 101 unsigned long m_identifier;
103 SelfKeepAlive<PingLoader> m_keepAlive; 102 SelfKeepAlive<PingLoader> m_keepAlive;
104 }; 103 };
105 104
106 } // namespace blink 105 } // namespace blink
107 106
108 #endif // PingLoader_h 107 #endif // PingLoader_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/loader/NavigationScheduler.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