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

Side by Side 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 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 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
46 #include "content/public/common/three_d_api_types.h" 46 #include "content/public/common/three_d_api_types.h"
47 #include "device/wake_lock/public/interfaces/wake_lock_service.mojom.h" 47 #include "device/wake_lock/public/interfaces/wake_lock_service.mojom.h"
48 #include "net/base/load_states.h" 48 #include "net/base/load_states.h"
49 #include "net/http/http_response_headers.h" 49 #include "net/http/http_response_headers.h"
50 #include "ppapi/features/features.h" 50 #include "ppapi/features/features.h"
51 #include "third_party/WebKit/public/platform/WebDragOperation.h" 51 #include "third_party/WebKit/public/platform/WebDragOperation.h"
52 #include "ui/base/page_transition_types.h" 52 #include "ui/base/page_transition_types.h"
53 #include "ui/gfx/geometry/rect_f.h" 53 #include "ui/gfx/geometry/rect_f.h"
54 #include "ui/gfx/geometry/size.h" 54 #include "ui/gfx/geometry/size.h"
55 55
56 #if defined(OS_ANDROID)
57 #include "content/browser/nfc/nfc_host.h"
58 #endif
59
56 struct ViewHostMsg_DateTimeDialogValue_Params; 60 struct ViewHostMsg_DateTimeDialogValue_Params;
57 61
58 namespace service_manager { 62 namespace service_manager {
59 class InterfaceProvider; 63 class InterfaceProvider;
60 } 64 }
61 65
62 namespace content { 66 namespace content {
63 class BrowserPluginEmbedder; 67 class BrowserPluginEmbedder;
64 class BrowserPluginGuest; 68 class BrowserPluginGuest;
65 class DateTimeChooserAndroid; 69 class DateTimeChooserAndroid;
(...skipping 435 matching lines...) Expand 10 before | Expand all | Expand 10 after
501 void AccessibilityEventReceived( 505 void AccessibilityEventReceived(
502 const std::vector<AXEventNotificationDetails>& details) override; 506 const std::vector<AXEventNotificationDetails>& details) override;
503 void AccessibilityLocationChangesReceived( 507 void AccessibilityLocationChangesReceived(
504 const std::vector<AXLocationChangeNotificationDetails>& details) override; 508 const std::vector<AXLocationChangeNotificationDetails>& details) override;
505 RenderFrameHost* GetGuestByInstanceID( 509 RenderFrameHost* GetGuestByInstanceID(
506 RenderFrameHost* render_frame_host, 510 RenderFrameHost* render_frame_host,
507 int browser_plugin_instance_id) override; 511 int browser_plugin_instance_id) override;
508 device::GeolocationServiceContext* GetGeolocationServiceContext() override; 512 device::GeolocationServiceContext* GetGeolocationServiceContext() override;
509 device::mojom::WakeLockContext* GetWakeLockContext() override; 513 device::mojom::WakeLockContext* GetWakeLockContext() override;
510 device::mojom::WakeLockService* GetRendererWakeLock() override; 514 device::mojom::WakeLockService* GetRendererWakeLock() override;
515 #if defined(OS_ANDROID)
516 void GetNFC(device::nfc::mojom::NFCRequest request) override;
517 #endif
511 void EnterFullscreenMode(const GURL& origin) override; 518 void EnterFullscreenMode(const GURL& origin) override;
512 void ExitFullscreenMode(bool will_cause_resize) override; 519 void ExitFullscreenMode(bool will_cause_resize) override;
513 bool ShouldRouteMessageEvent( 520 bool ShouldRouteMessageEvent(
514 RenderFrameHost* target_rfh, 521 RenderFrameHost* target_rfh,
515 SiteInstance* source_site_instance) const override; 522 SiteInstance* source_site_instance) const override;
516 void EnsureOpenerProxiesExist(RenderFrameHost* source_rfh) override; 523 void EnsureOpenerProxiesExist(RenderFrameHost* source_rfh) override;
517 std::unique_ptr<WebUIImpl> CreateWebUIForRenderFrameHost( 524 std::unique_ptr<WebUIImpl> CreateWebUIForRenderFrameHost(
518 const GURL& url) override; 525 const GURL& url) override;
519 void SetFocusedFrame(FrameTreeNode* node, SiteInstance* source) override; 526 void SetFocusedFrame(FrameTreeNode* node, SiteInstance* source) override;
520 void OnFocusedElementChangedInFrame( 527 void OnFocusedElementChangedInFrame(
(...skipping 986 matching lines...) Expand 10 before | Expand all | Expand 10 after
1507 // Whether the last JavaScript dialog shown was suppressed. Used for testing. 1514 // Whether the last JavaScript dialog shown was suppressed. Used for testing.
1508 bool last_dialog_suppressed_; 1515 bool last_dialog_suppressed_;
1509 1516
1510 std::unique_ptr<device::GeolocationServiceContext> 1517 std::unique_ptr<device::GeolocationServiceContext>
1511 geolocation_service_context_; 1518 geolocation_service_context_;
1512 1519
1513 std::unique_ptr<WakeLockContextHost> wake_lock_context_host_; 1520 std::unique_ptr<WakeLockContextHost> wake_lock_context_host_;
1514 1521
1515 device::mojom::WakeLockServicePtr renderer_wake_lock_; 1522 device::mojom::WakeLockServicePtr renderer_wake_lock_;
1516 1523
1524 #if defined(OS_ANDROID)
1525 std::unique_ptr<NFCHost> nfc_host_;
1526 #endif
1527
1517 std::unique_ptr<ScreenOrientationProvider> screen_orientation_provider_; 1528 std::unique_ptr<ScreenOrientationProvider> screen_orientation_provider_;
1518 1529
1519 std::unique_ptr<ManifestManagerHost> manifest_manager_host_; 1530 std::unique_ptr<ManifestManagerHost> manifest_manager_host_;
1520 1531
1521 // The accessibility mode for all frames. This is queried when each frame 1532 // The accessibility mode for all frames. This is queried when each frame
1522 // is created, and broadcast to all frames when it changes. 1533 // is created, and broadcast to all frames when it changes.
1523 AccessibilityMode accessibility_mode_; 1534 AccessibilityMode accessibility_mode_;
1524 1535
1525 // Monitors power levels for audio streams associated with this WebContents. 1536 // Monitors power levels for audio streams associated with this WebContents.
1526 AudioStreamMonitor audio_stream_monitor_; 1537 AudioStreamMonitor audio_stream_monitor_;
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
1593 // Adds/removes a callback called on creation of each new WebContents. 1604 // Adds/removes a callback called on creation of each new WebContents.
1594 static void AddCreatedCallbackForTesting(const CreatedCallback& callback); 1605 static void AddCreatedCallbackForTesting(const CreatedCallback& callback);
1595 static void RemoveCreatedCallbackForTesting(const CreatedCallback& callback); 1606 static void RemoveCreatedCallbackForTesting(const CreatedCallback& callback);
1596 1607
1597 DISALLOW_COPY_AND_ASSIGN(FriendWrapper); 1608 DISALLOW_COPY_AND_ASSIGN(FriendWrapper);
1598 }; 1609 };
1599 1610
1600 } // namespace content 1611 } // namespace content
1601 1612
1602 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ 1613 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698