#include "content/public/browser/session_storage_namespace.h"
#include "content/public/browser/web_contents.h"
#include "content/public/browser/web_contents_delegate.h"
-#include "content/public/browser/web_contents_view.h"
#include "content/public/common/frame_navigate_params.h"
#include "content/public/common/page_transition_types.h"
#include "ui/gfx/rect.h"
return NULL;
}
+ virtual void CloseContents(content::WebContents* contents) OVERRIDE {
+ prerender_contents_->Destroy(FINAL_STATUS_CLOSED);
+ }
+
virtual void CanDownload(
RenderViewHost* render_view_host,
int request_id,
}
virtual gfx::Size GetSizeForNewRenderView(
- const WebContents* web_contents) const OVERRIDE {
+ WebContents* web_contents) const OVERRIDE {
// Have to set the size of the RenderView on initialization to be sure it is
// set before the RenderView is hidden on all platforms (esp. Android).
return prerender_contents_->size_;