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

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

Issue 2865653002: [Device Service] Decouple NFC implementation from //content (Closed)
Patch Set: Rebase 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>
(...skipping 11 matching lines...) Expand all
22 #include "mojo/public/cpp/bindings/scoped_interface_endpoint_handle.h" 22 #include "mojo/public/cpp/bindings/scoped_interface_endpoint_handle.h"
23 #include "net/http/http_response_headers.h" 23 #include "net/http/http_response_headers.h"
24 #include "ui/base/window_open_disposition.h" 24 #include "ui/base/window_open_disposition.h"
25 25
26 #if defined(OS_WIN) 26 #if defined(OS_WIN)
27 #include "ui/gfx/native_widget_types.h" 27 #include "ui/gfx/native_widget_types.h"
28 #endif 28 #endif
29 29
30 #if defined(OS_ANDROID) 30 #if defined(OS_ANDROID)
31 #include "base/android/scoped_java_ref.h" 31 #include "base/android/scoped_java_ref.h"
32 #include "device/nfc/nfc.mojom.h"
32 #endif 33 #endif
33 34
34 class GURL; 35 class GURL;
35 36
36 namespace IPC { 37 namespace IPC {
37 class Message; 38 class Message;
38 } 39 }
39 40
40 namespace device { 41 namespace device {
41 class GeolocationServiceContext; 42 class GeolocationServiceContext;
(...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after
187 virtual RenderFrameHost* GetGuestByInstanceID( 188 virtual RenderFrameHost* GetGuestByInstanceID(
188 RenderFrameHost* render_frame_host, 189 RenderFrameHost* render_frame_host,
189 int browser_plugin_instance_id); 190 int browser_plugin_instance_id);
190 191
191 // Gets the GeolocationServiceContext associated with this delegate. 192 // Gets the GeolocationServiceContext associated with this delegate.
192 virtual device::GeolocationServiceContext* GetGeolocationServiceContext(); 193 virtual device::GeolocationServiceContext* GetGeolocationServiceContext();
193 194
194 // Gets the WakeLockService that serves wake lock requests from the renderer. 195 // Gets the WakeLockService that serves wake lock requests from the renderer.
195 virtual device::mojom::WakeLockService* GetRendererWakeLock(); 196 virtual device::mojom::WakeLockService* GetRendererWakeLock();
196 197
198 #if defined(OS_ANDROID)
199 // Gets an NFC implementation within the context of this delegate.
200 virtual void GetNFC(device::nfc::mojom::NFCRequest request);
201 #endif
202
197 // Notification that the frame wants to go into fullscreen mode. 203 // Notification that the frame wants to go into fullscreen mode.
198 // |origin| represents the origin of the frame that requests fullscreen. 204 // |origin| represents the origin of the frame that requests fullscreen.
199 virtual void EnterFullscreenMode(const GURL& origin) {} 205 virtual void EnterFullscreenMode(const GURL& origin) {}
200 206
201 // Notification that the frame wants to go out of fullscreen mode. 207 // Notification that the frame wants to go out of fullscreen mode.
202 // |will_cause_resize| indicates whether the fullscreen change causes a 208 // |will_cause_resize| indicates whether the fullscreen change causes a
203 // view resize. e.g. This will be false when going from tab fullscreen to 209 // view resize. e.g. This will be false when going from tab fullscreen to
204 // browser fullscreen. 210 // browser fullscreen.
205 virtual void ExitFullscreenMode(bool will_cause_resize) {} 211 virtual void ExitFullscreenMode(bool will_cause_resize) {}
206 212
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after
305 // should not be asked to create a RenderFrame. 311 // should not be asked to create a RenderFrame.
306 virtual bool IsBeingDestroyed() const; 312 virtual bool IsBeingDestroyed() const;
307 313
308 protected: 314 protected:
309 virtual ~RenderFrameHostDelegate() {} 315 virtual ~RenderFrameHostDelegate() {}
310 }; 316 };
311 317
312 } // namespace content 318 } // namespace content
313 319
314 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_DELEGATE_H_ 320 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_DELEGATE_H_
OLDNEW
« no previous file with comments | « content/browser/android/nfc_host.cc ('k') | content/browser/frame_host/render_frame_host_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698