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

Side by Side Diff: content/browser/web_contents/web_contents_impl.h

Issue 562263002: Check media permissions through RenderFrameHostDelegate. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@render_frame_get_sources
Patch Set: Updated unit test MediaStreamDispatcherHost. Created 6 years, 3 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 (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 #ifndef CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ 5 #ifndef CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_
6 #define CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ 6 #define CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_
7 7
8 #include <map> 8 #include <map>
9 #include <set> 9 #include <set>
10 #include <string> 10 #include <string>
(...skipping 455 matching lines...) Expand 10 before | Expand all | Expand 10 after
466 virtual void ShowCreatedWindow(int route_id, 466 virtual void ShowCreatedWindow(int route_id,
467 WindowOpenDisposition disposition, 467 WindowOpenDisposition disposition,
468 const gfx::Rect& initial_pos, 468 const gfx::Rect& initial_pos,
469 bool user_gesture) OVERRIDE; 469 bool user_gesture) OVERRIDE;
470 virtual void ShowCreatedWidget(int route_id, 470 virtual void ShowCreatedWidget(int route_id,
471 const gfx::Rect& initial_pos) OVERRIDE; 471 const gfx::Rect& initial_pos) OVERRIDE;
472 virtual void ShowCreatedFullscreenWidget(int route_id) OVERRIDE; 472 virtual void ShowCreatedFullscreenWidget(int route_id) OVERRIDE;
473 virtual void RequestMediaAccessPermission( 473 virtual void RequestMediaAccessPermission(
474 const MediaStreamRequest& request, 474 const MediaStreamRequest& request,
475 const MediaResponseCallback& callback) OVERRIDE; 475 const MediaResponseCallback& callback) OVERRIDE;
476 virtual bool CheckMediaAccessPermission(const GURL& security_origin,
477 MediaStreamType type) OVERRIDE;
476 virtual SessionStorageNamespace* GetSessionStorageNamespace( 478 virtual SessionStorageNamespace* GetSessionStorageNamespace(
477 SiteInstance* instance) OVERRIDE; 479 SiteInstance* instance) OVERRIDE;
478 virtual SessionStorageNamespaceMap GetSessionStorageNamespaceMap() OVERRIDE; 480 virtual SessionStorageNamespaceMap GetSessionStorageNamespaceMap() OVERRIDE;
479 virtual FrameTree* GetFrameTree() OVERRIDE; 481 virtual FrameTree* GetFrameTree() OVERRIDE;
480 482
481 // NavigatorDelegate --------------------------------------------------------- 483 // NavigatorDelegate ---------------------------------------------------------
482 484
483 virtual void DidStartProvisionalLoad( 485 virtual void DidStartProvisionalLoad(
484 RenderFrameHostImpl* render_frame_host, 486 RenderFrameHostImpl* render_frame_host,
485 const GURL& validated_url, 487 const GURL& validated_url,
(...skipping 748 matching lines...) Expand 10 before | Expand all | Expand 10 after
1234 1236
1235 // Monitors power levels for audio streams associated with this WebContents. 1237 // Monitors power levels for audio streams associated with this WebContents.
1236 AudioStreamMonitor audio_stream_monitor_; 1238 AudioStreamMonitor audio_stream_monitor_;
1237 1239
1238 DISALLOW_COPY_AND_ASSIGN(WebContentsImpl); 1240 DISALLOW_COPY_AND_ASSIGN(WebContentsImpl);
1239 }; 1241 };
1240 1242
1241 } // namespace content 1243 } // namespace content
1242 1244
1243 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ 1245 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698