| OLD | NEW |
| 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 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 "content/public/browser/url_data_source.h" | 5 #include "content/public/browser/url_data_source.h" |
| 6 | 6 |
| 7 #include "content/browser/webui/url_data_manager.h" | 7 #include "content/browser/webui/url_data_manager.h" |
| 8 #include "content/public/browser/browser_thread.h" | 8 #include "content/public/browser/browser_thread.h" |
| 9 #include "content/public/common/url_constants.h" | 9 #include "content/public/common/url_constants.h" |
| 10 #include "net/url_request/url_request.h" | 10 #include "net/url_request/url_request.h" |
| (...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 53 } | 53 } |
| 54 | 54 |
| 55 std::string URLDataSource::GetContentSecurityPolicyImgSrc() const { | 55 std::string URLDataSource::GetContentSecurityPolicyImgSrc() const { |
| 56 return std::string(); | 56 return std::string(); |
| 57 } | 57 } |
| 58 | 58 |
| 59 bool URLDataSource::ShouldDenyXFrameOptions() const { | 59 bool URLDataSource::ShouldDenyXFrameOptions() const { |
| 60 return true; | 60 return true; |
| 61 } | 61 } |
| 62 | 62 |
| 63 bool URLDataSource::ShouldServiceRequest(const net::URLRequest* request) const { | 63 bool URLDataSource::ShouldServiceRequest(const GURL& url, |
| 64 if (request->url().SchemeIs(kChromeDevToolsScheme) || | 64 ResourceContext* resource_context, |
| 65 request->url().SchemeIs(kChromeUIScheme)) | 65 int render_process_id) const { |
| 66 return true; | 66 return url.SchemeIs(kChromeDevToolsScheme) || url.SchemeIs(kChromeUIScheme); |
| 67 return false; | |
| 68 } | 67 } |
| 69 | 68 |
| 70 bool URLDataSource::ShouldServeMimeTypeAsContentTypeHeader() const { | 69 bool URLDataSource::ShouldServeMimeTypeAsContentTypeHeader() const { |
| 71 return false; | 70 return false; |
| 72 } | 71 } |
| 73 | 72 |
| 74 std::string URLDataSource::GetAccessControlAllowOriginForOrigin( | 73 std::string URLDataSource::GetAccessControlAllowOriginForOrigin( |
| 75 const std::string& origin) const { | 74 const std::string& origin) const { |
| 76 return std::string(); | 75 return std::string(); |
| 77 } | 76 } |
| 78 | 77 |
| 79 bool URLDataSource::IsGzipped(const std::string& path) const { | 78 bool URLDataSource::IsGzipped(const std::string& path) const { |
| 80 return false; | 79 return false; |
| 81 } | 80 } |
| 82 | 81 |
| 83 } // namespace content | 82 } // namespace content |
| OLD | NEW |