| 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 | 9 |
| 10 namespace content { | 10 namespace content { |
| 11 | 11 |
| 12 void URLDataSource::Add(BrowserContext* browser_context, | 12 void URLDataSource::Add(BrowserContext* browser_context, |
| 13 URLDataSource* source) { | 13 URLDataSource* source) { |
| 14 ChromeURLDataManager::AddDataSource(browser_context, source); | 14 URLDataManager::AddDataSource(browser_context, source); |
| 15 } | 15 } |
| 16 | 16 |
| 17 MessageLoop* URLDataSource::MessageLoopForRequestPath( | 17 MessageLoop* URLDataSource::MessageLoopForRequestPath( |
| 18 const std::string& path) const { | 18 const std::string& path) const { |
| 19 return BrowserThread::UnsafeGetMessageLoopForThread(BrowserThread::UI); | 19 return BrowserThread::UnsafeGetMessageLoopForThread(BrowserThread::UI); |
| 20 } | 20 } |
| 21 | 21 |
| 22 bool URLDataSource::ShouldReplaceExistingSource() const { | 22 bool URLDataSource::ShouldReplaceExistingSource() const { |
| 23 return true; | 23 return true; |
| 24 } | 24 } |
| (...skipping 12 matching lines...) Expand all Loading... |
| 37 | 37 |
| 38 std::string URLDataSource::GetContentSecurityPolicyFrameSrc() const { | 38 std::string URLDataSource::GetContentSecurityPolicyFrameSrc() const { |
| 39 return "frame-src 'none';"; | 39 return "frame-src 'none';"; |
| 40 } | 40 } |
| 41 | 41 |
| 42 bool URLDataSource::ShouldDenyXFrameOptions() const { | 42 bool URLDataSource::ShouldDenyXFrameOptions() const { |
| 43 return true; | 43 return true; |
| 44 } | 44 } |
| 45 | 45 |
| 46 } // namespace content | 46 } // namespace content |
| OLD | NEW |