Supervised user whitelists: Cleanup
[chromium-blink-merge.git] / content / browser / frame_host / render_frame_host_delegate.cc
blobff4aba61ac6e42a42621665efeef70b51098d30d
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
3 // found in the LICENSE file.
5 #include <stddef.h>
7 #include "base/callback.h"
8 #include "base/strings/string16.h"
9 #include "content/browser/frame_host/render_frame_host_delegate.h"
10 #include "ipc/ipc_message.h"
11 #include "ui/gfx/native_widget_types.h"
12 #include "url/gurl.h"
14 namespace content {
16 bool RenderFrameHostDelegate::OnMessageReceived(
17 RenderFrameHost* render_view_host,
18 const IPC::Message& message) {
19 return false;
22 const GURL& RenderFrameHostDelegate::GetMainFrameLastCommittedURL() const {
23 return GURL::EmptyGURL();
26 bool RenderFrameHostDelegate::WillHandleDeferAfterResponseStarted() {
27 return false;
30 bool RenderFrameHostDelegate::AddMessageToConsole(
31 int32 level, const base::string16& message, int32 line_no,
32 const base::string16& source_id) {
33 return false;
36 WebContents* RenderFrameHostDelegate::GetAsWebContents() {
37 return NULL;
40 void RenderFrameHostDelegate::RequestMediaAccessPermission(
41 const MediaStreamRequest& request,
42 const MediaResponseCallback& callback) {
43 LOG(ERROR) << "RenderFrameHostDelegate::RequestMediaAccessPermission: "
44 << "Not supported.";
45 callback.Run(MediaStreamDevices(),
46 MEDIA_DEVICE_NOT_SUPPORTED,
47 scoped_ptr<MediaStreamUI>());
50 bool RenderFrameHostDelegate::CheckMediaAccessPermission(
51 const GURL& security_origin,
52 MediaStreamType type) {
53 LOG(ERROR) << "RenderFrameHostDelegate::CheckMediaAccessPermission: "
54 << "Not supported.";
55 return false;
58 AccessibilityMode RenderFrameHostDelegate::GetAccessibilityMode() const {
59 return AccessibilityModeOff;
62 RenderFrameHost* RenderFrameHostDelegate::GetGuestByInstanceID(
63 RenderFrameHost* render_frame_host,
64 int browser_plugin_instance_id) {
65 return NULL;
68 GeolocationServiceContext*
69 RenderFrameHostDelegate::GetGeolocationServiceContext() {
70 return NULL;
73 bool RenderFrameHostDelegate::ShouldRouteMessageEvent(
74 RenderFrameHost* target_rfh,
75 SiteInstance* source_site_instance) const {
76 return false;
79 int RenderFrameHostDelegate::EnsureOpenerRenderViewsExist(
80 RenderFrameHost* source_rfh) {
81 return MSG_ROUTING_NONE;
84 #if defined(OS_WIN)
85 gfx::NativeViewAccessible
86 RenderFrameHostDelegate::GetParentNativeViewAccessible() {
87 return NULL;
89 #endif // defined(OS_WIN)
91 } // namespace content