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