Update To 11.40.268.0
[platform/framework/web/crosswalk.git] / src / content / browser / frame_host / render_frame_host_delegate.cc
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.
4
5 #include <stddef.h>
6
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"
11 #include "url/gurl.h"
12
13 namespace content {
14
15 bool RenderFrameHostDelegate::OnMessageReceived(
16     RenderFrameHost* render_view_host,
17     const IPC::Message& message) {
18   return false;
19 }
20
21 const GURL& RenderFrameHostDelegate::GetMainFrameLastCommittedURL() const {
22   return GURL::EmptyGURL();
23 }
24
25 bool RenderFrameHostDelegate::WillHandleDeferAfterResponseStarted() {
26   return false;
27 }
28
29 bool RenderFrameHostDelegate::AddMessageToConsole(
30     int32 level, const base::string16& message, int32 line_no,
31     const base::string16& source_id) {
32   return false;
33 }
34
35 WebContents* RenderFrameHostDelegate::GetAsWebContents() {
36   return NULL;
37 }
38
39 void RenderFrameHostDelegate::RequestMediaAccessPermission(
40     const MediaStreamRequest& request,
41     const MediaResponseCallback& callback) {
42   LOG(ERROR) << "RenderFrameHostDelegate::RequestMediaAccessPermission: "
43              << "Not supported.";
44   callback.Run(MediaStreamDevices(),
45                MEDIA_DEVICE_NOT_SUPPORTED,
46                scoped_ptr<MediaStreamUI>());
47 }
48
49 bool RenderFrameHostDelegate::CheckMediaAccessPermission(
50     const GURL& security_origin,
51     MediaStreamType type) {
52   LOG(ERROR) << "RenderFrameHostDelegate::CheckMediaAccessPermission: "
53              << "Not supported.";
54   return false;
55 }
56
57 AccessibilityMode RenderFrameHostDelegate::GetAccessibilityMode() const {
58   return AccessibilityModeOff;
59 }
60
61 RenderFrameHost* RenderFrameHostDelegate::GetGuestByInstanceID(
62     int browser_plugin_instance_id) {
63   return NULL;
64 }
65
66 GeolocationServiceContext*
67 RenderFrameHostDelegate::GetGeolocationServiceContext() {
68   return NULL;
69 }
70
71 #if defined(OS_WIN)
72 gfx::NativeViewAccessible
73     RenderFrameHostDelegate::GetParentNativeViewAccessible() {
74   return NULL;
75 }
76 #endif  // defined(OS_WIN)
77
78 }  // namespace content