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

Unified Diff: webkit/tools/test_shell/test_webview_delegate.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/tools/test_shell/test_webview_delegate.h
===================================================================
--- webkit/tools/test_shell/test_webview_delegate.h (revision 16382)
+++ webkit/tools/test_shell/test_webview_delegate.h (working copy)
@@ -22,6 +22,7 @@
#include "base/basictypes.h"
#include "base/ref_counted.h"
+#include "base/scoped_ptr.h"
#include "webkit/glue/webcursor.h"
#include "webkit/glue/webview_delegate.h"
#include "webkit/glue/webwidget_delegate.h"
@@ -29,6 +30,7 @@
#include "webkit/tools/test_shell/drag_delegate.h"
#include "webkit/tools/test_shell/drop_delegate.h"
#endif
+#include "webkit/tools/test_shell/test_navigation_controller.h"
struct WebPreferences;
class GURL;
@@ -123,6 +125,8 @@
int edit_flags,
const std::string& security_info,
const std::string& frame_charset);
+ virtual void DidCreateDataSource(WebFrame* frame,
+ WebDataSource* ds);
virtual void DidStartProvisionalLoadForFrame(
WebView* webview,
WebFrame* frame,
@@ -261,6 +265,10 @@
captured_context_menu_events_.clear();
}
+ void set_pending_extra_data(TestShellExtraData* extra_data) {
+ pending_extra_data_.reset(extra_data);
+ }
+
// Methods for modifying WebPreferences
void SetUserStyleSheetEnabled(bool is_enabled);
void SetUserStyleSheetLocation(const GURL& location);
@@ -327,6 +335,8 @@
int page_id_;
int last_page_id_updated_;
+ scoped_ptr<TestShellExtraData> pending_extra_data_;
+
// Maps resource identifiers to a descriptive string.
typedef std::map<uint32, std::string> ResourceMap;
ResourceMap resource_identifier_map_;

Powered by Google App Engine
This is Rietveld 408576698