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

Unified Diff: content/browser/web_contents/navigation_controller_impl.h

Issue 11635059: navigation: Retain a screenshot of the page before it unloads (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 8 years 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
« no previous file with comments | « no previous file | content/browser/web_contents/navigation_controller_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/web_contents/navigation_controller_impl.h
diff --git a/content/browser/web_contents/navigation_controller_impl.h b/content/browser/web_contents/navigation_controller_impl.h
index 5fd8b14899befcd4d8bdf27bcd2567ecae5d0244..275ba2a4262a5dc5932e2719df600751aad47b69 100644
--- a/content/browser/web_contents/navigation_controller_impl.h
+++ b/content/browser/web_contents/navigation_controller_impl.h
@@ -17,6 +17,10 @@
struct ViewHostMsg_FrameNavigate_Params;
+namespace skia {
+class PlatformBitmap;
+}
+
namespace content {
class NavigationEntryImpl;
class WebContentsImpl;
@@ -308,6 +312,15 @@ class CONTENT_EXPORT NavigationControllerImpl
// specified |offset|. The index returned is not guaranteed to be valid.
int GetIndexForOffset(int offset) const;
+ // Takes a screenshot of the page at the current state.
+ void TakeScreenshot();
+
+ // The callback invoked when taking the screenshot of the page is complete.
+ // This sets the screenshot on the navigation entry.
+ void OnScreenshotTaken(int unique_id,
+ skia::PlatformBitmap* bitmap,
+ bool success);
+
// ---------------------------------------------------------------------------
// The user browser context associated with this controller.
« no previous file with comments | « no previous file | content/browser/web_contents/navigation_controller_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698