Re-subimission of https://codereview.chromium.org/1041213003/
[chromium-blink-merge.git] / content / public / browser / readback_types.h
blob338dc38990885499acd3cf61e0ee7e2139eb17e7
1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #ifndef CONTENT_PUBLIC_BROWSER_READBACK_TYPES_H_
6 #define CONTENT_PUBLIC_BROWSER_READBACK_TYPES_H_
8 #include "base/callback.h"
10 class SkBitmap;
12 namespace content {
14 enum ReadbackResponse {
15 READBACK_SUCCESS,
16 READBACK_FAILED,
17 READBACK_FORMAT_NOT_SUPPORTED,
18 READBACK_NOT_SUPPORTED,
19 READBACK_SURFACE_UNAVAILABLE,
20 READBACK_MEMORY_ALLOCATION_FAILURE,
23 typedef const base::Callback<void(const SkBitmap&, ReadbackResponse)>
24 ReadbackRequestCallback;
26 } // namespace content
28 #endif // CONTENT_PUBLIC_BROWSER_READBACK_TYPES_H_