Index: content/public/browser/readback_types.h |
diff --git a/content/public/browser/readback_types.h b/content/public/browser/readback_types.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..f3d2a6906b535ce4381c330b5a67c7b615684c9c |
--- /dev/null |
+++ b/content/public/browser/readback_types.h |
@@ -0,0 +1,28 @@ |
+// Copyright 2014 The Chromium Authors. All rights reserved. |
+// Use of this source code is governed by a BSD-style license that can be |
+// found in the LICENSE file. |
+ |
+#ifndef CONTENT_COMMON_READBACK_TYPES_H_ |
+#define CONTENT_COMMON_READBACK_TYPES_H_ |
+ |
+#include "base/callback.h" |
+ |
+class SkBitmap; |
+ |
+namespace content { |
+ |
+enum ReadbackResponse { |
+ READBACK_SUCCESS, |
+ READBACK_FAILED, |
+ READBACK_FORMAT_NOT_SUPPORTED, |
+ READBACK_NOT_SUPPORTED, |
+ READBACK_SURFACE_UNAVAILABLE, |
+ READBACK_MEMORY_ALLOCATION_FAILURE, |
+}; |
+ |
+typedef const base::Callback<void(const SkBitmap&, ReadbackResponse)> |
+ ReadbackRequestCallback; |
+ |
+} // namespace content |
+ |
+#endif // CONTENT_COMMON_READBACK_TYPES_H_ |