Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(526)

Side by Side Diff: content/browser/frame_host/render_frame_host_delegate.cc

Issue 1629013002: Allow a main interstitial frame to act as an ExtensionMessagePort opener (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@extension-message-port-onDisconnect-580882
Patch Set: Remove trailing space Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 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 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 <stddef.h> 5 #include <stddef.h>
6 6
7 #include "base/callback.h" 7 #include "base/callback.h"
8 #include "base/strings/string16.h" 8 #include "base/strings/string16.h"
9 #include "build/build_config.h" 9 #include "build/build_config.h"
10 #include "content/browser/frame_host/render_frame_host_delegate.h" 10 #include "content/browser/frame_host/render_frame_host_delegate.h"
(...skipping 18 matching lines...) Expand all
29 const base::string16& message, 29 const base::string16& message,
30 int32_t line_no, 30 int32_t line_no,
31 const base::string16& source_id) { 31 const base::string16& source_id) {
32 return false; 32 return false;
33 } 33 }
34 34
35 WebContents* RenderFrameHostDelegate::GetAsWebContents() { 35 WebContents* RenderFrameHostDelegate::GetAsWebContents() {
36 return NULL; 36 return NULL;
37 } 37 }
38 38
39 InterstitialPage* RenderFrameHostDelegate::GetAsInterstitialPage() {
40 return nullptr;
41 }
42
39 void RenderFrameHostDelegate::RequestMediaAccessPermission( 43 void RenderFrameHostDelegate::RequestMediaAccessPermission(
40 const MediaStreamRequest& request, 44 const MediaStreamRequest& request,
41 const MediaResponseCallback& callback) { 45 const MediaResponseCallback& callback) {
42 LOG(ERROR) << "RenderFrameHostDelegate::RequestMediaAccessPermission: " 46 LOG(ERROR) << "RenderFrameHostDelegate::RequestMediaAccessPermission: "
43 << "Not supported."; 47 << "Not supported.";
44 callback.Run(MediaStreamDevices(), 48 callback.Run(MediaStreamDevices(),
45 MEDIA_DEVICE_NOT_SUPPORTED, 49 MEDIA_DEVICE_NOT_SUPPORTED,
46 scoped_ptr<MediaStreamUI>()); 50 scoped_ptr<MediaStreamUI>());
47 } 51 }
48 52
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
85 } 89 }
86 90
87 #if defined(OS_WIN) 91 #if defined(OS_WIN)
88 gfx::NativeViewAccessible 92 gfx::NativeViewAccessible
89 RenderFrameHostDelegate::GetParentNativeViewAccessible() { 93 RenderFrameHostDelegate::GetParentNativeViewAccessible() {
90 return NULL; 94 return NULL;
91 } 95 }
92 #endif // defined(OS_WIN) 96 #endif // defined(OS_WIN)
93 97
94 } // namespace content 98 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/frame_host/render_frame_host_delegate.h ('k') | content/public/browser/interstitial_page.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698