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

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

Issue 2255833003: DO NOT COMMIT: hack hack hacking on preloading md-settings (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: to show dave Created 4 years, 4 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
« no previous file with comments | « content/public/browser/url_data_source.h ('k') | content/public/browser/web_ui_data_source.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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.h" 5 #include "content/public/browser/url_data_source.h"
6 6
7 #include "content/browser/webui/url_data_manager.h" 7 #include "content/browser/webui/url_data_manager.h"
8 #include "content/public/browser/browser_thread.h" 8 #include "content/public/browser/browser_thread.h"
9 #include "content/public/common/url_constants.h" 9 #include "content/public/common/url_constants.h"
10 #include "net/url_request/url_request.h" 10 #include "net/url_request/url_request.h"
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
53 } 53 }
54 54
55 std::string URLDataSource::GetContentSecurityPolicyImgSrc() const { 55 std::string URLDataSource::GetContentSecurityPolicyImgSrc() const {
56 return std::string(); 56 return std::string();
57 } 57 }
58 58
59 bool URLDataSource::ShouldDenyXFrameOptions() const { 59 bool URLDataSource::ShouldDenyXFrameOptions() const {
60 return true; 60 return true;
61 } 61 }
62 62
63 std::vector<std::string> URLDataSource::GetPreloadHeaders() const {
64 return std::vector<std::string>();
65 }
66
63 bool URLDataSource::ShouldServiceRequest(const net::URLRequest* request) const { 67 bool URLDataSource::ShouldServiceRequest(const net::URLRequest* request) const {
64 if (request->url().SchemeIs(kChromeDevToolsScheme) || 68 if (request->url().SchemeIs(kChromeDevToolsScheme) ||
65 request->url().SchemeIs(kChromeUIScheme)) 69 request->url().SchemeIs(kChromeUIScheme))
66 return true; 70 return true;
67 return false; 71 return false;
68 } 72 }
69 73
70 bool URLDataSource::ShouldServeMimeTypeAsContentTypeHeader() const { 74 bool URLDataSource::ShouldServeMimeTypeAsContentTypeHeader() const {
71 return false; 75 return false;
72 } 76 }
73 77
74 std::string URLDataSource::GetAccessControlAllowOriginForOrigin( 78 std::string URLDataSource::GetAccessControlAllowOriginForOrigin(
75 const std::string& origin) const { 79 const std::string& origin) const {
76 return std::string(); 80 return std::string();
77 } 81 }
78 82
79 } // namespace content 83 } // namespace content
OLDNEW
« no previous file with comments | « content/public/browser/url_data_source.h ('k') | content/public/browser/web_ui_data_source.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698