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

Unified Diff: content/public/browser/url_data_source_delegate.cc

Issue 11885021: Don't derive from ChromeURLDataManager::DataSource, and instead have these classes implement a dele… (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: nits 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_delegate.cc
===================================================================
--- content/public/browser/url_data_source_delegate.cc (revision 0)
+++ content/public/browser/url_data_source_delegate.cc (revision 0)
@@ -0,0 +1,31 @@
+// Copyright (c) 2013 The Chromium Authors. All rights reserved.
+// 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/browser_thread.h"
+
+namespace content {
+
+URLDataSourceDelegate::URLDataSourceDelegate()
+ : url_data_source_(NULL) {
+}
+
+URLDataSourceDelegate::~URLDataSourceDelegate() {
+}
+
+MessageLoop* URLDataSourceDelegate::MessageLoopForRequestPath(
+ const std::string& path) const {
+ return BrowserThread::UnsafeGetMessageLoopForThread(BrowserThread::UI);
+}
+
+bool URLDataSourceDelegate::ShouldReplaceExistingSource() const {
+ return true;
+}
+
+bool URLDataSourceDelegate::AllowCaching() const {
+ return true;
+}
+
+} // namespace content
Property changes on: content\public\browser\url_data_source_delegate.cc
___________________________________________________________________
Added: svn:eol-style
+ LF
« chrome/browser/ui/webui/bookmarks_ui.cc ('K') | « content/public/browser/url_data_source_delegate.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698