| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 "content/browser/webui/url_data_manager_backend.h" | 5 #include "content/browser/webui/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 26 matching lines...) Expand all Loading... |
| 37 #include "net/base/io_buffer.h" | 37 #include "net/base/io_buffer.h" |
| 38 #include "net/base/net_errors.h" | 38 #include "net/base/net_errors.h" |
| 39 #include "net/http/http_response_headers.h" | 39 #include "net/http/http_response_headers.h" |
| 40 #include "net/http/http_status_code.h" | 40 #include "net/http/http_status_code.h" |
| 41 #include "net/url_request/url_request.h" | 41 #include "net/url_request/url_request.h" |
| 42 #include "net/url_request/url_request_context.h" | 42 #include "net/url_request/url_request_context.h" |
| 43 #include "net/url_request/url_request_job.h" | 43 #include "net/url_request/url_request_job.h" |
| 44 #include "net/url_request/url_request_job_factory.h" | 44 #include "net/url_request/url_request_job_factory.h" |
| 45 #include "url/url_util.h" | 45 #include "url/url_util.h" |
| 46 | 46 |
| 47 using appcache::AppCacheServiceImpl; | |
| 48 | |
| 49 namespace content { | 47 namespace content { |
| 50 | 48 |
| 51 namespace { | 49 namespace { |
| 52 | 50 |
| 53 // TODO(tsepez) remove unsafe-eval when bidichecker_packaged.js fixed. | 51 // TODO(tsepez) remove unsafe-eval when bidichecker_packaged.js fixed. |
| 54 const char kChromeURLContentSecurityPolicyHeaderBase[] = | 52 const char kChromeURLContentSecurityPolicyHeaderBase[] = |
| 55 "Content-Security-Policy: script-src chrome://resources " | 53 "Content-Security-Policy: script-src chrome://resources " |
| 56 "'self' 'unsafe-eval'; "; | 54 "'self' 'unsafe-eval'; "; |
| 57 | 55 |
| 58 const char kChromeURLXFrameOptionsHeader[] = "X-Frame-Options: DENY"; | 56 const char kChromeURLXFrameOptionsHeader[] = "X-Frame-Options: DENY"; |
| (...skipping 673 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 732 | 730 |
| 733 } // namespace | 731 } // namespace |
| 734 | 732 |
| 735 net::URLRequestJobFactory::ProtocolHandler* | 733 net::URLRequestJobFactory::ProtocolHandler* |
| 736 CreateDevToolsProtocolHandler(content::ResourceContext* resource_context, | 734 CreateDevToolsProtocolHandler(content::ResourceContext* resource_context, |
| 737 bool is_incognito) { | 735 bool is_incognito) { |
| 738 return new DevToolsJobFactory(resource_context, is_incognito); | 736 return new DevToolsJobFactory(resource_context, is_incognito); |
| 739 } | 737 } |
| 740 | 738 |
| 741 } // namespace content | 739 } // namespace content |
| OLD | NEW |