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

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

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
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 #ifndef CONTENT_PUBLIC_BROWSER_URL_DATA_SOURCE_H_ 5 #ifndef CONTENT_PUBLIC_BROWSER_URL_DATA_SOURCE_H_
6 #define CONTENT_PUBLIC_BROWSER_URL_DATA_SOURCE_H_ 6 #define CONTENT_PUBLIC_BROWSER_URL_DATA_SOURCE_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/callback.h" 10 #include "base/callback.h"
(...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after
126 // |origin|, or "*", or "none", or empty string. 126 // |origin|, or "*", or "none", or empty string.
127 // Default implementation returns an empty string. 127 // Default implementation returns an empty string.
128 virtual std::string GetAccessControlAllowOriginForOrigin( 128 virtual std::string GetAccessControlAllowOriginForOrigin(
129 const std::string& origin) const; 129 const std::string& origin) const;
130 130
131 // Called to inform the source that StartDataRequest() will be called soon. 131 // Called to inform the source that StartDataRequest() will be called soon.
132 // Gives the source an opportunity to rewrite |path| to incorporate extra 132 // Gives the source an opportunity to rewrite |path| to incorporate extra
133 // information from the URLRequest prior to serving. 133 // information from the URLRequest prior to serving.
134 virtual void WillServiceRequest( 134 virtual void WillServiceRequest(
135 const net::URLRequest* request, 135 const net::URLRequest* request,
136 std::string* path) const {} 136 std::string* path) const;
137 }; 137 };
138 138
139 } // namespace content 139 } // namespace content
140 140
141 #endif // CONTENT_PUBLIC_BROWSER_URL_DATA_SOURCE_H_ 141 #endif // CONTENT_PUBLIC_BROWSER_URL_DATA_SOURCE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698