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 1569 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1580 | 1580 |
1581 bool has_no_store_header = false; | 1581 bool has_no_store_header = false; |
1582 std::string cache_control = | 1582 std::string cache_control = |
1583 response.httpHeaderField("cache-control").utf8(); | 1583 response.httpHeaderField("cache-control").utf8(); |
1584 | 1584 |
1585 std::vector<std::string> values; | 1585 std::vector<std::string> values; |
1586 base::SplitString(cache_control, ',', &values); | 1586 base::SplitString(cache_control, ',', &values); |
1587 for (std::vector<std::string>::const_iterator it = values.begin(); | 1587 for (std::vector<std::string>::const_iterator it = values.begin(); |
1588 it != values.end(); | 1588 it != values.end(); |
1589 ++it) { | 1589 ++it) { |
1590 if (StringToLowerASCII(*it) == "no-store") | 1590 if (base::StringToLowerASCII(*it) == "no-store") |
1591 has_no_store_header = true; | 1591 has_no_store_header = true; |
1592 } | 1592 } |
1593 | 1593 |
1594 GetNexeFd(instance_, | 1594 GetNexeFd(instance_, |
1595 pexe_url_, | 1595 pexe_url_, |
1596 pexe_opt_level_, | 1596 pexe_opt_level_, |
1597 last_modified_time, | 1597 last_modified_time, |
1598 etag, | 1598 etag, |
1599 has_no_store_header, | 1599 has_no_store_header, |
1600 base::Bind(&PexeDownloader::didGetNexeFd, | 1600 base::Bind(&PexeDownloader::didGetNexeFd, |
(...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1744 &StreamPexe | 1744 &StreamPexe |
1745 }; | 1745 }; |
1746 | 1746 |
1747 } // namespace | 1747 } // namespace |
1748 | 1748 |
1749 const PPB_NaCl_Private* GetNaClPrivateInterface() { | 1749 const PPB_NaCl_Private* GetNaClPrivateInterface() { |
1750 return &nacl_interface; | 1750 return &nacl_interface; |
1751 } | 1751 } |
1752 | 1752 |
1753 } // namespace nacl | 1753 } // namespace nacl |
OLD | NEW |