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

Side by Side Diff: content/renderer/pepper/pepper_url_loader_host.cc

Issue 2316573002: PlzNavigate: Support ResourceTiming API (Closed)
Patch Set: Addressed comments (clamy@) 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 // Copyright (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 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 #include "content/renderer/pepper/pepper_url_loader_host.h" 5 #include "content/renderer/pepper/pepper_url_loader_host.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 8
9 #include "content/renderer/pepper/pepper_plugin_instance_impl.h" 9 #include "content/renderer/pepper/pepper_plugin_instance_impl.h"
10 #include "content/renderer/pepper/renderer_ppapi_host_impl.h" 10 #include "content/renderer/pepper/renderer_ppapi_host_impl.h"
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after
116 PPAPI_DISPATCH_HOST_RESOURCE_CALL_0( 116 PPAPI_DISPATCH_HOST_RESOURCE_CALL_0(
117 PpapiHostMsg_URLLoader_GrantUniversalAccess, 117 PpapiHostMsg_URLLoader_GrantUniversalAccess,
118 OnHostMsgGrantUniversalAccess) 118 OnHostMsgGrantUniversalAccess)
119 PPAPI_END_MESSAGE_MAP() 119 PPAPI_END_MESSAGE_MAP()
120 return PP_ERROR_FAILED; 120 return PP_ERROR_FAILED;
121 } 121 }
122 122
123 void PepperURLLoaderHost::willFollowRedirect( 123 void PepperURLLoaderHost::willFollowRedirect(
124 WebURLLoader* loader, 124 WebURLLoader* loader,
125 WebURLRequest& new_request, 125 WebURLRequest& new_request,
126 const WebURLResponse& redirect_response, 126 const WebURLResponse& redirect_response) {
127 int64_t encoded_data_length) {
128 DCHECK(out_of_order_replies_.empty()); 127 DCHECK(out_of_order_replies_.empty());
129 if (!request_data_.follow_redirects) { 128 if (!request_data_.follow_redirects) {
130 SaveResponse(redirect_response); 129 SaveResponse(redirect_response);
131 SetDefersLoading(true); 130 SetDefersLoading(true);
132 } 131 }
133 } 132 }
134 133
135 void PepperURLLoaderHost::didSendData( 134 void PepperURLLoaderHost::didSendData(
136 WebURLLoader* loader, 135 WebURLLoader* loader,
137 unsigned long long bytes_sent, 136 unsigned long long bytes_sent,
(...skipping 301 matching lines...) Expand 10 before | Expand all | Expand 10 after
439 ppapi::proxy::ResourceMessageReplyParams params; 438 ppapi::proxy::ResourceMessageReplyParams params;
440 SendUpdateToPlugin(new PpapiPluginMsg_URLLoader_UpdateProgress( 439 SendUpdateToPlugin(new PpapiPluginMsg_URLLoader_UpdateProgress(
441 record_upload ? bytes_sent_ : -1, 440 record_upload ? bytes_sent_ : -1,
442 record_upload ? total_bytes_to_be_sent_ : -1, 441 record_upload ? total_bytes_to_be_sent_ : -1,
443 record_download ? bytes_received_ : -1, 442 record_download ? bytes_received_ : -1,
444 record_download ? total_bytes_to_be_received_ : -1)); 443 record_download ? total_bytes_to_be_received_ : -1));
445 } 444 }
446 } 445 }
447 446
448 } // namespace content 447 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698