| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 "extensions/browser/extension_protocols.h" | 5 #include "extensions/browser/extension_protocols.h" |
| 6 | 6 |
| 7 #include <stddef.h> | 7 #include <stddef.h> |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <algorithm> | 10 #include <algorithm> |
| (...skipping 569 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 580 raw_headers.append("cache-control: no-cache"); | 580 raw_headers.append("cache-control: no-cache"); |
| 581 } | 581 } |
| 582 | 582 |
| 583 raw_headers.append(2, '\0'); | 583 raw_headers.append(2, '\0'); |
| 584 return new net::HttpResponseHeaders(raw_headers); | 584 return new net::HttpResponseHeaders(raw_headers); |
| 585 } | 585 } |
| 586 | 586 |
| 587 std::unique_ptr<net::URLRequestJobFactory::ProtocolHandler> | 587 std::unique_ptr<net::URLRequestJobFactory::ProtocolHandler> |
| 588 CreateExtensionProtocolHandler(bool is_incognito, | 588 CreateExtensionProtocolHandler(bool is_incognito, |
| 589 extensions::InfoMap* extension_info_map) { | 589 extensions::InfoMap* extension_info_map) { |
| 590 return base::WrapUnique( | 590 return base::MakeUnique<ExtensionProtocolHandler>(is_incognito, |
| 591 new ExtensionProtocolHandler(is_incognito, extension_info_map)); | 591 extension_info_map); |
| 592 } | 592 } |
| 593 | 593 |
| 594 } // namespace extensions | 594 } // namespace extensions |
| OLD | NEW |