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

Unified Diff: chrome/utility/image_decoder_impl.cc

Issue 2326913003: Privatize StrongBinding lifetime management (Closed)
Patch Set: rebase Created 4 years, 3 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 | « chrome/utility/image_decoder_impl.h ('k') | chrome/utility/shell_handler_impl_win.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/utility/image_decoder_impl.cc
diff --git a/chrome/utility/image_decoder_impl.cc b/chrome/utility/image_decoder_impl.cc
index 1b78b7f4108063d4d0b606ddbd1023ca918b2457..99564ac45ded0c4d82ef32b4f2b4f56cc79a5c2f 100644
--- a/chrome/utility/image_decoder_impl.cc
+++ b/chrome/utility/image_decoder_impl.cc
@@ -11,6 +11,7 @@
#include "base/logging.h"
#include "content/public/child/image_decoder_utils.h"
#include "ipc/ipc_channel.h"
+#include "mojo/public/cpp/bindings/strong_binding.h"
#include "skia/ext/image_operations.h"
#include "third_party/skia/include/core/SkBitmap.h"
#include "ui/gfx/geometry/size.h"
@@ -25,14 +26,10 @@ int64_t kMaxMessageSize = IPC::Channel::kMaximumMessageSize;
int64_t kPadding = 64;
}
-ImageDecoderImpl::ImageDecoderImpl(int64_t max_message_size)
- : max_message_size_(max_message_size), binding_(this) {
-}
+ImageDecoderImpl::ImageDecoderImpl() : ImageDecoderImpl(kMaxMessageSize) {}
-ImageDecoderImpl::ImageDecoderImpl(
- mojo::InterfaceRequest<mojom::ImageDecoder> request)
- : max_message_size_(kMaxMessageSize), binding_(this, std::move(request)) {
-}
+ImageDecoderImpl::ImageDecoderImpl(int64_t max_message_size)
+ : max_message_size_(max_message_size) {}
ImageDecoderImpl::~ImageDecoderImpl() {
}
« no previous file with comments | « chrome/utility/image_decoder_impl.h ('k') | chrome/utility/shell_handler_impl_win.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698