OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 "chrome/browser/ui/webui/chrome_url_data_manager_backend.h" | 5 #include "chrome/browser/ui/webui/chrome_url_data_manager_backend.h" |
6 | 6 |
7 #include <set> | 7 #include <set> |
8 | 8 |
9 #include "base/basictypes.h" | 9 #include "base/basictypes.h" |
10 #include "base/bind.h" | 10 #include "base/bind.h" |
(...skipping 19 matching lines...) Expand all Loading... |
30 #include "grit/platform_locale_settings.h" | 30 #include "grit/platform_locale_settings.h" |
31 #include "net/base/io_buffer.h" | 31 #include "net/base/io_buffer.h" |
32 #include "net/base/net_errors.h" | 32 #include "net/base/net_errors.h" |
33 #include "net/http/http_response_headers.h" | 33 #include "net/http/http_response_headers.h" |
34 #include "net/url_request/url_request.h" | 34 #include "net/url_request/url_request.h" |
35 #include "net/url_request/url_request_file_job.h" | 35 #include "net/url_request/url_request_file_job.h" |
36 #include "net/url_request/url_request_job.h" | 36 #include "net/url_request/url_request_job.h" |
37 #include "net/url_request/url_request_job_factory.h" | 37 #include "net/url_request/url_request_job_factory.h" |
38 #include "webkit/appcache/view_appcache_internals_job.h" | 38 #include "webkit/appcache/view_appcache_internals_job.h" |
39 | 39 |
| 40 using content::BrowserThread; |
| 41 |
40 namespace { | 42 namespace { |
41 | 43 |
42 // X-WebKit-CSP is our development name for Content-Security-Policy. | 44 // X-WebKit-CSP is our development name for Content-Security-Policy. |
43 // TODO(tsepez) rename when Content-security-policy is done. | 45 // TODO(tsepez) rename when Content-security-policy is done. |
44 // TODO(tsepez) remove unsafe-eval when bidichecker_packaged.js fixed. | 46 // TODO(tsepez) remove unsafe-eval when bidichecker_packaged.js fixed. |
45 // TODO(tsepez) chrome-extension: permits the ChromeVox screen reader | 47 // TODO(tsepez) chrome-extension: permits the ChromeVox screen reader |
46 // extension to function on these pages. Remove it when the extension | 48 // extension to function on these pages. Remove it when the extension |
47 // is updated to stop injecting script into the pages. | 49 // is updated to stop injecting script into the pages. |
48 const char kChromeURLContentSecurityPolicyHeader[] = | 50 const char kChromeURLContentSecurityPolicyHeader[] = |
49 "X-WebKit-CSP: object-src 'self'; script-src chrome://resources " | 51 "X-WebKit-CSP: object-src 'self'; script-src chrome://resources " |
(...skipping 496 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
546 | 548 |
547 return new URLRequestChromeJob(request, backend_); | 549 return new URLRequestChromeJob(request, backend_); |
548 } | 550 } |
549 | 551 |
550 } // namespace | 552 } // namespace |
551 | 553 |
552 net::URLRequestJobFactory::ProtocolHandler* | 554 net::URLRequestJobFactory::ProtocolHandler* |
553 CreateDevToolsProtocolHandler(ChromeURLDataManagerBackend* backend) { | 555 CreateDevToolsProtocolHandler(ChromeURLDataManagerBackend* backend) { |
554 return new DevToolsJobFactory(backend); | 556 return new DevToolsJobFactory(backend); |
555 } | 557 } |
OLD | NEW |