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

Unified Diff: content/browser/media/capture/image_capture_impl.h

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
Index: content/browser/media/capture/image_capture_impl.h
diff --git a/content/browser/media/capture/image_capture_impl.h b/content/browser/media/capture/image_capture_impl.h
index fc412ef4b2b299af688e21d9779c85a4f9fe494a..bb919cf32cf116388d0908ee7ce3f9a6bb901c45 100644
--- a/content/browser/media/capture/image_capture_impl.h
+++ b/content/browser/media/capture/image_capture_impl.h
@@ -6,17 +6,16 @@
#define CONTENT_BROWSER_MEDIA_CAPTURE_IMAGE_CAPTURE_IMPL_H_
#include "media/mojo/interfaces/image_capture.mojom.h"
-#include "mojo/public/cpp/bindings/interface_request.h"
-#include "mojo/public/cpp/bindings/strong_binding.h"
namespace content {
class ImageCaptureImpl : public media::mojom::ImageCapture {
public:
- static void Create(
- mojo::InterfaceRequest<media::mojom::ImageCapture> request);
+ ImageCaptureImpl();
~ImageCaptureImpl() override;
+ static void Create(media::mojom::ImageCaptureRequest request);
+
void GetCapabilities(const std::string& source_id,
const GetCapabilitiesCallback& callback) override;
@@ -28,11 +27,6 @@ class ImageCaptureImpl : public media::mojom::ImageCapture {
const TakePhotoCallback& callback) override;
private:
- explicit ImageCaptureImpl(
- mojo::InterfaceRequest<media::mojom::ImageCapture> request);
-
- mojo::StrongBinding<media::mojom::ImageCapture> binding_;
-
DISALLOW_COPY_AND_ASSIGN(ImageCaptureImpl);
};
« no previous file with comments | « content/browser/media/android/provision_fetcher_impl.cc ('k') | content/browser/media/capture/image_capture_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698