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

Side by Side Diff: content/browser/frame_host/render_frame_host_delegate.h

Issue 1393203004: Reland of Wake Lock API implementation (Chromium part) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix presubmit errors Created 5 years, 1 month 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
« no previous file with comments | « no previous file | content/browser/frame_host/render_frame_host_delegate.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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_FRAME_HOST_RENDER_FRAME_HOST_DELEGATE_H_ 5 #ifndef CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_DELEGATE_H_
6 #define CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_DELEGATE_H_ 6 #define CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_DELEGATE_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 11 matching lines...) Expand all
22 22
23 class GURL; 23 class GURL;
24 24
25 namespace IPC { 25 namespace IPC {
26 class Message; 26 class Message;
27 } 27 }
28 28
29 namespace content { 29 namespace content {
30 class GeolocationServiceContext; 30 class GeolocationServiceContext;
31 class RenderFrameHost; 31 class RenderFrameHost;
32 class WakeLockServiceContext;
32 class WebContents; 33 class WebContents;
33 struct AXEventNotificationDetails; 34 struct AXEventNotificationDetails;
34 struct ContextMenuParams; 35 struct ContextMenuParams;
35 struct TransitionLayerData; 36 struct TransitionLayerData;
36 37
37 // An interface implemented by an object interested in knowing about the state 38 // An interface implemented by an object interested in knowing about the state
38 // of the RenderFrameHost. 39 // of the RenderFrameHost.
39 class CONTENT_EXPORT RenderFrameHostDelegate { 40 class CONTENT_EXPORT RenderFrameHostDelegate {
40 public: 41 public:
41 // This is used to give the delegate a chance to filter IPC messages. 42 // This is used to give the delegate a chance to filter IPC messages.
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after
129 130
130 // Find a guest RenderFrameHost by its parent |render_frame_host| and 131 // Find a guest RenderFrameHost by its parent |render_frame_host| and
131 // |browser_plugin_instance_id|. 132 // |browser_plugin_instance_id|.
132 virtual RenderFrameHost* GetGuestByInstanceID( 133 virtual RenderFrameHost* GetGuestByInstanceID(
133 RenderFrameHost* render_frame_host, 134 RenderFrameHost* render_frame_host,
134 int browser_plugin_instance_id); 135 int browser_plugin_instance_id);
135 136
136 // Gets the GeolocationServiceContext associated with this delegate. 137 // Gets the GeolocationServiceContext associated with this delegate.
137 virtual GeolocationServiceContext* GetGeolocationServiceContext(); 138 virtual GeolocationServiceContext* GetGeolocationServiceContext();
138 139
140 // Gets the WakeLockServiceContext associated with this delegate.
141 virtual WakeLockServiceContext* GetWakeLockServiceContext();
142
139 // Notification that the frame wants to go into fullscreen mode. 143 // Notification that the frame wants to go into fullscreen mode.
140 // |origin| represents the origin of the frame that requests fullscreen. 144 // |origin| represents the origin of the frame that requests fullscreen.
141 virtual void EnterFullscreenMode(const GURL& origin) {} 145 virtual void EnterFullscreenMode(const GURL& origin) {}
142 146
143 // Notification that the frame wants to go out of fullscreen mode. 147 // Notification that the frame wants to go out of fullscreen mode.
144 virtual void ExitFullscreenMode() {} 148 virtual void ExitFullscreenMode() {}
145 149
146 // Let the delegate decide whether postMessage should be delivered to 150 // Let the delegate decide whether postMessage should be delivered to
147 // |target_rfh| from a source frame in the given SiteInstance. This defaults 151 // |target_rfh| from a source frame in the given SiteInstance. This defaults
148 // to false and overrides the RenderFrameHost's decision if true. 152 // to false and overrides the RenderFrameHost's decision if true.
(...skipping 19 matching lines...) Expand all
168 virtual gfx::NativeViewAccessible GetParentNativeViewAccessible(); 172 virtual gfx::NativeViewAccessible GetParentNativeViewAccessible();
169 #endif 173 #endif
170 174
171 protected: 175 protected:
172 virtual ~RenderFrameHostDelegate() {} 176 virtual ~RenderFrameHostDelegate() {}
173 }; 177 };
174 178
175 } // namespace content 179 } // namespace content
176 180
177 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_DELEGATE_H_ 181 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_DELEGATE_H_
OLDNEW
« no previous file with comments | « no previous file | content/browser/frame_host/render_frame_host_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698