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

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

Issue 2865653002: [Device Service] Decouple NFC implementation from //content (Closed)
Patch Set: Rebase 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/android/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 437 matching lines...) Expand 10 before | Expand all | Expand 10 after
503 void AccessibilityEventReceived( 507 void AccessibilityEventReceived(
504 const std::vector<AXEventNotificationDetails>& details) override; 508 const std::vector<AXEventNotificationDetails>& details) override;
505 void AccessibilityLocationChangesReceived( 509 void AccessibilityLocationChangesReceived(
506 const std::vector<AXLocationChangeNotificationDetails>& details) override; 510 const std::vector<AXLocationChangeNotificationDetails>& details) override;
507 RenderFrameHost* GetGuestByInstanceID( 511 RenderFrameHost* GetGuestByInstanceID(
508 RenderFrameHost* render_frame_host, 512 RenderFrameHost* render_frame_host,
509 int browser_plugin_instance_id) override; 513 int browser_plugin_instance_id) override;
510 device::GeolocationServiceContext* GetGeolocationServiceContext() override; 514 device::GeolocationServiceContext* GetGeolocationServiceContext() override;
511 device::mojom::WakeLockContext* GetWakeLockContext() override; 515 device::mojom::WakeLockContext* GetWakeLockContext() override;
512 device::mojom::WakeLockService* GetRendererWakeLock() override; 516 device::mojom::WakeLockService* GetRendererWakeLock() override;
517 #if defined(OS_ANDROID)
518 void GetNFC(device::nfc::mojom::NFCRequest request) override;
519 #endif
513 void EnterFullscreenMode(const GURL& origin) override; 520 void EnterFullscreenMode(const GURL& origin) override;
514 void ExitFullscreenMode(bool will_cause_resize) override; 521 void ExitFullscreenMode(bool will_cause_resize) override;
515 bool ShouldRouteMessageEvent( 522 bool ShouldRouteMessageEvent(
516 RenderFrameHost* target_rfh, 523 RenderFrameHost* target_rfh,
517 SiteInstance* source_site_instance) const override; 524 SiteInstance* source_site_instance) const override;
518 void EnsureOpenerProxiesExist(RenderFrameHost* source_rfh) override; 525 void EnsureOpenerProxiesExist(RenderFrameHost* source_rfh) override;
519 std::unique_ptr<WebUIImpl> CreateWebUIForRenderFrameHost( 526 std::unique_ptr<WebUIImpl> CreateWebUIForRenderFrameHost(
520 const GURL& url) override; 527 const GURL& url) override;
521 void SetFocusedFrame(FrameTreeNode* node, SiteInstance* source) override; 528 void SetFocusedFrame(FrameTreeNode* node, SiteInstance* source) override;
522 void OnFocusedElementChangedInFrame( 529 void OnFocusedElementChangedInFrame(
(...skipping 986 matching lines...) Expand 10 before | Expand all | Expand 10 after
1509 // Whether the last JavaScript dialog shown was suppressed. Used for testing. 1516 // Whether the last JavaScript dialog shown was suppressed. Used for testing.
1510 bool last_dialog_suppressed_; 1517 bool last_dialog_suppressed_;
1511 1518
1512 std::unique_ptr<device::GeolocationServiceContext> 1519 std::unique_ptr<device::GeolocationServiceContext>
1513 geolocation_service_context_; 1520 geolocation_service_context_;
1514 1521
1515 std::unique_ptr<WakeLockContextHost> wake_lock_context_host_; 1522 std::unique_ptr<WakeLockContextHost> wake_lock_context_host_;
1516 1523
1517 device::mojom::WakeLockServicePtr renderer_wake_lock_; 1524 device::mojom::WakeLockServicePtr renderer_wake_lock_;
1518 1525
1526 #if defined(OS_ANDROID)
1527 std::unique_ptr<NFCHost> nfc_host_;
1528 #endif
1529
1519 std::unique_ptr<ScreenOrientationProvider> screen_orientation_provider_; 1530 std::unique_ptr<ScreenOrientationProvider> screen_orientation_provider_;
1520 1531
1521 std::unique_ptr<ManifestManagerHost> manifest_manager_host_; 1532 std::unique_ptr<ManifestManagerHost> manifest_manager_host_;
1522 1533
1523 // The accessibility mode for all frames. This is queried when each frame 1534 // The accessibility mode for all frames. This is queried when each frame
1524 // is created, and broadcast to all frames when it changes. 1535 // is created, and broadcast to all frames when it changes.
1525 AccessibilityMode accessibility_mode_; 1536 AccessibilityMode accessibility_mode_;
1526 1537
1527 // Monitors power levels for audio streams associated with this WebContents. 1538 // Monitors power levels for audio streams associated with this WebContents.
1528 AudioStreamMonitor audio_stream_monitor_; 1539 AudioStreamMonitor audio_stream_monitor_;
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
1595 // Adds/removes a callback called on creation of each new WebContents. 1606 // Adds/removes a callback called on creation of each new WebContents.
1596 static void AddCreatedCallbackForTesting(const CreatedCallback& callback); 1607 static void AddCreatedCallbackForTesting(const CreatedCallback& callback);
1597 static void RemoveCreatedCallbackForTesting(const CreatedCallback& callback); 1608 static void RemoveCreatedCallbackForTesting(const CreatedCallback& callback);
1598 1609
1599 DISALLOW_COPY_AND_ASSIGN(FriendWrapper); 1610 DISALLOW_COPY_AND_ASSIGN(FriendWrapper);
1600 }; 1611 };
1601 1612
1602 } // namespace content 1613 } // namespace content
1603 1614
1604 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ 1615 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_
OLDNEW
« no previous file with comments | « content/browser/service_manager/service_manager_context.cc ('k') | content/browser/web_contents/web_contents_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698