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

Side by Side Diff: Source/core/loader/DocumentThreadableLoader.h

Issue 1184403003: Offer Resource Timing in workers (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: style fix Created 5 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
« no previous file with comments | « Source/core/fetch/ResourceFetcher.cpp ('k') | Source/core/loader/DocumentThreadableLoader.cpp » ('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) 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 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
75 75
76 // ResourceClient 76 // ResourceClient
77 void notifyFinished(Resource*) override; 77 void notifyFinished(Resource*) override;
78 // RawResourceClient 78 // RawResourceClient
79 void dataSent(Resource*, unsigned long long bytesSent, unsigned long lon g totalBytesToBeSent) override; 79 void dataSent(Resource*, unsigned long long bytesSent, unsigned long lon g totalBytesToBeSent) override;
80 void responseReceived(Resource*, const ResourceResponse&, PassOwnPtr<Web DataConsumerHandle>) override; 80 void responseReceived(Resource*, const ResourceResponse&, PassOwnPtr<Web DataConsumerHandle>) override;
81 void setSerializedCachedMetadata(Resource*, const char*, size_t) overrid e; 81 void setSerializedCachedMetadata(Resource*, const char*, size_t) overrid e;
82 void dataReceived(Resource*, const char* data, unsigned dataLength) over ride; 82 void dataReceived(Resource*, const char* data, unsigned dataLength) over ride;
83 void redirectReceived(Resource*, ResourceRequest&, const ResourceRespons e&) override; 83 void redirectReceived(Resource*, ResourceRequest&, const ResourceRespons e&) override;
84 void dataDownloaded(Resource*, int) override; 84 void dataDownloaded(Resource*, int) override;
85 void didReceiveResourceTiming(Resource*, const ResourceTimingInfo&) over ride;
85 86
86 void cancelWithError(const ResourceError&); 87 void cancelWithError(const ResourceError&);
87 88
88 // Notify Inspector and log to console about resource response. Use 89 // Notify Inspector and log to console about resource response. Use
89 // this method if response is not going to be finished normally. 90 // this method if response is not going to be finished normally.
90 void reportResponseReceived(unsigned long identifier, const ResourceResp onse&); 91 void reportResponseReceived(unsigned long identifier, const ResourceResp onse&);
91 92
92 // Methods containing code to handle resource fetch results which is 93 // Methods containing code to handle resource fetch results which is
93 // common to both sync and async mode. 94 // common to both sync and async mode.
94 void handleResponse(unsigned long identifier, const ResourceResponse&, P assOwnPtr<WebDataConsumerHandle>); 95 void handleResponse(unsigned long identifier, const ResourceResponse&, P assOwnPtr<WebDataConsumerHandle>);
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
167 // cross-origin redirects. 168 // cross-origin redirects.
168 // This is used to limit the number of redirects. 169 // This is used to limit the number of redirects.
169 // But this value is not the max number of total redirects allowed, 170 // But this value is not the max number of total redirects allowed,
170 // because same-origin redirects are not counted here. 171 // because same-origin redirects are not counted here.
171 int m_corsRedirectLimit; 172 int m_corsRedirectLimit;
172 }; 173 };
173 174
174 } // namespace blink 175 } // namespace blink
175 176
176 #endif // DocumentThreadableLoader_h 177 #endif // DocumentThreadableLoader_h
OLDNEW
« no previous file with comments | « Source/core/fetch/ResourceFetcher.cpp ('k') | Source/core/loader/DocumentThreadableLoader.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698