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

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

Issue 13375003: Fixing iframe jank in the local omnibox popup. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Removing sites, too. Created 7 years, 8 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 | Annotate | Revision Log
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 88 matching lines...) Expand 10 before | Expand all | Expand 10 after
99 // By default, the "X-Frame-Options: DENY" header is sent. To stop this from 99 // By default, the "X-Frame-Options: DENY" header is sent. To stop this from
100 // happening, return false. It is OK to return false as needed. 100 // happening, return false. It is OK to return false as needed.
101 virtual bool ShouldDenyXFrameOptions() const; 101 virtual bool ShouldDenyXFrameOptions() const;
102 102
103 // By default, only chrome: and chrome-devtools: requests are allowed. 103 // By default, only chrome: and chrome-devtools: requests are allowed.
104 // Override in specific WebUI data sources to enable for additional schemes or 104 // Override in specific WebUI data sources to enable for additional schemes or
105 // to implement fancier access control. Typically used in concert with 105 // to implement fancier access control. Typically used in concert with
106 // ContentBrowserClient::GetAdditionalWebUISchemes() to permit additional 106 // ContentBrowserClient::GetAdditionalWebUISchemes() to permit additional
107 // WebUI scheme support for an embedder. 107 // WebUI scheme support for an embedder.
108 virtual bool ShouldServiceRequest(const net::URLRequest* request) const; 108 virtual bool ShouldServiceRequest(const net::URLRequest* request) const;
109
110 // Called to inform the source that StartDataRequest() will be called soon.
111 // Gives the source an opportunity to rewrite |path| to incorporate extra
112 // information from the URLRequest prior to serving.
113 virtual void WillServiceRequest(
114 const net::URLRequest* request,
115 std::string* path) const;
109 }; 116 };
110 117
111 } // namespace content 118 } // namespace content
112 119
113 #endif // CONTENT_PUBLIC_BROWSER_URL_DATA_SOURCE_H_ 120 #endif // CONTENT_PUBLIC_BROWSER_URL_DATA_SOURCE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698