OLD | NEW |
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_impl.h" | 5 #include "components/nacl/renderer/ppb_nacl_private_impl.h" |
6 | 6 |
7 #include <numeric> | 7 #include <numeric> |
8 #include <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 1648 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1659 opt_level, | 1659 opt_level, |
1660 handler, | 1660 handler, |
1661 handler_user_data); | 1661 handler_user_data); |
1662 | 1662 |
1663 blink::WebURLRequest url_request = CreateWebURLRequest(document, gurl); | 1663 blink::WebURLRequest url_request = CreateWebURLRequest(document, gurl); |
1664 // Mark the request as requesting a PNaCl bitcode file, | 1664 // Mark the request as requesting a PNaCl bitcode file, |
1665 // so that component updater can detect this user action. | 1665 // so that component updater can detect this user action. |
1666 url_request.addHTTPHeaderField( | 1666 url_request.addHTTPHeaderField( |
1667 blink::WebString::fromUTF8("Accept"), | 1667 blink::WebString::fromUTF8("Accept"), |
1668 blink::WebString::fromUTF8("application/x-pnacl, */*")); | 1668 blink::WebString::fromUTF8("application/x-pnacl, */*")); |
1669 url_request.setRequestContext(blink::WebURLRequest::RequestContextObject); | |
1670 downloader->Load(url_request); | 1669 downloader->Load(url_request); |
1671 } | 1670 } |
1672 | 1671 |
1673 const PPB_NaCl_Private nacl_interface = { | 1672 const PPB_NaCl_Private nacl_interface = { |
1674 &LaunchSelLdr, | 1673 &LaunchSelLdr, |
1675 &StartPpapiProxy, | 1674 &StartPpapiProxy, |
1676 &UrandomFD, | 1675 &UrandomFD, |
1677 &Are3DInterfacesDisabled, | 1676 &Are3DInterfacesDisabled, |
1678 &BrokerDuplicateHandle, | 1677 &BrokerDuplicateHandle, |
1679 &GetReadExecPnaclFd, | 1678 &GetReadExecPnaclFd, |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1711 &StreamPexe | 1710 &StreamPexe |
1712 }; | 1711 }; |
1713 | 1712 |
1714 } // namespace | 1713 } // namespace |
1715 | 1714 |
1716 const PPB_NaCl_Private* GetNaClPrivateInterface() { | 1715 const PPB_NaCl_Private* GetNaClPrivateInterface() { |
1717 return &nacl_interface; | 1716 return &nacl_interface; |
1718 } | 1717 } |
1719 | 1718 |
1720 } // namespace nacl | 1719 } // namespace nacl |
OLD | NEW |