Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(107)

Side by Side Diff: content/public/browser/url_data_source.cc

Issue 11881055: Simplify WebUI data sources. Currently WebUI data sources implement a URLDataSourceDelegate interfa… (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: fix issue in about_ui exposed by cros tests Created 7 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698