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

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: Switch "redirect" and "original" SecurityOrigin 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 1658 matching lines...) Expand 10 before | Expand all | Expand 10 after
1669 file_handle); 1669 file_handle);
1670 1670
1671 // No translated nexe was found in the cache, so we should download the 1671 // No translated nexe was found in the cache, so we should download the
1672 // file to start streaming it. 1672 // file to start streaming it.
1673 url_loader_->setDefersLoading(false); 1673 url_loader_->setDefersLoading(false);
1674 } 1674 }
1675 1675
1676 void didReceiveData(blink::WebURLLoader* loader, 1676 void didReceiveData(blink::WebURLLoader* loader,
1677 const char* data, 1677 const char* data,
1678 int data_length, 1678 int data_length,
1679 int encoded_data_length) override { 1679 int encoded_data_length,
1680 int encoded_body_length) override {
1680 if (content::PepperPluginInstance::Get(instance_)) { 1681 if (content::PepperPluginInstance::Get(instance_)) {
1681 // Stream the data we received to the stream callback. 1682 // Stream the data we received to the stream callback.
1682 stream_handler_->DidStreamData(stream_handler_user_data_, 1683 stream_handler_->DidStreamData(stream_handler_user_data_,
1683 data, 1684 data,
1684 data_length); 1685 data_length);
1685 } 1686 }
1686 } 1687 }
1687 1688
1688 void didFinishLoading(blink::WebURLLoader* loader, 1689 void didFinishLoading(blink::WebURLLoader* loader,
1689 double finish_time, 1690 double finish_time,
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
1746 // Mark the request as requesting a PNaCl bitcode file, 1747 // Mark the request as requesting a PNaCl bitcode file,
1747 // so that component updater can detect this user action. 1748 // so that component updater can detect this user action.
1748 url_request.addHTTPHeaderField( 1749 url_request.addHTTPHeaderField(
1749 blink::WebString::fromUTF8("Accept"), 1750 blink::WebString::fromUTF8("Accept"),
1750 blink::WebString::fromUTF8("application/x-pnacl, */*")); 1751 blink::WebString::fromUTF8("application/x-pnacl, */*"));
1751 url_request.setRequestContext(blink::WebURLRequest::RequestContextObject); 1752 url_request.setRequestContext(blink::WebURLRequest::RequestContextObject);
1752 downloader->Load(url_request); 1753 downloader->Load(url_request);
1753 } 1754 }
1754 1755
1755 } // namespace nacl 1756 } // namespace nacl
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698