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

Unified Diff: content/common/child_process_host_impl.cc

Issue 1841743003: Binary size test CL. Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | content/content_common_mojo_bindings.gyp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
}
« no previous file with comments | « no previous file | content/content_common_mojo_bindings.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698