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

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

Issue 1413233005: tracing: Report ResourceClients and the reason for not deletable for web-caches (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase+ Created 5 years, 1 month 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 Apple Inc. All rights reserved. 2 * Copyright (C) 2006, 2007, 2008, 2009 Apple Inc. All rights reserved.
3 * Copyright (C) 2011 Google Inc. All rights reserved. 3 * Copyright (C) 2011 Google Inc. All rights reserved.
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 6 * modification, are permitted provided that the following conditions
7 * are met: 7 * are met:
8 * 8 *
9 * 1. Redistributions of source code must retain the above copyright 9 * 1. 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 162 matching lines...) Expand 10 before | Expand all | Expand 10 after
173 void willSendRequest(ResourceRequest&, const ResourceResponse&); 173 void willSendRequest(ResourceRequest&, const ResourceResponse&);
174 void finishedLoading(double finishTime); 174 void finishedLoading(double finishTime);
175 void mainReceivedError(const ResourceError&); 175 void mainReceivedError(const ResourceError&);
176 void cancelLoadAfterXFrameOptionsOrCSPDenied(const ResourceResponse&); 176 void cancelLoadAfterXFrameOptionsOrCSPDenied(const ResourceResponse&);
177 void redirectReceived(Resource*, ResourceRequest&, const ResourceResponse&) final; 177 void redirectReceived(Resource*, ResourceRequest&, const ResourceResponse&) final;
178 void updateRequest(Resource*, const ResourceRequest&) final; 178 void updateRequest(Resource*, const ResourceRequest&) final;
179 void responseReceived(Resource*, const ResourceResponse&, PassOwnPtr<WebData ConsumerHandle>) final; 179 void responseReceived(Resource*, const ResourceResponse&, PassOwnPtr<WebData ConsumerHandle>) final;
180 void dataReceived(Resource*, const char* data, unsigned length) final; 180 void dataReceived(Resource*, const char* data, unsigned length) final;
181 void processData(const char* data, unsigned length); 181 void processData(const char* data, unsigned length);
182 void notifyFinished(Resource*) final; 182 void notifyFinished(Resource*) final;
183 String debugName() const override { return "DocumentLoader"; }
183 184
184 bool maybeLoadEmpty(); 185 bool maybeLoadEmpty();
185 186
186 bool isRedirectAfterPost(const ResourceRequest&, const ResourceResponse&); 187 bool isRedirectAfterPost(const ResourceRequest&, const ResourceResponse&);
187 188
188 bool shouldContinueForResponse() const; 189 bool shouldContinueForResponse() const;
189 190
190 RawPtrWillBeMember<LocalFrame> m_frame; 191 RawPtrWillBeMember<LocalFrame> m_frame;
191 PersistentWillBeMember<ResourceFetcher> m_fetcher; 192 PersistentWillBeMember<ResourceFetcher> m_fetcher;
192 193
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
239 // Used to protect against reentrancy into dataReceived(). 240 // Used to protect against reentrancy into dataReceived().
240 bool m_inDataReceived; 241 bool m_inDataReceived;
241 RefPtr<SharedBuffer> m_dataBuffer; 242 RefPtr<SharedBuffer> m_dataBuffer;
242 }; 243 };
243 244
244 DECLARE_WEAK_IDENTIFIER_MAP(DocumentLoader); 245 DECLARE_WEAK_IDENTIFIER_MAP(DocumentLoader);
245 246
246 } // namespace blink 247 } // namespace blink
247 248
248 #endif // DocumentLoader_h 249 #endif // DocumentLoader_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698