| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 #include "content/public/browser/web_contents_delegate.h" | 5 #include "content/public/browser/web_contents_delegate.h" |
| 6 | 6 |
| 7 #include "base/compiler_specific.h" | 7 #include "base/compiler_specific.h" |
| 8 #include "base/logging.h" | 8 #include "base/logging.h" |
| 9 #include "base/memory/singleton.h" | 9 #include "base/memory/singleton.h" |
| 10 #include "content/public/browser/render_view_host.h" | 10 #include "content/public/browser/render_view_host.h" |
| (...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 162 | 162 |
| 163 void WebContentsDelegate::RequestMediaAccessPermission( | 163 void WebContentsDelegate::RequestMediaAccessPermission( |
| 164 WebContents* web_contents, | 164 WebContents* web_contents, |
| 165 const MediaStreamRequest& request, | 165 const MediaStreamRequest& request, |
| 166 const MediaResponseCallback& callback) { | 166 const MediaResponseCallback& callback) { |
| 167 callback.Run(MediaStreamDevices(), | 167 callback.Run(MediaStreamDevices(), |
| 168 MEDIA_DEVICE_INVALID_STATE, | 168 MEDIA_DEVICE_INVALID_STATE, |
| 169 scoped_ptr<MediaStreamUI>()); | 169 scoped_ptr<MediaStreamUI>()); |
| 170 } | 170 } |
| 171 | 171 |
| 172 void WebContentsDelegate::AllowMicAccessBasedOnPolicyAndAppPermissions( |
| 173 WebContents* web_contents, |
| 174 const GURL& security_origin, |
| 175 const MediaAccessResponseCallback& callback) { |
| 176 callback.Run(false); |
| 177 } |
| 178 |
| 172 bool WebContentsDelegate::RequestPpapiBrokerPermission( | 179 bool WebContentsDelegate::RequestPpapiBrokerPermission( |
| 173 WebContents* web_contents, | 180 WebContents* web_contents, |
| 174 const GURL& url, | 181 const GURL& url, |
| 175 const base::FilePath& plugin_path, | 182 const base::FilePath& plugin_path, |
| 176 const base::Callback<void(bool)>& callback) { | 183 const base::Callback<void(bool)>& callback) { |
| 177 return false; | 184 return false; |
| 178 } | 185 } |
| 179 | 186 |
| 180 WebContentsDelegate::~WebContentsDelegate() { | 187 WebContentsDelegate::~WebContentsDelegate() { |
| 181 while (!attached_contents_.empty()) { | 188 while (!attached_contents_.empty()) { |
| (...skipping 16 matching lines...) Expand all Loading... |
| 198 gfx::Size WebContentsDelegate::GetSizeForNewRenderView( | 205 gfx::Size WebContentsDelegate::GetSizeForNewRenderView( |
| 199 WebContents* web_contents) const { | 206 WebContents* web_contents) const { |
| 200 return gfx::Size(); | 207 return gfx::Size(); |
| 201 } | 208 } |
| 202 | 209 |
| 203 bool WebContentsDelegate::IsNeverVisible(WebContents* web_contents) { | 210 bool WebContentsDelegate::IsNeverVisible(WebContents* web_contents) { |
| 204 return false; | 211 return false; |
| 205 } | 212 } |
| 206 | 213 |
| 207 } // namespace content | 214 } // namespace content |
| OLD | NEW |