#include "extensions/browser/api/web_contents_capture_client.h"
#include "base/base64.h"
#include "base/strings/stringprintf.h"
#include "base/syslog_logging.h"
#include "build/chromeos_buildflags.h"
#include "content/public/browser/render_widget_host.h"
#include "content/public/browser/render_widget_host_view.h"
#include "content/public/browser/web_contents.h"
#include "extensions/browser/extension_function.h"
#include "extensions/common/constants.h"
#include "third_party/skia/include/core/SkBitmap.h"
#include "ui/gfx/codec/jpeg_codec.h"
#include "ui/gfx/codec/png_codec.h"
RenderWidgetHost;
RenderWidgetHostView;
WebContents;
namespace extensions {
ImageDetails;
WebContentsCaptureClient::CaptureResult WebContentsCaptureClient::CaptureAsync(
WebContents* web_contents,
const ImageDetails* image_details,
base::OnceCallback<void(const SkBitmap&)> callback) { … }
void WebContentsCaptureClient::CopyFromSurfaceComplete(const SkBitmap& bitmap) { … }
bool WebContentsCaptureClient::EncodeBitmap(const SkBitmap& bitmap,
std::string* base64_result) { … }
}