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

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

Issue 14039004: Add int params to URLDataSource::StartDataRequest(). (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/browser/webui/web_ui_data_source_impl.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/public/browser/url_data_source.h
diff --git a/content/public/browser/url_data_source.h b/content/public/browser/url_data_source.h
index 93d38c0c2ae71c1675c7951a39ad456acb0a950b..acd47fdb60acd0a742e671aae62c738c6a61fe94 100644
--- a/content/public/browser/url_data_source.h
+++ b/content/public/browser/url_data_source.h
@@ -43,12 +43,19 @@ class CONTENT_EXPORT URLDataSource {
// it's available.
typedef base::Callback<void(base::RefCountedMemory*)> GotDataCallback;
+ // Request fields passed to StartDataRequest in addition to the path.
+ struct ExtraRequestInfo {
+ bool is_incognito;
+ int render_process_id;
+ int render_view_id;
+ };
+
// Called by URLDataSource to request data at |path|. The string parameter is
// the path of the request. The child class should run |callback| when the
// data is available or if the request could not be satisfied. This can be
// called either in this callback or asynchronously with the response.
virtual void StartDataRequest(const std::string& path,
- bool is_incognito,
+ const ExtraRequestInfo& info,
jam 2013/04/16 23:15:30 Per the conventions for the Content API (http://ww
Jered 2013/04/16 23:48:15 One of the callees who wants to check is_incognito
const GotDataCallback& callback) = 0;
// Return the mimetype that should be sent with this response, or empty
« no previous file with comments | « content/browser/webui/web_ui_data_source_impl.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698