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

Side by Side Diff: third_party/WebKit/public/platform/WebURLResponse.h

Issue 2235543002: Keep track of how many documents had a resource intercepted by foreign fetch. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 4 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) 2009 Google Inc. All rights reserved. 2 * Copyright (C) 2009 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 213 matching lines...) Expand 10 before | Expand all | Expand 10 after
224 BLINK_PLATFORM_EXPORT void setWasAlternateProtocolAvailable(bool); 224 BLINK_PLATFORM_EXPORT void setWasAlternateProtocolAvailable(bool);
225 225
226 // Flag whether this request was loaded via an explicit proxy (HTTP, SOCKS, etc). 226 // Flag whether this request was loaded via an explicit proxy (HTTP, SOCKS, etc).
227 BLINK_PLATFORM_EXPORT bool wasFetchedViaProxy() const; 227 BLINK_PLATFORM_EXPORT bool wasFetchedViaProxy() const;
228 BLINK_PLATFORM_EXPORT void setWasFetchedViaProxy(bool); 228 BLINK_PLATFORM_EXPORT void setWasFetchedViaProxy(bool);
229 229
230 // Flag whether this request was loaded via a ServiceWorker. 230 // Flag whether this request was loaded via a ServiceWorker.
231 BLINK_PLATFORM_EXPORT bool wasFetchedViaServiceWorker() const; 231 BLINK_PLATFORM_EXPORT bool wasFetchedViaServiceWorker() const;
232 BLINK_PLATFORM_EXPORT void setWasFetchedViaServiceWorker(bool); 232 BLINK_PLATFORM_EXPORT void setWasFetchedViaServiceWorker(bool);
233 233
234 // Flag whether this request was loaded using a foreign fetch service worker .
235 BLINK_PLATFORM_EXPORT bool wasFetchedViaForeignFetch() const;
236 BLINK_PLATFORM_EXPORT void setWasFetchedViaForeignFetch(bool);
237
234 // Flag whether the fallback request with skip service worker flag was 238 // Flag whether the fallback request with skip service worker flag was
235 // required. 239 // required.
236 BLINK_PLATFORM_EXPORT bool wasFallbackRequiredByServiceWorker() const; 240 BLINK_PLATFORM_EXPORT bool wasFallbackRequiredByServiceWorker() const;
237 BLINK_PLATFORM_EXPORT void setWasFallbackRequiredByServiceWorker(bool); 241 BLINK_PLATFORM_EXPORT void setWasFallbackRequiredByServiceWorker(bool);
238 242
239 // The type of the response which was fetched by the ServiceWorker. 243 // The type of the response which was fetched by the ServiceWorker.
240 BLINK_PLATFORM_EXPORT WebServiceWorkerResponseType serviceWorkerResponseType () const; 244 BLINK_PLATFORM_EXPORT WebServiceWorkerResponseType serviceWorkerResponseType () const;
241 BLINK_PLATFORM_EXPORT void setServiceWorkerResponseType(WebServiceWorkerResp onseType); 245 BLINK_PLATFORM_EXPORT void setServiceWorkerResponseType(WebServiceWorkerResp onseType);
242 246
243 // The original URL of the response which was fetched by the ServiceWorker. 247 // The original URL of the response which was fetched by the ServiceWorker.
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
304 // instance it contains. 308 // instance it contains.
305 std::unique_ptr<ResourceResponseContainer> m_ownedResourceResponse; 309 std::unique_ptr<ResourceResponseContainer> m_ownedResourceResponse;
306 310
307 // Should never be null. 311 // Should never be null.
308 ResourceResponse* m_resourceResponse; 312 ResourceResponse* m_resourceResponse;
309 }; 313 };
310 314
311 } // namespace blink 315 } // namespace blink
312 316
313 #endif 317 #endif
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/platform/network/ResourceResponse.cpp ('k') | tools/metrics/histograms/histograms.xml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698