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

Unified 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 side-by-side diff with in-line comments
Download patch
Index: content/public/browser/url_data_source.cc
===================================================================
--- content/public/browser/url_data_source.cc (revision 176717)
+++ content/public/browser/url_data_source.cc (working copy)
@@ -2,29 +2,22 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#include "content/public/browser/url_data_source_delegate.h"
+#include "content/public/browser/url_data_source.h"
#include "content/public/browser/browser_thread.h"
namespace content {
-URLDataSourceDelegate::URLDataSourceDelegate()
- : url_data_source_(NULL) {
-}
-
-URLDataSourceDelegate::~URLDataSourceDelegate() {
-}
-
-MessageLoop* URLDataSourceDelegate::MessageLoopForRequestPath(
+MessageLoop* URLDataSource::MessageLoopForRequestPath(
const std::string& path) const {
return BrowserThread::UnsafeGetMessageLoopForThread(BrowserThread::UI);
}
-bool URLDataSourceDelegate::ShouldReplaceExistingSource() const {
+bool URLDataSource::ShouldReplaceExistingSource() const {
return true;
}
-bool URLDataSourceDelegate::AllowCaching() const {
+bool URLDataSource::AllowCaching() const {
return true;
}

Powered by Google App Engine
This is Rietveld 408576698