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.
7 #include "base/callback.h"
8 #include "base/strings/string16.h"
9 #include "content/browser/frame_host/render_frame_host_delegate.h"
10 #include "ui/gfx/native_widget_types.h"
15 bool RenderFrameHostDelegate::OnMessageReceived(
16 RenderFrameHost
* render_view_host
,
17 const IPC::Message
& message
) {
21 const GURL
& RenderFrameHostDelegate::GetMainFrameLastCommittedURL() const {
22 return GURL::EmptyGURL();
25 bool RenderFrameHostDelegate::WillHandleDeferAfterResponseStarted() {
29 bool RenderFrameHostDelegate::AddMessageToConsole(
30 int32 level
, const base::string16
& message
, int32 line_no
,
31 const base::string16
& source_id
) {
35 WebContents
* RenderFrameHostDelegate::GetAsWebContents() {
39 void RenderFrameHostDelegate::RequestMediaAccessPermission(
40 const MediaStreamRequest
& request
,
41 const MediaResponseCallback
& callback
) {
42 callback
.Run(MediaStreamDevices(),
43 MEDIA_DEVICE_INVALID_STATE
,
44 scoped_ptr
<MediaStreamUI
>());
47 AccessibilityMode
RenderFrameHostDelegate::GetAccessibilityMode() const {
48 return AccessibilityModeOff
;
52 gfx::NativeViewAccessible
53 RenderFrameHostDelegate::GetParentNativeViewAccessible() {
56 #endif // defined(OS_WIN)
58 } // namespace content