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

Side by Side Diff: webkit/glue/resource_fetcher.h

Issue 295041: DevTools: report correct content length for resources (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 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 | Annotate | Revision Log
« no previous file with comments | « webkit/glue/multipart_response_delegate_unittest.cc ('k') | webkit/glue/resource_fetcher.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 // 4 //
5 // A wrapper around ResourceHandle and ResourceHandleClient that simplifies 5 // A wrapper around ResourceHandle and ResourceHandleClient that simplifies
6 // the download of an HTTP object. The interface is modeled after URLFetcher 6 // the download of an HTTP object. The interface is modeled after URLFetcher
7 // in the /chrome/browser. 7 // in the /chrome/browser.
8 // 8 //
9 // ResourceFetcher::Delegate::OnURLFetchComplete will be called async after 9 // ResourceFetcher::Delegate::OnURLFetchComplete will be called async after
10 // the ResourceFetcher object is created. 10 // the ResourceFetcher object is created.
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
54 // WebURLLoaderClient methods: 54 // WebURLLoaderClient methods:
55 virtual void willSendRequest( 55 virtual void willSendRequest(
56 WebKit::WebURLLoader* loader, WebKit::WebURLRequest& new_request, 56 WebKit::WebURLLoader* loader, WebKit::WebURLRequest& new_request,
57 const WebKit::WebURLResponse& redirect_response); 57 const WebKit::WebURLResponse& redirect_response);
58 virtual void didSendData( 58 virtual void didSendData(
59 WebKit::WebURLLoader* loader, unsigned long long bytes_sent, 59 WebKit::WebURLLoader* loader, unsigned long long bytes_sent,
60 unsigned long long total_bytes_to_be_sent); 60 unsigned long long total_bytes_to_be_sent);
61 virtual void didReceiveResponse( 61 virtual void didReceiveResponse(
62 WebKit::WebURLLoader* loader, const WebKit::WebURLResponse& response); 62 WebKit::WebURLLoader* loader, const WebKit::WebURLResponse& response);
63 virtual void didReceiveData( 63 virtual void didReceiveData(
64 WebKit::WebURLLoader* loader, const char* data, int data_length, 64 WebKit::WebURLLoader* loader, const char* data, int data_length);
65 long long total_data_length);
66 virtual void didFinishLoading(WebKit::WebURLLoader* loader); 65 virtual void didFinishLoading(WebKit::WebURLLoader* loader);
67 virtual void didFail( 66 virtual void didFail(
68 WebKit::WebURLLoader* loader, const WebKit::WebURLError& error); 67 WebKit::WebURLLoader* loader, const WebKit::WebURLError& error);
69 68
70 scoped_ptr<WebKit::WebURLLoader> loader_; 69 scoped_ptr<WebKit::WebURLLoader> loader_;
71 70
72 // URL we're fetching 71 // URL we're fetching
73 GURL url_; 72 GURL url_;
74 73
75 // Callback when we're done 74 // Callback when we're done
(...skipping 27 matching lines...) Expand all
103 // kill the request. 102 // kill the request.
104 void TimeoutFired(); 103 void TimeoutFired();
105 104
106 // Limit how long we wait for the alternate error page server. 105 // Limit how long we wait for the alternate error page server.
107 base::OneShotTimer<ResourceFetcherWithTimeout> timeout_timer_; 106 base::OneShotTimer<ResourceFetcherWithTimeout> timeout_timer_;
108 }; 107 };
109 108
110 } // namespace webkit_glue 109 } // namespace webkit_glue
111 110
112 #endif // WEBKIT_GLUE_RESOURCE_FETCHER_H_ 111 #endif // WEBKIT_GLUE_RESOURCE_FETCHER_H_
OLDNEW
« no previous file with comments | « webkit/glue/multipart_response_delegate_unittest.cc ('k') | webkit/glue/resource_fetcher.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698