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

Side by Side Diff: third_party/WebKit/Source/core/fetch/ResourceLoader.h

Issue 1635113002: Promptly let go of WebURLLoader objects. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix decls.. Created 4 years, 10 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
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/loader/PingLoader.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2005, 2006, 2011 Apple Inc. All rights reserved. 2 * Copyright (C) 2005, 2006, 2011 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 * 7 *
8 * 1. Redistributions of source code must retain the above copyright 8 * 1. 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 * 2. Redistributions in binary form must reproduce the above copyright 10 * 2. Redistributions in binary form must reproduce the above copyright
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
44 class ResourceError; 44 class ResourceError;
45 class ResourceFetcher; 45 class ResourceFetcher;
46 class ThreadedDataReceiver; 46 class ThreadedDataReceiver;
47 47
48 class CORE_EXPORT ResourceLoader final : public GarbageCollectedFinalized<Resour ceLoader>, protected WebURLLoaderClient { 48 class CORE_EXPORT ResourceLoader final : public GarbageCollectedFinalized<Resour ceLoader>, protected WebURLLoaderClient {
49 public: 49 public:
50 static ResourceLoader* create(ResourceFetcher*, Resource*, const ResourceReq uest&, const ResourceLoaderOptions&); 50 static ResourceLoader* create(ResourceFetcher*, Resource*, const ResourceReq uest&, const ResourceLoaderOptions&);
51 ~ResourceLoader() override; 51 ~ResourceLoader() override;
52 DECLARE_TRACE(); 52 DECLARE_TRACE();
53 53
54 // Promptly release m_loader.
55 EAGERLY_FINALIZE();
56
54 void start(); 57 void start();
55 void changeToSynchronous(); 58 void changeToSynchronous();
56 59
57 void cancel(); 60 void cancel();
58 void cancel(const ResourceError&); 61 void cancel(const ResourceError&);
59 void cancelIfNotFinishing(); 62 void cancelIfNotFinishing();
60 63
61 Resource* cachedResource() { return m_resource; } 64 Resource* cachedResource() { return m_resource; }
62 const ResourceRequest& originalRequest() const { return m_originalRequest; } 65 const ResourceRequest& originalRequest() const { return m_originalRequest; }
63 66
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
135 ResourceLoaderState m_state; 138 ResourceLoaderState m_state;
136 139
137 // Used for sanity checking to make sure we don't experience illegal state 140 // Used for sanity checking to make sure we don't experience illegal state
138 // transitions. 141 // transitions.
139 ConnectionState m_connectionState; 142 ConnectionState m_connectionState;
140 }; 143 };
141 144
142 } // namespace blink 145 } // namespace blink
143 146
144 #endif 147 #endif
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/loader/PingLoader.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698