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

Side by Side Diff: services/image_decoder/image_decoder_impl.h

Issue 1028543002: Turn the utility process image decoder into a Mojo service. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Move things around. Created 5 years, 9 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
OLDNEW
(Empty)
1 // Copyright 2015 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 SERVICES_IMAGE_DECODER_IMAGE_DECODER_IMPL_H_
6 #define SERVICES_IMAGE_DECODER_IMAGE_DECODER_IMPL_H_
7
8 #include "base/macros.h"
9 #include "services/image_decoder/public/interfaces/image_decoder.mojom.h"
10 #include "third_party/mojo/src/mojo/public/cpp/bindings/strong_binding.h"
11
12 namespace services {
13 namespace image_decoder {
14
15 class ImageDecoderImpl : public ImageDecoder {
16 public:
17 explicit ImageDecoderImpl(mojo::InterfaceRequest<ImageDecoder> request);
18 ~ImageDecoderImpl() override;
19
20 private:
21 void DecodeImage(
22 mojo::Array<uint8_t> encoded_data,
23 ImageCodec codec,
24 bool shrink_to_fit,
25 const mojo::Callback<void(bool, skia::ImagePtr)>& callback) override;
26
27 mojo::StrongBinding<ImageDecoder> binding_;
28
29 DISALLOW_COPY_AND_ASSIGN(ImageDecoderImpl);
30 };
31
32 } // namespace image_decoder
33 } // namespace services
34
35 #endif // SERVICES_IMAGE_DECODER_IMAGE_DECODER_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698