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

Side by Side Diff: content/browser/image_capture/image_capture_impl.h

Issue 2851173004: Eliminate bind callback that doesn't take a BindSourceInfo parameter. (Closed)
Patch Set: . Created 3 years, 7 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 unified diff | Download patch
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CONTENT_BROWSER_IMAGE_CAPTURE_IMAGE_CAPTURE_IMPL_H_ 5 #ifndef CONTENT_BROWSER_IMAGE_CAPTURE_IMAGE_CAPTURE_IMPL_H_
6 #define CONTENT_BROWSER_IMAGE_CAPTURE_IMAGE_CAPTURE_IMPL_H_ 6 #define CONTENT_BROWSER_IMAGE_CAPTURE_IMAGE_CAPTURE_IMPL_H_
7 7
8 #include "media/capture/mojo/image_capture.mojom.h" 8 #include "media/capture/mojo/image_capture.mojom.h"
9 9
10 namespace service_manager {
11 struct BindSourceInfo;
12 }
13
10 namespace content { 14 namespace content {
11 15
12 class ImageCaptureImpl : public media::mojom::ImageCapture { 16 class ImageCaptureImpl : public media::mojom::ImageCapture {
13 public: 17 public:
14 ImageCaptureImpl(); 18 ImageCaptureImpl();
15 ~ImageCaptureImpl() override; 19 ~ImageCaptureImpl() override;
16 20
17 static void Create(media::mojom::ImageCaptureRequest request); 21 static void Create(const service_manager::BindSourceInfo& source_info,
22 media::mojom::ImageCaptureRequest request);
18 23
19 void GetCapabilities(const std::string& source_id, 24 void GetCapabilities(const std::string& source_id,
20 const GetCapabilitiesCallback& callback) override; 25 const GetCapabilitiesCallback& callback) override;
21 26
22 void SetOptions(const std::string& source_id, 27 void SetOptions(const std::string& source_id,
23 media::mojom::PhotoSettingsPtr settings, 28 media::mojom::PhotoSettingsPtr settings,
24 const SetOptionsCallback& callback) override; 29 const SetOptionsCallback& callback) override;
25 30
26 void TakePhoto(const std::string& source_id, 31 void TakePhoto(const std::string& source_id,
27 const TakePhotoCallback& callback) override; 32 const TakePhotoCallback& callback) override;
28 33
29 private: 34 private:
30 DISALLOW_COPY_AND_ASSIGN(ImageCaptureImpl); 35 DISALLOW_COPY_AND_ASSIGN(ImageCaptureImpl);
31 }; 36 };
32 37
33 } // namespace content 38 } // namespace content
34 39
35 #endif // CONTENT_BROWSER_IMAGE_CAPTURE_IMAGE_CAPTURE_IMPL_H_ 40 #endif // CONTENT_BROWSER_IMAGE_CAPTURE_IMAGE_CAPTURE_IMPL_H_
OLDNEW
« no previous file with comments | « content/browser/hyphenation/hyphenation_impl.cc ('k') | content/browser/image_capture/image_capture_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698