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

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

Issue 1217503012: Avoid cross-origin iframe issues when loading PDF in print preview (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 5 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') | no next file » | 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 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
54 54
55 bool URLDataSource::ShouldServeMimeTypeAsContentTypeHeader() const { 55 bool URLDataSource::ShouldServeMimeTypeAsContentTypeHeader() const {
56 return false; 56 return false;
57 } 57 }
58 58
59 std::string URLDataSource::GetAccessControlAllowOriginForOrigin( 59 std::string URLDataSource::GetAccessControlAllowOriginForOrigin(
60 const std::string& origin) const { 60 const std::string& origin) const {
61 return std::string(); 61 return std::string();
62 } 62 }
63 63
64 void URLDataSource::WillServiceRequest(
65 const net::URLRequest* request,
66 std::string* path) const {
67 // In the normal case we want to remove any query strings from the path. This
68 // may not be true for subclasses which can override this behavior.
69 *path = path->substr(0, path->find_last_of('?'));
Charlie Reis 2015/07/20 16:49:09 I don't think this is a good change to make. Thin
70 }
71
64 } // namespace content 72 } // namespace content
OLDNEW
« no previous file with comments | « content/public/browser/url_data_source.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698