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

Unified Diff: content/browser/frame_host/navigation_entry_screenshot_manager.h

Issue 2702093002: Consistent CopyFromSurface() API, consolidated to RWHV (Closed)
Patch Set: REBASE Created 3 years, 10 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: content/browser/frame_host/navigation_entry_screenshot_manager.h
diff --git a/content/browser/frame_host/navigation_entry_screenshot_manager.h b/content/browser/frame_host/navigation_entry_screenshot_manager.h
index 40600af2d22b4c1f1a2bd2bb235916b0cd7c4e99..508b1895ce536cbdd8d3fee6d177e1c4ab2e7faa 100644
--- a/content/browser/frame_host/navigation_entry_screenshot_manager.h
+++ b/content/browser/frame_host/navigation_entry_screenshot_manager.h
@@ -38,8 +38,10 @@ class CONTENT_EXPORT NavigationEntryScreenshotManager {
void ClearAllScreenshots();
protected:
- virtual void TakeScreenshotImpl(RenderViewHost* host,
- NavigationEntryImpl* entry);
+ // Overridden by tests to be notified when a screenshot will be taken. Tests
+ // can override OnScreenshotSet() to be notified after the screenshot is
+ // taken.
+ virtual void WillTakeScreenshot(RenderViewHost* host) {}
// Called after a screenshot has been set on an NavigationEntryImpl.
// Overridden in tests to get notified of when a screenshot is set.

Powered by Google App Engine
This is Rietveld 408576698