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

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

Issue 1107333002: Wake Lock API implementation (Chromium part) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 3 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 <map> 8 #include <map>
9 #include <set> 9 #include <set>
10 #include <string> 10 #include <string>
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
58 class MediaWebContentsObserver; 58 class MediaWebContentsObserver;
59 class PluginContentOriginWhitelist; 59 class PluginContentOriginWhitelist;
60 class PowerSaveBlocker; 60 class PowerSaveBlocker;
61 class RenderViewHost; 61 class RenderViewHost;
62 class RenderViewHostDelegateView; 62 class RenderViewHostDelegateView;
63 class RenderWidgetHostImpl; 63 class RenderWidgetHostImpl;
64 class SavePackage; 64 class SavePackage;
65 class ScreenOrientationDispatcherHost; 65 class ScreenOrientationDispatcherHost;
66 class SiteInstance; 66 class SiteInstance;
67 class TestWebContents; 67 class TestWebContents;
68 class WakeLockServiceContext;
68 class WebContentsAudioMuter; 69 class WebContentsAudioMuter;
69 class WebContentsDelegate; 70 class WebContentsDelegate;
70 class WebContentsImpl; 71 class WebContentsImpl;
71 class WebContentsObserver; 72 class WebContentsObserver;
72 class WebContentsView; 73 class WebContentsView;
73 class WebContentsViewDelegate; 74 class WebContentsViewDelegate;
74 struct AXEventNotificationDetails; 75 struct AXEventNotificationDetails;
75 struct ColorSuggestion; 76 struct ColorSuggestion;
76 struct FaviconURL; 77 struct FaviconURL;
77 struct LoadNotificationDetails; 78 struct LoadNotificationDetails;
(...skipping 334 matching lines...) Expand 10 before | Expand all | Expand 10 after
412 const std::string& encoding) override; 413 const std::string& encoding) override;
413 WebContents* GetAsWebContents() override; 414 WebContents* GetAsWebContents() override;
414 bool IsNeverVisible() override; 415 bool IsNeverVisible() override;
415 AccessibilityMode GetAccessibilityMode() const override; 416 AccessibilityMode GetAccessibilityMode() const override;
416 void AccessibilityEventReceived( 417 void AccessibilityEventReceived(
417 const std::vector<AXEventNotificationDetails>& details) override; 418 const std::vector<AXEventNotificationDetails>& details) override;
418 RenderFrameHost* GetGuestByInstanceID( 419 RenderFrameHost* GetGuestByInstanceID(
419 RenderFrameHost* render_frame_host, 420 RenderFrameHost* render_frame_host,
420 int browser_plugin_instance_id) override; 421 int browser_plugin_instance_id) override;
421 GeolocationServiceContext* GetGeolocationServiceContext() override; 422 GeolocationServiceContext* GetGeolocationServiceContext() override;
423 WakeLockServiceContext* GetWakeLockServiceContext() override;
422 void EnterFullscreenMode(const GURL& origin) override; 424 void EnterFullscreenMode(const GURL& origin) override;
423 void ExitFullscreenMode() override; 425 void ExitFullscreenMode() override;
424 bool ShouldRouteMessageEvent( 426 bool ShouldRouteMessageEvent(
425 RenderFrameHost* target_rfh, 427 RenderFrameHost* target_rfh,
426 SiteInstance* source_site_instance) const override; 428 SiteInstance* source_site_instance) const override;
427 void EnsureOpenerProxiesExist(RenderFrameHost* source_rfh) override; 429 void EnsureOpenerProxiesExist(RenderFrameHost* source_rfh) override;
428 #if defined(OS_WIN) 430 #if defined(OS_WIN)
429 gfx::NativeViewAccessible GetParentNativeViewAccessible() override; 431 gfx::NativeViewAccessible GetParentNativeViewAccessible() override;
430 #endif 432 #endif
431 433
(...skipping 831 matching lines...) Expand 10 before | Expand all | Expand 10 after
1263 scoped_ptr<OpenURLParams> delayed_open_url_params_; 1265 scoped_ptr<OpenURLParams> delayed_open_url_params_;
1264 1266
1265 // Whether overscroll should be unconditionally disabled. 1267 // Whether overscroll should be unconditionally disabled.
1266 bool force_disable_overscroll_content_; 1268 bool force_disable_overscroll_content_;
1267 1269
1268 // Whether the last JavaScript dialog shown was suppressed. Used for testing. 1270 // Whether the last JavaScript dialog shown was suppressed. Used for testing.
1269 bool last_dialog_suppressed_; 1271 bool last_dialog_suppressed_;
1270 1272
1271 scoped_ptr<GeolocationServiceContext> geolocation_service_context_; 1273 scoped_ptr<GeolocationServiceContext> geolocation_service_context_;
1272 1274
1275 scoped_ptr<WakeLockServiceContext> wake_lock_service_context_;
1276
1273 scoped_ptr<ScreenOrientationDispatcherHost> 1277 scoped_ptr<ScreenOrientationDispatcherHost>
1274 screen_orientation_dispatcher_host_; 1278 screen_orientation_dispatcher_host_;
1275 1279
1276 scoped_ptr<ManifestManagerHost> manifest_manager_host_; 1280 scoped_ptr<ManifestManagerHost> manifest_manager_host_;
1277 1281
1278 // The accessibility mode for all frames. This is queried when each frame 1282 // The accessibility mode for all frames. This is queried when each frame
1279 // is created, and broadcast to all frames when it changes. 1283 // is created, and broadcast to all frames when it changes.
1280 AccessibilityMode accessibility_mode_; 1284 AccessibilityMode accessibility_mode_;
1281 1285
1282 // Created on-demand to mute all audio output from this WebContents. 1286 // Created on-demand to mute all audio output from this WebContents.
(...skipping 24 matching lines...) Expand all
1307 // Adds/removes a callback called on creation of each new WebContents. 1311 // Adds/removes a callback called on creation of each new WebContents.
1308 static void AddCreatedCallbackForTesting(const CreatedCallback& callback); 1312 static void AddCreatedCallbackForTesting(const CreatedCallback& callback);
1309 static void RemoveCreatedCallbackForTesting(const CreatedCallback& callback); 1313 static void RemoveCreatedCallbackForTesting(const CreatedCallback& callback);
1310 1314
1311 DISALLOW_COPY_AND_ASSIGN(FriendZone); 1315 DISALLOW_COPY_AND_ASSIGN(FriendZone);
1312 }; 1316 };
1313 1317
1314 } // namespace content 1318 } // namespace content
1315 1319
1316 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ 1320 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698