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

Unified Diff: content/browser/web_contents/web_contents_impl.h

Issue 2865653002: [Device Service] Decouple NFC implementation from //content (Closed)
Patch Set: Response to reviews 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 side-by-side diff with in-line comments
Download patch
Index: content/browser/web_contents/web_contents_impl.h
diff --git a/content/browser/web_contents/web_contents_impl.h b/content/browser/web_contents/web_contents_impl.h
index 6918f5fefc475574cad956886bfa1c20f36c2a56..c437ed6d4b4500acf20fb938ac84d75c22c1d753 100644
--- a/content/browser/web_contents/web_contents_impl.h
+++ b/content/browser/web_contents/web_contents_impl.h
@@ -53,6 +53,10 @@
#include "ui/gfx/geometry/rect_f.h"
#include "ui/gfx/geometry/size.h"
+#if defined(OS_ANDROID)
+#include "content/browser/nfc/nfc_host.h"
+#endif
+
struct ViewHostMsg_DateTimeDialogValue_Params;
namespace service_manager {
@@ -508,6 +512,9 @@ class CONTENT_EXPORT WebContentsImpl
device::GeolocationServiceContext* GetGeolocationServiceContext() override;
device::mojom::WakeLockContext* GetWakeLockContext() override;
device::mojom::WakeLockService* GetRendererWakeLock() override;
+#if defined(OS_ANDROID)
+ void GetNFC(device::nfc::mojom::NFCRequest request) override;
+#endif
void EnterFullscreenMode(const GURL& origin) override;
void ExitFullscreenMode(bool will_cause_resize) override;
bool ShouldRouteMessageEvent(
@@ -1514,6 +1521,10 @@ class CONTENT_EXPORT WebContentsImpl
device::mojom::WakeLockServicePtr renderer_wake_lock_;
+#if defined(OS_ANDROID)
+ std::unique_ptr<NFCHost> nfc_host_;
+#endif
+
std::unique_ptr<ScreenOrientationProvider> screen_orientation_provider_;
std::unique_ptr<ManifestManagerHost> manifest_manager_host_;

Powered by Google App Engine
This is Rietveld 408576698