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

Unified Diff: webkit/glue/webdatasource.h

Issue 115575: Move ExtraData from WebRequest to WebDataSource.... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 11 years, 7 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
Index: webkit/glue/webdatasource.h
===================================================================
--- webkit/glue/webdatasource.h (revision 16382)
+++ webkit/glue/webdatasource.h (working copy)
@@ -32,6 +32,13 @@
class WebDataSource {
public:
+ // A base class for extra data that may be associated with this datasource.
+ // See Set/GetExtraData below.
+ class ExtraData {
+ public:
+ virtual ~ExtraData() {}
+ };
+
virtual ~WebDataSource() {}
// Returns a reference to the original request data that created the
@@ -119,6 +126,13 @@
// Returns the reason the document was loaded.
virtual WebNavigationType GetNavigationType() const = 0;
+
+ // Extra data associated with this datasource. If non-null, the extra data
+ // pointer will be deleted when the datasource is destroyed. Setting the
+ // extra data pointer will cause any existing non-null extra data pointer to
+ // be deleted.
+ virtual ExtraData* GetExtraData() const = 0;
+ virtual void SetExtraData(ExtraData* extra_data) = 0;
};
#endif // #ifndef WEBKIT_GLUE_WEBDATASOURCE_H_

Powered by Google App Engine
This is Rietveld 408576698