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

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

Issue 2843353003: Move ownership of PowerSaveBlocker from WakeLockServiceContext to WakeLockServiceImpl (Closed)
Patch Set: error fix, non-frame client. 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 26 matching lines...) Expand all
37 #include "content/public/browser/color_chooser.h" 37 #include "content/public/browser/color_chooser.h"
38 #include "content/public/browser/notification_observer.h" 38 #include "content/public/browser/notification_observer.h"
39 #include "content/public/browser/notification_registrar.h" 39 #include "content/public/browser/notification_registrar.h"
40 #include "content/public/browser/web_contents.h" 40 #include "content/public/browser/web_contents.h"
41 #include "content/public/browser/web_contents_binding_set.h" 41 #include "content/public/browser/web_contents_binding_set.h"
42 #include "content/public/browser/web_contents_observer.h" 42 #include "content/public/browser/web_contents_observer.h"
43 #include "content/public/common/page_importance_signals.h" 43 #include "content/public/common/page_importance_signals.h"
44 #include "content/public/common/renderer_preferences.h" 44 #include "content/public/common/renderer_preferences.h"
45 #include "content/public/common/resource_type.h" 45 #include "content/public/common/resource_type.h"
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_context.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 struct ViewHostMsg_DateTimeDialogValue_Params; 56 struct ViewHostMsg_DateTimeDialogValue_Params;
57 57
(...skipping 445 matching lines...) Expand 10 before | Expand all | Expand 10 after
503 bool IsNeverVisible() override; 503 bool IsNeverVisible() override;
504 AccessibilityMode GetAccessibilityMode() const override; 504 AccessibilityMode GetAccessibilityMode() const override;
505 void AccessibilityEventReceived( 505 void AccessibilityEventReceived(
506 const std::vector<AXEventNotificationDetails>& details) override; 506 const std::vector<AXEventNotificationDetails>& details) override;
507 void AccessibilityLocationChangesReceived( 507 void AccessibilityLocationChangesReceived(
508 const std::vector<AXLocationChangeNotificationDetails>& details) override; 508 const std::vector<AXLocationChangeNotificationDetails>& details) override;
509 RenderFrameHost* GetGuestByInstanceID( 509 RenderFrameHost* GetGuestByInstanceID(
510 RenderFrameHost* render_frame_host, 510 RenderFrameHost* render_frame_host,
511 int browser_plugin_instance_id) override; 511 int browser_plugin_instance_id) override;
512 device::GeolocationServiceContext* GetGeolocationServiceContext() override; 512 device::GeolocationServiceContext* GetGeolocationServiceContext() override;
513 device::mojom::WakeLockContext* GetWakeLockServiceContext() override; 513 device::mojom::WakeLockContext* GetWakeLockContext() override;
514 void ConnectToBlinkWakeLock(
515 device::mojom::WakeLockServiceRequest request) override;
514 void EnterFullscreenMode(const GURL& origin) override; 516 void EnterFullscreenMode(const GURL& origin) override;
515 void ExitFullscreenMode(bool will_cause_resize) override; 517 void ExitFullscreenMode(bool will_cause_resize) override;
516 bool ShouldRouteMessageEvent( 518 bool ShouldRouteMessageEvent(
517 RenderFrameHost* target_rfh, 519 RenderFrameHost* target_rfh,
518 SiteInstance* source_site_instance) const override; 520 SiteInstance* source_site_instance) const override;
519 void EnsureOpenerProxiesExist(RenderFrameHost* source_rfh) override; 521 void EnsureOpenerProxiesExist(RenderFrameHost* source_rfh) override;
520 std::unique_ptr<WebUIImpl> CreateWebUIForRenderFrameHost( 522 std::unique_ptr<WebUIImpl> CreateWebUIForRenderFrameHost(
521 const GURL& url) override; 523 const GURL& url) override;
522 void SetFocusedFrame(FrameTreeNode* node, SiteInstance* source) override; 524 void SetFocusedFrame(FrameTreeNode* node, SiteInstance* source) override;
523 void OnFocusedElementChangedInFrame( 525 void OnFocusedElementChangedInFrame(
(...skipping 982 matching lines...) Expand 10 before | Expand all | Expand 10 after
1506 bool force_disable_overscroll_content_; 1508 bool force_disable_overscroll_content_;
1507 1509
1508 // Whether the last JavaScript dialog shown was suppressed. Used for testing. 1510 // Whether the last JavaScript dialog shown was suppressed. Used for testing.
1509 bool last_dialog_suppressed_; 1511 bool last_dialog_suppressed_;
1510 1512
1511 std::unique_ptr<device::GeolocationServiceContext> 1513 std::unique_ptr<device::GeolocationServiceContext>
1512 geolocation_service_context_; 1514 geolocation_service_context_;
1513 1515
1514 std::unique_ptr<WakeLockContextHost> wake_lock_context_host_; 1516 std::unique_ptr<WakeLockContextHost> wake_lock_context_host_;
1515 1517
1518 device::mojom::WakeLockServicePtr blink_wake_lock_;
blundell 2017/05/02 11:27:43 nit: let's name this |renderer_wake_lock_| actuall
ke.he 2017/05/04 11:54:13 Done.
1519
1516 std::unique_ptr<ScreenOrientationProvider> screen_orientation_provider_; 1520 std::unique_ptr<ScreenOrientationProvider> screen_orientation_provider_;
1517 1521
1518 std::unique_ptr<ManifestManagerHost> manifest_manager_host_; 1522 std::unique_ptr<ManifestManagerHost> manifest_manager_host_;
1519 1523
1520 // The accessibility mode for all frames. This is queried when each frame 1524 // The accessibility mode for all frames. This is queried when each frame
1521 // is created, and broadcast to all frames when it changes. 1525 // is created, and broadcast to all frames when it changes.
1522 AccessibilityMode accessibility_mode_; 1526 AccessibilityMode accessibility_mode_;
1523 1527
1524 // Monitors power levels for audio streams associated with this WebContents. 1528 // Monitors power levels for audio streams associated with this WebContents.
1525 AudioStreamMonitor audio_stream_monitor_; 1529 AudioStreamMonitor audio_stream_monitor_;
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
1592 // Adds/removes a callback called on creation of each new WebContents. 1596 // Adds/removes a callback called on creation of each new WebContents.
1593 static void AddCreatedCallbackForTesting(const CreatedCallback& callback); 1597 static void AddCreatedCallbackForTesting(const CreatedCallback& callback);
1594 static void RemoveCreatedCallbackForTesting(const CreatedCallback& callback); 1598 static void RemoveCreatedCallbackForTesting(const CreatedCallback& callback);
1595 1599
1596 DISALLOW_COPY_AND_ASSIGN(FriendWrapper); 1600 DISALLOW_COPY_AND_ASSIGN(FriendWrapper);
1597 }; 1601 };
1598 1602
1599 } // namespace content 1603 } // namespace content
1600 1604
1601 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ 1605 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698