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

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

Issue 11896113: Add chrome-search: access from Instant overlay (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Yet another rebase Created 7 years, 9 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
« no previous file with comments | « content/public/browser/url_data_source.h ('k') | content/shell/shell_browser_context.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/public/browser/url_data_source.cc
diff --git a/content/public/browser/url_data_source.cc b/content/public/browser/url_data_source.cc
index 44239d6a7c52c227df374d3778800a4e4d981e9e..b3c62b32ea36af65703cc16130e450ddfc1c573d 100644
--- a/content/public/browser/url_data_source.cc
+++ b/content/public/browser/url_data_source.cc
@@ -6,6 +6,8 @@
#include "content/browser/webui/url_data_manager.h"
#include "content/public/browser/browser_thread.h"
+#include "content/public/common/url_constants.h"
+#include "net/url_request/url_request.h"
namespace content {
@@ -43,4 +45,11 @@ bool URLDataSource::ShouldDenyXFrameOptions() const {
return true;
}
+bool URLDataSource::ShouldServiceRequest(const net::URLRequest* request) const {
+ if (request->url().SchemeIs(chrome::kChromeDevToolsScheme) ||
+ request->url().SchemeIs(chrome::kChromeUIScheme))
+ return true;
+ return false;
+}
+
} // namespace content
« no previous file with comments | « content/public/browser/url_data_source.h ('k') | content/shell/shell_browser_context.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698