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

Side by Side Diff: chrome/browser/prerender/prerender_contents.h

Issue 6879114: Cancels prerendering on prerendering RenderView crash (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_BROWSER_PRERENDER_PRERENDER_CONTENTS_H_ 5 #ifndef CHROME_BROWSER_PRERENDER_PRERENDER_CONTENTS_H_
6 #define CHROME_BROWSER_PRERENDER_PRERENDER_CONTENTS_H_ 6 #define CHROME_BROWSER_PRERENDER_PRERENDER_CONTENTS_H_
7 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after
108 108
109 // Indicates whether this prerendered page can be used for the provided 109 // Indicates whether this prerendered page can be used for the provided
110 // URL, i.e. whether there is a match. 110 // URL, i.e. whether there is a match.
111 bool MatchesURL(const GURL& url) const; 111 bool MatchesURL(const GURL& url) const;
112 112
113 // RenderViewHostDelegate implementation. 113 // RenderViewHostDelegate implementation.
114 virtual RenderViewHostDelegate::View* GetViewDelegate(); 114 virtual RenderViewHostDelegate::View* GetViewDelegate();
115 virtual const GURL& GetURL() const; 115 virtual const GURL& GetURL() const;
116 virtual ViewType::Type GetRenderViewType() const; 116 virtual ViewType::Type GetRenderViewType() const;
117 virtual int GetBrowserWindowID() const; 117 virtual int GetBrowserWindowID() const;
118 virtual void RenderViewGone(RenderViewHost* render_view_host,
cbentzel 2011/04/22 19:55:10 Add OVERRIDE. This could probably be done in a c
mmenke 2011/04/22 20:09:20 Done (For this function only). I'll do the cleanu
119 base::TerminationStatus status,
120 int error_code);
118 virtual void DidNavigate(RenderViewHost* render_view_host, 121 virtual void DidNavigate(RenderViewHost* render_view_host,
119 const ViewHostMsg_FrameNavigate_Params& params); 122 const ViewHostMsg_FrameNavigate_Params& params);
120 virtual void UpdateTitle(RenderViewHost* render_view_host, 123 virtual void UpdateTitle(RenderViewHost* render_view_host,
121 int32 page_id, 124 int32 page_id,
122 const string16& title, 125 const string16& title,
123 WebKit::WebTextDirection title_direction) OVERRIDE; 126 WebKit::WebTextDirection title_direction) OVERRIDE;
124 virtual WebPreferences GetWebkitPrefs(); 127 virtual WebPreferences GetWebkitPrefs();
125 virtual void RunJavaScriptMessage(const std::wstring& message, 128 virtual void RunJavaScriptMessage(const std::wstring& message,
126 const std::wstring& default_prompt, 129 const std::wstring& default_prompt,
127 const GURL& frame_url, 130 const GURL& frame_url,
(...skipping 153 matching lines...) Expand 10 before | Expand all | Expand 10 after
281 // Maximum amount of private memory that may be used per PrerenderContents, 284 // Maximum amount of private memory that may be used per PrerenderContents,
282 // in MB. 285 // in MB.
283 static const int kMaxPrerenderPrivateMB = 100; 286 static const int kMaxPrerenderPrivateMB = 100;
284 287
285 DISALLOW_COPY_AND_ASSIGN(PrerenderContents); 288 DISALLOW_COPY_AND_ASSIGN(PrerenderContents);
286 }; 289 };
287 290
288 } // prerender 291 } // prerender
289 292
290 #endif // CHROME_BROWSER_PRERENDER_PRERENDER_CONTENTS_H_ 293 #endif // CHROME_BROWSER_PRERENDER_PRERENDER_CONTENTS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698