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

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

Issue 166533002: [wip] Introduce SiteInstanceKeepAlive. Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 6 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 072d6fd4a7fe19a1111acdb6b2e5c6c470f92285..83b062beb185cfa7d76ae809014e03befc613751 100644
--- a/content/browser/frame_host/navigation_entry_screenshot_manager.h
+++ b/content/browser/frame_host/navigation_entry_screenshot_manager.h
@@ -6,6 +6,7 @@
#define CONTENT_BROWSER_FRAME_HOST_NAVIGATION_ENTRY_SCREENSHOT_MANAGER_H_
#include "base/compiler_specific.h"
+#include "base/memory/scoped_ptr.h"
#include "base/memory/weak_ptr.h"
#include "base/time/time.h"
#include "content/common/content_export.h"
@@ -18,6 +19,7 @@ class NavigationControllerImpl;
class NavigationEntryImpl;
class RenderViewHost;
class ScreenshotData;
+class SiteInstanceKeepAlive;
// NavigationEntryScreenshotManager takes care of taking image-captures for the
// current navigation entry of a NavigationControllerImpl, and managing these
@@ -50,9 +52,14 @@ class CONTENT_EXPORT NavigationEntryScreenshotManager {
// 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,
+ scoped_ptr<SiteInstanceKeepAlive> keep_alive,
bool success,
const SkBitmap& bitmap);
+ void OnScreenshotTakenInTest(int unique_id,
sadrul 2014/02/20 05:13:31 This is to avoid exposing SiteInstanceKeepAlive ou
+ bool success,
+ const SkBitmap& bitmap);
+
// Returns the number of entries with screenshots.
int GetScreenshotCount() const;

Powered by Google App Engine
This is Rietveld 408576698