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

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

Issue 2475543003: Introduce the image_decoder service (Closed)
Patch Set: . Created 4 years, 1 month 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 | « services/image_decoder/README.md ('k') | services/image_decoder/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 2016 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 <stdint.h>
9
10 #include "base/macros.h"
11 #include "services/image_decoder/public/interfaces/image_decoder.mojom.h"
12 #include "services/service_manager/public/cpp/service_context_ref.h"
13
14 namespace image_decoder {
15
16 class ImageDecoderImpl : public mojom::ImageDecoder {
17 public:
18 explicit ImageDecoderImpl(
19 std::unique_ptr<service_manager::ServiceContextRef> service_ref);
20 ~ImageDecoderImpl() override;
21
22 // Overridden from mojom::ImageDecoder:
23 void DecodeImage(
24 const std::vector<uint8_t>& encoded_data,
25 mojom::ImageCodec codec,
26 bool shrink_to_fit,
27 int64_t max_size_in_bytes,
28 const DecodeImageCallback& callback) override;
29
30 private:
31 const std::unique_ptr<service_manager::ServiceContextRef> service_ref_;
32
33 DISALLOW_COPY_AND_ASSIGN(ImageDecoderImpl);
34 };
35
36 } // namespace image_decoder
37
38 #endif // CHROME_UTILITY_IMAGE_DECODER_IMPL_H_
OLDNEW
« no previous file with comments | « services/image_decoder/README.md ('k') | services/image_decoder/image_decoder_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698