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

Side by Side Diff: chrome/utility/image_decoder_impl.h

Issue 865543002: WIP: Browser image decoding using Mojo. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Cleanup and add DecodeImageBase64. Created 5 years, 11 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 unified diff | Download patch
« no previous file with comments | « chrome/utility/extensions/extensions_handler.cc ('k') | chrome/utility/image_decoder_impl.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
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.
4
5 #ifndef CHROME_UTILITY_IMAGE_DECODER_IMPL_H_
6 #define CHROME_UTILITY_IMAGE_DECODER_IMPL_H_
7
8 #include "base/macros.h"
9 #include "content/common/image_decoder.mojom.h"
10
11 namespace content {
12
13 class ImageDecoderImpl : public mojo::InterfaceImpl<ImageDecoder> {
14 public:
15 ImageDecoderImpl();
16 ~ImageDecoderImpl() override;
17
18 private:
19 void DecodeImage(
20 mojo::Array<uint8_t> encoded_data,
21 bool use_robust_jpeg,
22 bool shrink_to_fit,
23 const mojo::Callback<void(bool, ImageDataPtr)>& callback) override;
24 void DecodeImageBase64(
25 const mojo::String& encoded_data,
26 const mojo::Callback<void(bool, ImageDataPtr)>& callback) override;
27
28 DISALLOW_COPY_AND_ASSIGN(ImageDecoderImpl);
29 };
30
31 } // namespace content
32
33 #endif // CHROME_UTILITY_IMAGE_DECODER_IMPL_H_
OLDNEW
« no previous file with comments | « chrome/utility/extensions/extensions_handler.cc ('k') | chrome/utility/image_decoder_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698