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

Side by Side Diff: components/nacl/renderer/ppb_nacl_private_impl.cc

Issue 2105713002: Render process changes for ResourceTiming sizes. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@resource_timing_sizes_browser_process
Patch Set: Initialise encoded_body_length for sync XHR to data: URLs Created 4 years, 5 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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 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 "components/nacl/renderer/ppb_nacl_private.h" 5 #include "components/nacl/renderer/ppb_nacl_private.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <memory> 10 #include <memory>
(...skipping 1655 matching lines...) Expand 10 before | Expand all | Expand 10 after
1666 file_handle); 1666 file_handle);
1667 1667
1668 // No translated nexe was found in the cache, so we should download the 1668 // No translated nexe was found in the cache, so we should download the
1669 // file to start streaming it. 1669 // file to start streaming it.
1670 url_loader_->setDefersLoading(false); 1670 url_loader_->setDefersLoading(false);
1671 } 1671 }
1672 1672
1673 void didReceiveData(blink::WebURLLoader* loader, 1673 void didReceiveData(blink::WebURLLoader* loader,
1674 const char* data, 1674 const char* data,
1675 int data_length, 1675 int data_length,
1676 int encoded_data_length) override { 1676 int encoded_data_length,
1677 int encoded_body_length) override {
1677 if (content::PepperPluginInstance::Get(instance_)) { 1678 if (content::PepperPluginInstance::Get(instance_)) {
1678 // Stream the data we received to the stream callback. 1679 // Stream the data we received to the stream callback.
1679 stream_handler_->DidStreamData(stream_handler_user_data_, 1680 stream_handler_->DidStreamData(stream_handler_user_data_,
1680 data, 1681 data,
1681 data_length); 1682 data_length);
1682 } 1683 }
1683 } 1684 }
1684 1685
1685 void didFinishLoading(blink::WebURLLoader* loader, 1686 void didFinishLoading(blink::WebURLLoader* loader,
1686 double finish_time, 1687 double finish_time,
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
1743 // Mark the request as requesting a PNaCl bitcode file, 1744 // Mark the request as requesting a PNaCl bitcode file,
1744 // so that component updater can detect this user action. 1745 // so that component updater can detect this user action.
1745 url_request.addHTTPHeaderField( 1746 url_request.addHTTPHeaderField(
1746 blink::WebString::fromUTF8("Accept"), 1747 blink::WebString::fromUTF8("Accept"),
1747 blink::WebString::fromUTF8("application/x-pnacl, */*")); 1748 blink::WebString::fromUTF8("application/x-pnacl, */*"));
1748 url_request.setRequestContext(blink::WebURLRequest::RequestContextObject); 1749 url_request.setRequestContext(blink::WebURLRequest::RequestContextObject);
1749 downloader->Load(url_request); 1750 downloader->Load(url_request);
1750 } 1751 }
1751 1752
1752 } // namespace nacl 1753 } // namespace nacl
OLDNEW
« no previous file with comments | « components/nacl/renderer/manifest_downloader.cc ('k') | content/browser/loader/async_resource_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698