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

Side by Side Diff: content/browser/frame_host/render_frame_host_delegate.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 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 <stdint.h> 8 #include <stdint.h>
9 9
10 #include <string> 10 #include <string>
11 #include <vector> 11 #include <vector>
12 12
13 #include "base/i18n/rtl.h" 13 #include "base/i18n/rtl.h"
14 #include "build/build_config.h" 14 #include "build/build_config.h"
15 #include "content/browser/webui/web_ui_impl.h" 15 #include "content/browser/webui/web_ui_impl.h"
16 #include "content/common/content_export.h" 16 #include "content/common/content_export.h"
17 #include "content/common/frame_message_enums.h" 17 #include "content/common/frame_message_enums.h"
18 #include "content/public/browser/site_instance.h" 18 #include "content/public/browser/site_instance.h"
19 #include "content/public/common/javascript_dialog_type.h" 19 #include "content/public/common/javascript_dialog_type.h"
20 #include "content/public/common/media_stream_request.h" 20 #include "content/public/common/media_stream_request.h"
21 #include "device/wake_lock/public/interfaces/wake_lock_service.mojom.h"
21 #include "mojo/public/cpp/bindings/scoped_interface_endpoint_handle.h" 22 #include "mojo/public/cpp/bindings/scoped_interface_endpoint_handle.h"
22 #include "net/http/http_response_headers.h" 23 #include "net/http/http_response_headers.h"
23 #include "ui/base/window_open_disposition.h" 24 #include "ui/base/window_open_disposition.h"
24 25
25 #if defined(OS_WIN) 26 #if defined(OS_WIN)
26 #include "ui/gfx/native_widget_types.h" 27 #include "ui/gfx/native_widget_types.h"
27 #endif 28 #endif
28 29
29 #if defined(OS_ANDROID) 30 #if defined(OS_ANDROID)
30 #include "base/android/scoped_java_ref.h" 31 #include "base/android/scoped_java_ref.h"
31 #endif 32 #endif
32 33
33 class GURL; 34 class GURL;
34 35
35 namespace IPC { 36 namespace IPC {
36 class Message; 37 class Message;
37 } 38 }
38 39
39 namespace device { 40 namespace device {
40 class GeolocationServiceContext; 41 class GeolocationServiceContext;
41
42 namespace mojom {
43 class WakeLockContext;
44 }
45 } 42 }
46 43
47 namespace gfx { 44 namespace gfx {
48 class Rect; 45 class Rect;
49 } 46 }
50 47
51 namespace url { 48 namespace url {
52 class Origin; 49 class Origin;
53 } 50 }
54 51
(...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after
187 184
188 // Find a guest RenderFrameHost by its parent |render_frame_host| and 185 // Find a guest RenderFrameHost by its parent |render_frame_host| and
189 // |browser_plugin_instance_id|. 186 // |browser_plugin_instance_id|.
190 virtual RenderFrameHost* GetGuestByInstanceID( 187 virtual RenderFrameHost* GetGuestByInstanceID(
191 RenderFrameHost* render_frame_host, 188 RenderFrameHost* render_frame_host,
192 int browser_plugin_instance_id); 189 int browser_plugin_instance_id);
193 190
194 // Gets the GeolocationServiceContext associated with this delegate. 191 // Gets the GeolocationServiceContext associated with this delegate.
195 virtual device::GeolocationServiceContext* GetGeolocationServiceContext(); 192 virtual device::GeolocationServiceContext* GetGeolocationServiceContext();
196 193
197 // Gets the WakeLockServiceContext associated with this delegate. 194 // Bind the WakeLockServiceRequests from blink to the WakeLockServiceImpl
198 virtual device::mojom::WakeLockContext* GetWakeLockServiceContext(); 195 // instance.
196 virtual void ConnectToBlinkWakeLock(
blundell 2017/05/02 11:27:43 nit: On seeing this, I'm inclined to have the inte
ke.he 2017/05/04 11:54:13 Done.
197 device::mojom::WakeLockServiceRequest request);
199 198
200 // Notification that the frame wants to go into fullscreen mode. 199 // Notification that the frame wants to go into fullscreen mode.
201 // |origin| represents the origin of the frame that requests fullscreen. 200 // |origin| represents the origin of the frame that requests fullscreen.
202 virtual void EnterFullscreenMode(const GURL& origin) {} 201 virtual void EnterFullscreenMode(const GURL& origin) {}
203 202
204 // Notification that the frame wants to go out of fullscreen mode. 203 // Notification that the frame wants to go out of fullscreen mode.
205 // |will_cause_resize| indicates whether the fullscreen change causes a 204 // |will_cause_resize| indicates whether the fullscreen change causes a
206 // view resize. e.g. This will be false when going from tab fullscreen to 205 // view resize. e.g. This will be false when going from tab fullscreen to
207 // browser fullscreen. 206 // browser fullscreen.
208 virtual void ExitFullscreenMode(bool will_cause_resize) {} 207 virtual void ExitFullscreenMode(bool will_cause_resize) {}
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after
304 GetJavaRenderFrameHostDelegate(); 303 GetJavaRenderFrameHostDelegate();
305 #endif 304 #endif
306 305
307 protected: 306 protected:
308 virtual ~RenderFrameHostDelegate() {} 307 virtual ~RenderFrameHostDelegate() {}
309 }; 308 };
310 309
311 } // namespace content 310 } // namespace content
312 311
313 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_DELEGATE_H_ 312 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_DELEGATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698