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

Side by Side Diff: third_party/WebKit/Source/core/loader/DocumentThreadableLoader.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: Reflected haraken's comments. 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) 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 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
74 74
75 DocumentThreadableLoader(Document&, ThreadableLoaderClient*, BlockingBeh avior, const ResourceRequest&, const ThreadableLoaderOptions&, const ResourceLoa derOptions&); 75 DocumentThreadableLoader(Document&, ThreadableLoaderClient*, BlockingBeh avior, const ResourceRequest&, const ThreadableLoaderOptions&, const ResourceLoa derOptions&);
76 76
77 void clear(); 77 void clear();
78 78
79 // ResourceClient 79 // ResourceClient
80 // 80 //
81 // |this| may be dead after calling this method. 81 // |this| may be dead after calling this method.
82 void notifyFinished(Resource*) override; 82 void notifyFinished(Resource*) override;
83 83
84 String debugName() const override { return "DocumentThreadableLoader"; }
85
84 // RawResourceClient 86 // RawResourceClient
85 // 87 //
86 // |this| may be dead after calling these methods. 88 // |this| may be dead after calling these methods.
87 void dataSent(Resource*, unsigned long long bytesSent, unsigned long lon g totalBytesToBeSent) override; 89 void dataSent(Resource*, unsigned long long bytesSent, unsigned long lon g totalBytesToBeSent) override;
88 void responseReceived(Resource*, const ResourceResponse&, PassOwnPtr<Web DataConsumerHandle>) override; 90 void responseReceived(Resource*, const ResourceResponse&, PassOwnPtr<Web DataConsumerHandle>) override;
89 void setSerializedCachedMetadata(Resource*, const char*, size_t) overrid e; 91 void setSerializedCachedMetadata(Resource*, const char*, size_t) overrid e;
90 void dataReceived(Resource*, const char* data, unsigned dataLength) over ride; 92 void dataReceived(Resource*, const char* data, unsigned dataLength) over ride;
91 void redirectReceived(Resource*, ResourceRequest&, const ResourceRespons e&) override; 93 void redirectReceived(Resource*, ResourceRequest&, const ResourceRespons e&) override;
92 void dataDownloaded(Resource*, int) override; 94 void dataDownloaded(Resource*, int) override;
93 void didReceiveResourceTiming(Resource*, const ResourceTimingInfo&) over ride; 95 void didReceiveResourceTiming(Resource*, const ResourceTimingInfo&) over ride;
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after
193 // But this value is not the max number of total redirects allowed, 195 // But this value is not the max number of total redirects allowed,
194 // because same-origin redirects are not counted here. 196 // because same-origin redirects are not counted here.
195 int m_corsRedirectLimit; 197 int m_corsRedirectLimit;
196 198
197 const WebURLRequest::FetchRedirectMode m_redirectMode; 199 const WebURLRequest::FetchRedirectMode m_redirectMode;
198 }; 200 };
199 201
200 } // namespace blink 202 } // namespace blink
201 203
202 #endif // DocumentThreadableLoader_h 204 #endif // DocumentThreadableLoader_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/loader/DocumentLoader.h ('k') | third_party/WebKit/Source/core/loader/LinkLoader.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698