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

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

Issue 2316573002: PlzNavigate: Support ResourceTiming API (Closed)
Patch Set: Support resourceLoadInfo (encodedDataLength) Created 4 years, 3 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 30 matching lines...) Expand all
41 class WebURLResponse; 41 class WebURLResponse;
42 struct WebURLError; 42 struct WebURLError;
43 43
44 class BLINK_PLATFORM_EXPORT WebURLLoaderClient { 44 class BLINK_PLATFORM_EXPORT WebURLLoaderClient {
45 public: 45 public:
46 // Called when following a redirect. |newRequest| contains the request 46 // Called when following a redirect. |newRequest| contains the request
47 // generated by the redirect. The client may modify |newRequest|. 47 // generated by the redirect. The client may modify |newRequest|.
48 // |encodedDataLength| is the size of the data that came from the network 48 // |encodedDataLength| is the size of the data that came from the network
49 // for this redirect, or zero if the redirect was served from cache. 49 // for this redirect, or zero if the redirect was served from cache.
50 virtual void willFollowRedirect( 50 virtual void willFollowRedirect(
51 WebURLLoader*, WebURLRequest& newRequest, const WebURLResponse& redirect Response, int64_t encodedDataLength) {} 51 WebURLLoader*, WebURLRequest& newRequest, const WebURLResponse& redirect Response) {}
52 52
53 // Called to report upload progress. The bytes reported correspond to 53 // Called to report upload progress. The bytes reported correspond to
54 // the HTTP message body. 54 // the HTTP message body.
55 virtual void didSendData( 55 virtual void didSendData(
56 WebURLLoader*, unsigned long long bytesSent, unsigned long long totalByt esToBeSent) { } 56 WebURLLoader*, unsigned long long bytesSent, unsigned long long totalByt esToBeSent) { }
57 57
58 // Called when response headers are received. 58 // Called when response headers are received.
59 virtual void didReceiveResponse(WebURLLoader*, const WebURLResponse&) { } 59 virtual void didReceiveResponse(WebURLLoader*, const WebURLResponse&) { }
60 60
61 // Called when response headers are received. 61 // Called when response headers are received.
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
95 // Value passed to didFinishLoading when total encoded data length isn't kno wn. 95 // Value passed to didFinishLoading when total encoded data length isn't kno wn.
96 static const int64_t kUnknownEncodedDataLength = -1; 96 static const int64_t kUnknownEncodedDataLength = -1;
97 97
98 protected: 98 protected:
99 virtual ~WebURLLoaderClient() { } 99 virtual ~WebURLLoaderClient() { }
100 }; 100 };
101 101
102 } // namespace blink 102 } // namespace blink
103 103
104 #endif 104 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698