summaryrefslogtreecommitdiffstats
path: root/chromium/content/public/browser/url_data_source.h
diff options
context:
space:
mode:
Diffstat (limited to 'chromium/content/public/browser/url_data_source.h')
-rw-r--r--chromium/content/public/browser/url_data_source.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/chromium/content/public/browser/url_data_source.h b/chromium/content/public/browser/url_data_source.h
index d93e51e4d87..33c185b63b8 100644
--- a/chromium/content/public/browser/url_data_source.h
+++ b/chromium/content/public/browser/url_data_source.h
@@ -36,7 +36,11 @@ class CONTENT_EXPORT URLDataSource {
// The name of this source.
// E.g., for favicons, this could be "favicon", which results in paths for
- // specific resources like "favicon/34" getting sent to this source.
+ // specific resources like "favicon/34" getting sent to this source. For
+ // sources where a scheme is used instead of the hostname as the unique
+ // identifier, the suffix "://" must be added to the return value, eg. for a
+ // URLDataSource which would display resources with URLs on the form
+ // your-scheme://anything , GetSource() must return "your-scheme://".
virtual std::string GetSource() const = 0;
// Used by StartDataRequest so that the child class can return the data when
@@ -49,7 +53,7 @@ class CONTENT_EXPORT URLDataSource {
// called either in this callback or asynchronously with the response.
virtual void StartDataRequest(const std::string& path,
int render_process_id,
- int render_view_id,
+ int render_frame_id,
const GotDataCallback& callback) = 0;
// Return the mimetype that should be sent with this response, or empty