1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78
|
// Copyright 2013 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include <stddef.h>
#include "base/callback.h"
#include "base/strings/string16.h"
#include "content/browser/frame_host/render_frame_host_delegate.h"
#include "ui/gfx/native_widget_types.h"
#include "url/gurl.h"
namespace content {
bool RenderFrameHostDelegate::OnMessageReceived(
RenderFrameHost* render_view_host,
const IPC::Message& message) {
return false;
}
const GURL& RenderFrameHostDelegate::GetMainFrameLastCommittedURL() const {
return GURL::EmptyGURL();
}
bool RenderFrameHostDelegate::WillHandleDeferAfterResponseStarted() {
return false;
}
bool RenderFrameHostDelegate::AddMessageToConsole(
int32 level, const base::string16& message, int32 line_no,
const base::string16& source_id) {
return false;
}
WebContents* RenderFrameHostDelegate::GetAsWebContents() {
return NULL;
}
void RenderFrameHostDelegate::RequestMediaAccessPermission(
const MediaStreamRequest& request,
const MediaResponseCallback& callback) {
LOG(ERROR) << "RenderFrameHostDelegate::RequestMediaAccessPermission: "
<< "Not supported.";
callback.Run(MediaStreamDevices(),
MEDIA_DEVICE_NOT_SUPPORTED,
scoped_ptr<MediaStreamUI>());
}
bool RenderFrameHostDelegate::CheckMediaAccessPermission(
const GURL& security_origin,
MediaStreamType type) {
LOG(ERROR) << "RenderFrameHostDelegate::CheckMediaAccessPermission: "
<< "Not supported.";
return false;
}
AccessibilityMode RenderFrameHostDelegate::GetAccessibilityMode() const {
return AccessibilityModeOff;
}
RenderFrameHost* RenderFrameHostDelegate::GetGuestByInstanceID(
int browser_plugin_instance_id) {
return NULL;
}
GeolocationServiceContext*
RenderFrameHostDelegate::GetGeolocationServiceContext() {
return NULL;
}
#if defined(OS_WIN)
gfx::NativeViewAccessible
RenderFrameHostDelegate::GetParentNativeViewAccessible() {
return NULL;
}
#endif // defined(OS_WIN)
} // namespace content
|