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

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

Issue 2684933011: M57: Add UseCounter for ServiceWorkerNavigationPreload. (Closed)
Patch Set: Created 3 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
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 263 matching lines...) Expand 10 before | Expand all | Expand 10 after
274 // the ServiceWorker. Null if the response isn't from the CacheStorage. 274 // the ServiceWorker. Null if the response isn't from the CacheStorage.
275 BLINK_PLATFORM_EXPORT WebString cacheStorageCacheName() const; 275 BLINK_PLATFORM_EXPORT WebString cacheStorageCacheName() const;
276 BLINK_PLATFORM_EXPORT void setCacheStorageCacheName(const WebString&); 276 BLINK_PLATFORM_EXPORT void setCacheStorageCacheName(const WebString&);
277 277
278 // The headers that should be exposed according to CORS. Only guaranteed 278 // The headers that should be exposed according to CORS. Only guaranteed
279 // to be set if the response was served by a ServiceWorker. 279 // to be set if the response was served by a ServiceWorker.
280 BLINK_PLATFORM_EXPORT WebVector<WebString> corsExposedHeaderNames() const; 280 BLINK_PLATFORM_EXPORT WebVector<WebString> corsExposedHeaderNames() const;
281 BLINK_PLATFORM_EXPORT void setCorsExposedHeaderNames( 281 BLINK_PLATFORM_EXPORT void setCorsExposedHeaderNames(
282 const WebVector<WebString>&); 282 const WebVector<WebString>&);
283 283
284 // Whether service worker navigation preload occurred.
285 // See ServiceWorkerResponseInfo::did_navigation_preload() for
286 // details.
287 BLINK_PLATFORM_EXPORT bool didServiceWorkerNavigationPreload() const;
288 BLINK_PLATFORM_EXPORT void setDidServiceWorkerNavigationPreload(bool);
289
284 // This indicates the location of a downloaded response if the 290 // This indicates the location of a downloaded response if the
285 // WebURLRequest had the downloadToFile flag set to true. This file path 291 // WebURLRequest had the downloadToFile flag set to true. This file path
286 // remains valid for the lifetime of the WebURLLoader used to create it. 292 // remains valid for the lifetime of the WebURLLoader used to create it.
287 BLINK_PLATFORM_EXPORT WebString downloadFilePath() const; 293 BLINK_PLATFORM_EXPORT WebString downloadFilePath() const;
288 BLINK_PLATFORM_EXPORT void setDownloadFilePath(const WebString&); 294 BLINK_PLATFORM_EXPORT void setDownloadFilePath(const WebString&);
289 295
290 // Remote IP address of the socket which fetched this resource. 296 // Remote IP address of the socket which fetched this resource.
291 BLINK_PLATFORM_EXPORT WebString remoteIPAddress() const; 297 BLINK_PLATFORM_EXPORT WebString remoteIPAddress() const;
292 BLINK_PLATFORM_EXPORT void setRemoteIPAddress(const WebString&); 298 BLINK_PLATFORM_EXPORT void setRemoteIPAddress(const WebString&);
293 299
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
333 // instance it contains. 339 // instance it contains.
334 std::unique_ptr<ResourceResponseContainer> m_ownedResourceResponse; 340 std::unique_ptr<ResourceResponseContainer> m_ownedResourceResponse;
335 341
336 // Should never be null. 342 // Should never be null.
337 ResourceResponse* m_resourceResponse; 343 ResourceResponse* m_resourceResponse;
338 }; 344 };
339 345
340 } // namespace blink 346 } // namespace blink
341 347
342 #endif 348 #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