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

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

Issue 1345563002: Revert of 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 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 RenderWidgetHostInputEventRouter; 64 class RenderWidgetHostInputEventRouter;
65 class SavePackage; 65 class SavePackage;
66 class ScreenOrientationDispatcherHost; 66 class ScreenOrientationDispatcherHost;
67 class SiteInstance; 67 class SiteInstance;
68 class TestWebContents; 68 class TestWebContents;
69 class WakeLockServiceContext;
70 class WebContentsAudioMuter; 69 class WebContentsAudioMuter;
71 class WebContentsDelegate; 70 class WebContentsDelegate;
72 class WebContentsImpl; 71 class WebContentsImpl;
73 class WebContentsObserver; 72 class WebContentsObserver;
74 class WebContentsView; 73 class WebContentsView;
75 class WebContentsViewDelegate; 74 class WebContentsViewDelegate;
76 struct AXEventNotificationDetails; 75 struct AXEventNotificationDetails;
77 struct ColorSuggestion; 76 struct ColorSuggestion;
78 struct FaviconURL; 77 struct FaviconURL;
79 struct LoadNotificationDetails; 78 struct LoadNotificationDetails;
(...skipping 335 matching lines...) Expand 10 before | Expand all | Expand 10 after
415 const std::string& encoding) override; 414 const std::string& encoding) override;
416 WebContents* GetAsWebContents() override; 415 WebContents* GetAsWebContents() override;
417 bool IsNeverVisible() override; 416 bool IsNeverVisible() override;
418 AccessibilityMode GetAccessibilityMode() const override; 417 AccessibilityMode GetAccessibilityMode() const override;
419 void AccessibilityEventReceived( 418 void AccessibilityEventReceived(
420 const std::vector<AXEventNotificationDetails>& details) override; 419 const std::vector<AXEventNotificationDetails>& details) override;
421 RenderFrameHost* GetGuestByInstanceID( 420 RenderFrameHost* GetGuestByInstanceID(
422 RenderFrameHost* render_frame_host, 421 RenderFrameHost* render_frame_host,
423 int browser_plugin_instance_id) override; 422 int browser_plugin_instance_id) override;
424 GeolocationServiceContext* GetGeolocationServiceContext() override; 423 GeolocationServiceContext* GetGeolocationServiceContext() override;
425 WakeLockServiceContext* GetWakeLockServiceContext() override;
426 void EnterFullscreenMode(const GURL& origin) override; 424 void EnterFullscreenMode(const GURL& origin) override;
427 void ExitFullscreenMode() override; 425 void ExitFullscreenMode() override;
428 bool ShouldRouteMessageEvent( 426 bool ShouldRouteMessageEvent(
429 RenderFrameHost* target_rfh, 427 RenderFrameHost* target_rfh,
430 SiteInstance* source_site_instance) const override; 428 SiteInstance* source_site_instance) const override;
431 void EnsureOpenerProxiesExist(RenderFrameHost* source_rfh) override; 429 void EnsureOpenerProxiesExist(RenderFrameHost* source_rfh) override;
432 #if defined(OS_WIN) 430 #if defined(OS_WIN)
433 gfx::NativeViewAccessible GetParentNativeViewAccessible() override; 431 gfx::NativeViewAccessible GetParentNativeViewAccessible() override;
434 #endif 432 #endif
435 433
(...skipping 841 matching lines...) Expand 10 before | Expand all | Expand 10 after
1277 scoped_ptr<OpenURLParams> delayed_open_url_params_; 1275 scoped_ptr<OpenURLParams> delayed_open_url_params_;
1278 1276
1279 // Whether overscroll should be unconditionally disabled. 1277 // Whether overscroll should be unconditionally disabled.
1280 bool force_disable_overscroll_content_; 1278 bool force_disable_overscroll_content_;
1281 1279
1282 // Whether the last JavaScript dialog shown was suppressed. Used for testing. 1280 // Whether the last JavaScript dialog shown was suppressed. Used for testing.
1283 bool last_dialog_suppressed_; 1281 bool last_dialog_suppressed_;
1284 1282
1285 scoped_ptr<GeolocationServiceContext> geolocation_service_context_; 1283 scoped_ptr<GeolocationServiceContext> geolocation_service_context_;
1286 1284
1287 scoped_ptr<WakeLockServiceContext> wake_lock_service_context_;
1288
1289 scoped_ptr<ScreenOrientationDispatcherHost> 1285 scoped_ptr<ScreenOrientationDispatcherHost>
1290 screen_orientation_dispatcher_host_; 1286 screen_orientation_dispatcher_host_;
1291 1287
1292 scoped_ptr<ManifestManagerHost> manifest_manager_host_; 1288 scoped_ptr<ManifestManagerHost> manifest_manager_host_;
1293 1289
1294 // The accessibility mode for all frames. This is queried when each frame 1290 // The accessibility mode for all frames. This is queried when each frame
1295 // is created, and broadcast to all frames when it changes. 1291 // is created, and broadcast to all frames when it changes.
1296 AccessibilityMode accessibility_mode_; 1292 AccessibilityMode accessibility_mode_;
1297 1293
1298 // Monitors power levels for audio streams associated with this WebContents. 1294 // Monitors power levels for audio streams associated with this WebContents.
(...skipping 29 matching lines...) Expand all
1328 // Adds/removes a callback called on creation of each new WebContents. 1324 // Adds/removes a callback called on creation of each new WebContents.
1329 static void AddCreatedCallbackForTesting(const CreatedCallback& callback); 1325 static void AddCreatedCallbackForTesting(const CreatedCallback& callback);
1330 static void RemoveCreatedCallbackForTesting(const CreatedCallback& callback); 1326 static void RemoveCreatedCallbackForTesting(const CreatedCallback& callback);
1331 1327
1332 DISALLOW_COPY_AND_ASSIGN(FriendZone); 1328 DISALLOW_COPY_AND_ASSIGN(FriendZone);
1333 }; 1329 };
1334 1330
1335 } // namespace content 1331 } // namespace content
1336 1332
1337 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ 1333 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_
OLDNEW
« no previous file with comments | « content/browser/wake_lock/wake_lock_service_impl.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