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

Side by Side Diff: webkit/plugins/ppapi/ppb_url_loader_impl.h

Issue 6771043: Enabled actual transfer size in chromium (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Comment added Created 9 years, 8 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 | Annotate | Revision Log
« no previous file with comments | « webkit/plugins/npapi/webplugin_impl.cc ('k') | webkit/plugins/ppapi/ppb_url_loader_impl.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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 #ifndef WEBKIT_PLUGINS_PPAPI_PPB_URL_LOADER_IMPL_H_ 5 #ifndef WEBKIT_PLUGINS_PPAPI_PPB_URL_LOADER_IMPL_H_
6 #define WEBKIT_PLUGINS_PPAPI_PPB_URL_LOADER_IMPL_H_ 6 #define WEBKIT_PLUGINS_PPAPI_PPB_URL_LOADER_IMPL_H_
7 7
8 #include <deque> 8 #include <deque>
9 9
10 #include "base/memory/ref_counted.h" 10 #include "base/memory/ref_counted.h"
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
73 unsigned long long bytes_sent, 73 unsigned long long bytes_sent,
74 unsigned long long total_bytes_to_be_sent); 74 unsigned long long total_bytes_to_be_sent);
75 virtual void didReceiveResponse(WebKit::WebURLLoader* loader, 75 virtual void didReceiveResponse(WebKit::WebURLLoader* loader,
76 const WebKit::WebURLResponse& response); 76 const WebKit::WebURLResponse& response);
77 virtual void didDownloadData(WebKit::WebURLLoader* loader, 77 virtual void didDownloadData(WebKit::WebURLLoader* loader,
78 int data_length); 78 int data_length);
79 79
80 virtual void didReceiveData(WebKit::WebURLLoader* loader, 80 virtual void didReceiveData(WebKit::WebURLLoader* loader,
81 const char* data, 81 const char* data,
82 int data_length, 82 int data_length,
83 int length_received); 83 int raw_data_length);
84 virtual void didFinishLoading(WebKit::WebURLLoader* loader, 84 virtual void didFinishLoading(WebKit::WebURLLoader* loader,
85 double finish_time); 85 double finish_time);
86 virtual void didFail(WebKit::WebURLLoader* loader, 86 virtual void didFail(WebKit::WebURLLoader* loader,
87 const WebKit::WebURLError& error); 87 const WebKit::WebURLError& error);
88 88
89 PPB_URLResponseInfo_Impl* response_info() const { return response_info_; } 89 PPB_URLResponseInfo_Impl* response_info() const { return response_info_; }
90 90
91 private: 91 private:
92 // Check that |callback| is valid (only non-blocking operation is supported) 92 // Check that |callback| is valid (only non-blocking operation is supported)
93 // and that no callback is already pending. Returns |PP_OK| if okay, else 93 // and that no callback is already pending. Returns |PP_OK| if okay, else
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
140 140
141 PP_URLLoaderTrusted_StatusCallback status_callback_; 141 PP_URLLoaderTrusted_StatusCallback status_callback_;
142 142
143 DISALLOW_COPY_AND_ASSIGN(PPB_URLLoader_Impl); 143 DISALLOW_COPY_AND_ASSIGN(PPB_URLLoader_Impl);
144 }; 144 };
145 145
146 } // namespace ppapi 146 } // namespace ppapi
147 } // namespace webkit 147 } // namespace webkit
148 148
149 #endif // WEBKIT_PLUGINS_PPAPI_PPB_URL_LOADER_IMPL_H_ 149 #endif // WEBKIT_PLUGINS_PPAPI_PPB_URL_LOADER_IMPL_H_
OLDNEW
« no previous file with comments | « webkit/plugins/npapi/webplugin_impl.cc ('k') | webkit/plugins/ppapi/ppb_url_loader_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698