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

Side by Side Diff: content/browser/web_contents/web_contents_impl.h

Issue 2865653002: [Device Service] Decouple NFC implementation from //content (Closed)
Patch Set: extra fix 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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ 5 #ifndef CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_
6 #define CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ 6 #define CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <functional> 10 #include <functional>
(...skipping 10 matching lines...) Expand all
21 #include "base/values.h" 21 #include "base/values.h"
22 #include "build/build_config.h" 22 #include "build/build_config.h"
23 #include "content/browser/frame_host/frame_tree.h" 23 #include "content/browser/frame_host/frame_tree.h"
24 #include "content/browser/frame_host/frame_tree_node.h" 24 #include "content/browser/frame_host/frame_tree_node.h"
25 #include "content/browser/frame_host/navigation_controller_delegate.h" 25 #include "content/browser/frame_host/navigation_controller_delegate.h"
26 #include "content/browser/frame_host/navigation_controller_impl.h" 26 #include "content/browser/frame_host/navigation_controller_impl.h"
27 #include "content/browser/frame_host/navigator_delegate.h" 27 #include "content/browser/frame_host/navigator_delegate.h"
28 #include "content/browser/frame_host/render_frame_host_delegate.h" 28 #include "content/browser/frame_host/render_frame_host_delegate.h"
29 #include "content/browser/frame_host/render_frame_host_manager.h" 29 #include "content/browser/frame_host/render_frame_host_manager.h"
30 #include "content/browser/media/audio_stream_monitor.h" 30 #include "content/browser/media/audio_stream_monitor.h"
31 #include "content/browser/nfc/nfc_host.h"
31 #include "content/browser/renderer_host/render_view_host_delegate.h" 32 #include "content/browser/renderer_host/render_view_host_delegate.h"
32 #include "content/browser/renderer_host/render_view_host_impl.h" 33 #include "content/browser/renderer_host/render_view_host_impl.h"
33 #include "content/browser/renderer_host/render_widget_host_delegate.h" 34 #include "content/browser/renderer_host/render_widget_host_delegate.h"
34 #include "content/browser/wake_lock/wake_lock_context_host.h" 35 #include "content/browser/wake_lock/wake_lock_context_host.h"
35 #include "content/common/accessibility_mode.h" 36 #include "content/common/accessibility_mode.h"
36 #include "content/common/content_export.h" 37 #include "content/common/content_export.h"
37 #include "content/public/browser/color_chooser.h" 38 #include "content/public/browser/color_chooser.h"
38 #include "content/public/browser/notification_observer.h" 39 #include "content/public/browser/notification_observer.h"
39 #include "content/public/browser/notification_registrar.h" 40 #include "content/public/browser/notification_registrar.h"
40 #include "content/public/browser/web_contents.h" 41 #include "content/public/browser/web_contents.h"
(...skipping 459 matching lines...) Expand 10 before | Expand all | Expand 10 after
500 AccessibilityMode GetAccessibilityMode() const override; 501 AccessibilityMode GetAccessibilityMode() const override;
501 void AccessibilityEventReceived( 502 void AccessibilityEventReceived(
502 const std::vector<AXEventNotificationDetails>& details) override; 503 const std::vector<AXEventNotificationDetails>& details) override;
503 void AccessibilityLocationChangesReceived( 504 void AccessibilityLocationChangesReceived(
504 const std::vector<AXLocationChangeNotificationDetails>& details) override; 505 const std::vector<AXLocationChangeNotificationDetails>& details) override;
505 RenderFrameHost* GetGuestByInstanceID( 506 RenderFrameHost* GetGuestByInstanceID(
506 RenderFrameHost* render_frame_host, 507 RenderFrameHost* render_frame_host,
507 int browser_plugin_instance_id) override; 508 int browser_plugin_instance_id) override;
508 device::GeolocationServiceContext* GetGeolocationServiceContext() override; 509 device::GeolocationServiceContext* GetGeolocationServiceContext() override;
509 device::mojom::WakeLockContext* GetWakeLockServiceContext() override; 510 device::mojom::WakeLockContext* GetWakeLockServiceContext() override;
511 void GetNFC(device::nfc::mojom::NFCRequest request) override;
510 void EnterFullscreenMode(const GURL& origin) override; 512 void EnterFullscreenMode(const GURL& origin) override;
511 void ExitFullscreenMode(bool will_cause_resize) override; 513 void ExitFullscreenMode(bool will_cause_resize) override;
512 bool ShouldRouteMessageEvent( 514 bool ShouldRouteMessageEvent(
513 RenderFrameHost* target_rfh, 515 RenderFrameHost* target_rfh,
514 SiteInstance* source_site_instance) const override; 516 SiteInstance* source_site_instance) const override;
515 void EnsureOpenerProxiesExist(RenderFrameHost* source_rfh) override; 517 void EnsureOpenerProxiesExist(RenderFrameHost* source_rfh) override;
516 std::unique_ptr<WebUIImpl> CreateWebUIForRenderFrameHost( 518 std::unique_ptr<WebUIImpl> CreateWebUIForRenderFrameHost(
517 const GURL& url) override; 519 const GURL& url) override;
518 void SetFocusedFrame(FrameTreeNode* node, SiteInstance* source) override; 520 void SetFocusedFrame(FrameTreeNode* node, SiteInstance* source) override;
519 void OnFocusedElementChangedInFrame( 521 void OnFocusedElementChangedInFrame(
(...skipping 982 matching lines...) Expand 10 before | Expand all | Expand 10 after
1502 bool force_disable_overscroll_content_; 1504 bool force_disable_overscroll_content_;
1503 1505
1504 // Whether the last JavaScript dialog shown was suppressed. Used for testing. 1506 // Whether the last JavaScript dialog shown was suppressed. Used for testing.
1505 bool last_dialog_suppressed_; 1507 bool last_dialog_suppressed_;
1506 1508
1507 std::unique_ptr<device::GeolocationServiceContext> 1509 std::unique_ptr<device::GeolocationServiceContext>
1508 geolocation_service_context_; 1510 geolocation_service_context_;
1509 1511
1510 std::unique_ptr<WakeLockContextHost> wake_lock_context_host_; 1512 std::unique_ptr<WakeLockContextHost> wake_lock_context_host_;
1511 1513
1514 std::unique_ptr<NFCHost> nfc_host_;
1515
1512 std::unique_ptr<ScreenOrientationProvider> screen_orientation_provider_; 1516 std::unique_ptr<ScreenOrientationProvider> screen_orientation_provider_;
1513 1517
1514 std::unique_ptr<ManifestManagerHost> manifest_manager_host_; 1518 std::unique_ptr<ManifestManagerHost> manifest_manager_host_;
1515 1519
1516 // The accessibility mode for all frames. This is queried when each frame 1520 // The accessibility mode for all frames. This is queried when each frame
1517 // is created, and broadcast to all frames when it changes. 1521 // is created, and broadcast to all frames when it changes.
1518 AccessibilityMode accessibility_mode_; 1522 AccessibilityMode accessibility_mode_;
1519 1523
1520 // Monitors power levels for audio streams associated with this WebContents. 1524 // Monitors power levels for audio streams associated with this WebContents.
1521 AudioStreamMonitor audio_stream_monitor_; 1525 AudioStreamMonitor audio_stream_monitor_;
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
1588 // Adds/removes a callback called on creation of each new WebContents. 1592 // Adds/removes a callback called on creation of each new WebContents.
1589 static void AddCreatedCallbackForTesting(const CreatedCallback& callback); 1593 static void AddCreatedCallbackForTesting(const CreatedCallback& callback);
1590 static void RemoveCreatedCallbackForTesting(const CreatedCallback& callback); 1594 static void RemoveCreatedCallbackForTesting(const CreatedCallback& callback);
1591 1595
1592 DISALLOW_COPY_AND_ASSIGN(FriendWrapper); 1596 DISALLOW_COPY_AND_ASSIGN(FriendWrapper);
1593 }; 1597 };
1594 1598
1595 } // namespace content 1599 } // namespace content
1596 1600
1597 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ 1601 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698