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

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

Issue 593503003: Support error handling for Surface readbacks (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Formatted code and fixed build issue in test. Created 6 years, 1 month 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 21c78f18e62921a37ba9734c410407b997942edf..df85f56086705928f52e4784311350ba8deca419 100644
--- a/content/browser/frame_host/navigation_entry_screenshot_manager.h
+++ b/content/browser/frame_host/navigation_entry_screenshot_manager.h
@@ -9,6 +9,7 @@
#include "base/memory/weak_ptr.h"
#include "base/time/time.h"
#include "content/common/content_export.h"
+#include "content/public/browser/readback_types.h"
class SkBitmap;
@@ -50,8 +51,8 @@ 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,
- bool success,
- const SkBitmap& bitmap);
+ const SkBitmap& bitmap,
+ ReadbackResponse response);
// Returns the number of entries with screenshots.
int GetScreenshotCount() const;

Powered by Google App Engine
This is Rietveld 408576698