| 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_delegate.h" | 5 #include "content/public/browser/url_data_source.h" |
| 6 | 6 |
| 7 #include "content/public/browser/browser_thread.h" | 7 #include "content/public/browser/browser_thread.h" |
| 8 | 8 |
| 9 namespace content { | 9 namespace content { |
| 10 | 10 |
| 11 URLDataSourceDelegate::URLDataSourceDelegate() | 11 MessageLoop* URLDataSource::MessageLoopForRequestPath( |
| 12 : url_data_source_(NULL) { | |
| 13 } | |
| 14 | |
| 15 URLDataSourceDelegate::~URLDataSourceDelegate() { | |
| 16 } | |
| 17 | |
| 18 MessageLoop* URLDataSourceDelegate::MessageLoopForRequestPath( | |
| 19 const std::string& path) const { | 12 const std::string& path) const { |
| 20 return BrowserThread::UnsafeGetMessageLoopForThread(BrowserThread::UI); | 13 return BrowserThread::UnsafeGetMessageLoopForThread(BrowserThread::UI); |
| 21 } | 14 } |
| 22 | 15 |
| 23 bool URLDataSourceDelegate::ShouldReplaceExistingSource() const { | 16 bool URLDataSource::ShouldReplaceExistingSource() const { |
| 24 return true; | 17 return true; |
| 25 } | 18 } |
| 26 | 19 |
| 27 bool URLDataSourceDelegate::AllowCaching() const { | 20 bool URLDataSource::AllowCaching() const { |
| 28 return true; | 21 return true; |
| 29 } | 22 } |
| 30 | 23 |
| 31 } // namespace content | 24 } // namespace content |
| OLD | NEW |