| Index: content/common/child_process_host_impl.cc
|
| diff --git a/content/common/child_process_host_impl.cc b/content/common/child_process_host_impl.cc
|
| index ec444a810ecdb771159e6ec6904e9fde7067ceb5..6ccba1e21cf2ec6750307135768c69c2b45d4cff 100644
|
| --- a/content/common/child_process_host_impl.cc
|
| +++ b/content/common/child_process_host_impl.cc
|
| @@ -38,11 +38,48 @@
|
| #include "content/common/font_cache_dispatcher_win.h"
|
| #endif // OS_LINUX
|
|
|
| +#include "content/public/common/image_decoder.mojom.h"
|
| +
|
| namespace {
|
|
|
| // Global atomic to generate child process unique IDs.
|
| base::StaticAtomicSequenceNumber g_unique_id;
|
|
|
| +class ImageDecoderImpl : public content::mojom::ImageDecoder {
|
| + public:
|
| + ImageDecoderImpl() {}
|
| + ~ImageDecoderImpl() override {}
|
| +
|
| + void DecodeImage(mojo::Array<uint8_t> encoded_data,
|
| + content::mojom::ImageCodec codec,
|
| + bool shrink_to_fit,
|
| + const DecodeImageCallback& callback) override {
|
| + }
|
| + void DecodeImage2(content::mojom::ImageCodec codec,
|
| + bool shrink_to_fit,
|
| + const DecodeImage2Callback& callback) override {
|
| + }
|
| + void DecodeImage3(mojo::Array<uint8_t> encoded_data,
|
| + bool shrink_to_fit,
|
| + const DecodeImage3Callback& callback) override {
|
| + }
|
| + void DecodeImage4(mojo::Array<uint8_t> encoded_data,
|
| + content::mojom::ImageCodec codec,
|
| + const DecodeImage4Callback& callback) override {
|
| + }
|
| +
|
| + void DecodeImage5(mojo::Array<uint8_t> encoded_data,
|
| + content::mojom::ImageCodec codec,
|
| + bool shrink_to_fit,
|
| + const DecodeImage5Callback& callback) override {
|
| + }
|
| + void DecodeImage6(mojo::Array<uint8_t> encoded_data,
|
| + content::mojom::ImageCodec codec,
|
| + bool shrink_to_fit,
|
| + const DecodeImage6Callback& callback) override {
|
| + }
|
| +};
|
| +
|
| } // namespace
|
|
|
| namespace content {
|
| @@ -54,6 +91,20 @@ uint64_t ChildProcessHost::kBrowserTracingProcessId =
|
|
|
| // static
|
| ChildProcessHost* ChildProcessHost::Create(ChildProcessHostDelegate* delegate) {
|
| + ImageDecoderImpl foo;
|
| + mojom::ImageDecoderPtr client;
|
| + client->DecodeImage(nullptr, content::mojom::ImageCodec::DEFAULT,
|
| + false, mojom::ImageDecoder::DecodeImageCallback());
|
| + client->DecodeImage2(content::mojom::ImageCodec::DEFAULT,
|
| + false, mojom::ImageDecoder::DecodeImage2Callback());
|
| + client->DecodeImage3(nullptr,
|
| + false, mojom::ImageDecoder::DecodeImage3Callback());
|
| + client->DecodeImage4(nullptr, content::mojom::ImageCodec::DEFAULT,
|
| + mojom::ImageDecoder::DecodeImage4Callback());
|
| + client->DecodeImage5(nullptr, content::mojom::ImageCodec::DEFAULT,
|
| + false, mojom::ImageDecoder::DecodeImage5Callback());
|
| + client->DecodeImage6(nullptr, content::mojom::ImageCodec::DEFAULT,
|
| + false, mojom::ImageDecoder::DecodeImage6Callback());
|
| return new ChildProcessHostImpl(delegate);
|
| }
|
|
|
|
|