| 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 <algorithm> | 7 #include <algorithm> |
| 8 #include <string> | 8 #include <string> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 52 #include "net/http/http_request_headers.h" | 52 #include "net/http/http_request_headers.h" |
| 53 #include "net/http/http_response_headers.h" | 53 #include "net/http/http_response_headers.h" |
| 54 #include "net/http/http_response_info.h" | 54 #include "net/http/http_response_info.h" |
| 55 #include "net/url_request/url_request_error_job.h" | 55 #include "net/url_request/url_request_error_job.h" |
| 56 #include "net/url_request/url_request_file_job.h" | 56 #include "net/url_request/url_request_file_job.h" |
| 57 #include "net/url_request/url_request_simple_job.h" | 57 #include "net/url_request/url_request_simple_job.h" |
| 58 #include "url/url_util.h" | 58 #include "url/url_util.h" |
| 59 | 59 |
| 60 using content::BrowserThread; | 60 using content::BrowserThread; |
| 61 using content::ResourceRequestInfo; | 61 using content::ResourceRequestInfo; |
| 62 using content::ResourceType; |
| 62 using extensions::Extension; | 63 using extensions::Extension; |
| 63 using extensions::SharedModuleInfo; | 64 using extensions::SharedModuleInfo; |
| 64 | 65 |
| 65 namespace extensions { | 66 namespace extensions { |
| 66 namespace { | 67 namespace { |
| 67 | 68 |
| 68 class GeneratedBackgroundPageJob : public net::URLRequestSimpleJob { | 69 class GeneratedBackgroundPageJob : public net::URLRequestSimpleJob { |
| 69 public: | 70 public: |
| 70 GeneratedBackgroundPageJob(net::URLRequest* request, | 71 GeneratedBackgroundPageJob(net::URLRequest* request, |
| 71 net::NetworkDelegate* network_delegate, | 72 net::NetworkDelegate* network_delegate, |
| (...skipping 495 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 567 return new net::HttpResponseHeaders(raw_headers); | 568 return new net::HttpResponseHeaders(raw_headers); |
| 568 } | 569 } |
| 569 | 570 |
| 570 net::URLRequestJobFactory::ProtocolHandler* CreateExtensionProtocolHandler( | 571 net::URLRequestJobFactory::ProtocolHandler* CreateExtensionProtocolHandler( |
| 571 bool is_incognito, | 572 bool is_incognito, |
| 572 extensions::InfoMap* extension_info_map) { | 573 extensions::InfoMap* extension_info_map) { |
| 573 return new ExtensionProtocolHandler(is_incognito, extension_info_map); | 574 return new ExtensionProtocolHandler(is_incognito, extension_info_map); |
| 574 } | 575 } |
| 575 | 576 |
| 576 } // namespace extensions | 577 } // namespace extensions |
| OLD | NEW |