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

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: seperate this CL into 2CLs 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 439 matching lines...) Expand 10 before | Expand all | Expand 10 after
497 bool IsNeverVisible() override; 497 bool IsNeverVisible() override;
498 AccessibilityMode GetAccessibilityMode() const override; 498 AccessibilityMode GetAccessibilityMode() const override;
499 void AccessibilityEventReceived( 499 void AccessibilityEventReceived(
500 const std::vector<AXEventNotificationDetails>& details) override; 500 const std::vector<AXEventNotificationDetails>& details) override;
501 void AccessibilityLocationChangesReceived( 501 void AccessibilityLocationChangesReceived(
502 const std::vector<AXLocationChangeNotificationDetails>& details) override; 502 const std::vector<AXLocationChangeNotificationDetails>& details) override;
503 RenderFrameHost* GetGuestByInstanceID( 503 RenderFrameHost* GetGuestByInstanceID(
504 RenderFrameHost* render_frame_host, 504 RenderFrameHost* render_frame_host,
505 int browser_plugin_instance_id) override; 505 int browser_plugin_instance_id) override;
506 device::GeolocationServiceContext* GetGeolocationServiceContext() override; 506 device::GeolocationServiceContext* GetGeolocationServiceContext() override;
507 device::mojom::WakeLockContext* GetWakeLockServiceContext() override; 507 device::mojom::WakeLockContext* GetWakeLockContext() override;
508 device::mojom::WakeLockService* GetRendererWakeLock() override;
508 void EnterFullscreenMode(const GURL& origin) override; 509 void EnterFullscreenMode(const GURL& origin) override;
509 void ExitFullscreenMode(bool will_cause_resize) override; 510 void ExitFullscreenMode(bool will_cause_resize) override;
510 bool ShouldRouteMessageEvent( 511 bool ShouldRouteMessageEvent(
511 RenderFrameHost* target_rfh, 512 RenderFrameHost* target_rfh,
512 SiteInstance* source_site_instance) const override; 513 SiteInstance* source_site_instance) const override;
513 void EnsureOpenerProxiesExist(RenderFrameHost* source_rfh) override; 514 void EnsureOpenerProxiesExist(RenderFrameHost* source_rfh) override;
514 std::unique_ptr<WebUIImpl> CreateWebUIForRenderFrameHost( 515 std::unique_ptr<WebUIImpl> CreateWebUIForRenderFrameHost(
515 const GURL& url) override; 516 const GURL& url) override;
516 void SetFocusedFrame(FrameTreeNode* node, SiteInstance* source) override; 517 void SetFocusedFrame(FrameTreeNode* node, SiteInstance* source) override;
517 void OnFocusedElementChangedInFrame( 518 void OnFocusedElementChangedInFrame(
(...skipping 982 matching lines...) Expand 10 before | Expand all | Expand 10 after
1500 bool force_disable_overscroll_content_; 1501 bool force_disable_overscroll_content_;
1501 1502
1502 // Whether the last JavaScript dialog shown was suppressed. Used for testing. 1503 // Whether the last JavaScript dialog shown was suppressed. Used for testing.
1503 bool last_dialog_suppressed_; 1504 bool last_dialog_suppressed_;
1504 1505
1505 std::unique_ptr<device::GeolocationServiceContext> 1506 std::unique_ptr<device::GeolocationServiceContext>
1506 geolocation_service_context_; 1507 geolocation_service_context_;
1507 1508
1508 std::unique_ptr<WakeLockContextHost> wake_lock_context_host_; 1509 std::unique_ptr<WakeLockContextHost> wake_lock_context_host_;
1509 1510
1511 device::mojom::WakeLockServicePtr renderer_wake_lock_;
1512
1510 std::unique_ptr<ScreenOrientationProvider> screen_orientation_provider_; 1513 std::unique_ptr<ScreenOrientationProvider> screen_orientation_provider_;
1511 1514
1512 std::unique_ptr<ManifestManagerHost> manifest_manager_host_; 1515 std::unique_ptr<ManifestManagerHost> manifest_manager_host_;
1513 1516
1514 // The accessibility mode for all frames. This is queried when each frame 1517 // The accessibility mode for all frames. This is queried when each frame
1515 // is created, and broadcast to all frames when it changes. 1518 // is created, and broadcast to all frames when it changes.
1516 AccessibilityMode accessibility_mode_; 1519 AccessibilityMode accessibility_mode_;
1517 1520
1518 // Monitors power levels for audio streams associated with this WebContents. 1521 // Monitors power levels for audio streams associated with this WebContents.
1519 AudioStreamMonitor audio_stream_monitor_; 1522 AudioStreamMonitor audio_stream_monitor_;
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
1586 // Adds/removes a callback called on creation of each new WebContents. 1589 // Adds/removes a callback called on creation of each new WebContents.
1587 static void AddCreatedCallbackForTesting(const CreatedCallback& callback); 1590 static void AddCreatedCallbackForTesting(const CreatedCallback& callback);
1588 static void RemoveCreatedCallbackForTesting(const CreatedCallback& callback); 1591 static void RemoveCreatedCallbackForTesting(const CreatedCallback& callback);
1589 1592
1590 DISALLOW_COPY_AND_ASSIGN(FriendWrapper); 1593 DISALLOW_COPY_AND_ASSIGN(FriendWrapper);
1591 }; 1594 };
1592 1595
1593 } // namespace content 1596 } // namespace content
1594 1597
1595 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ 1598 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698