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

Side by Side Diff: content/renderer/render_frame_impl.h

Issue 801613004: Implement WebPermissionClient for Document and Worker contexts (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: with comments Created 5 years, 9 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 #ifndef CONTENT_RENDERER_RENDER_FRAME_IMPL_H_ 5 #ifndef CONTENT_RENDERER_RENDER_FRAME_IMPL_H_
6 #define CONTENT_RENDERER_RENDER_FRAME_IMPL_H_ 6 #define CONTENT_RENDERER_RENDER_FRAME_IMPL_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
77 class ExternalPopupMenu; 77 class ExternalPopupMenu;
78 class GeolocationDispatcher; 78 class GeolocationDispatcher;
79 class ManifestManager; 79 class ManifestManager;
80 class MediaStreamDispatcher; 80 class MediaStreamDispatcher;
81 class MediaStreamRendererFactory; 81 class MediaStreamRendererFactory;
82 class MediaPermissionDispatcher; 82 class MediaPermissionDispatcher;
83 class MidiDispatcher; 83 class MidiDispatcher;
84 class NotificationPermissionDispatcher; 84 class NotificationPermissionDispatcher;
85 class PageState; 85 class PageState;
86 class PepperPluginInstanceImpl; 86 class PepperPluginInstanceImpl;
87 class PermissionManager;
87 class PresentationDispatcher; 88 class PresentationDispatcher;
88 class PushMessagingDispatcher; 89 class PushMessagingDispatcher;
89 class RendererAccessibility; 90 class RendererAccessibility;
90 class RendererCdmManager; 91 class RendererCdmManager;
91 class RendererMediaPlayerManager; 92 class RendererMediaPlayerManager;
92 class RendererPpapiHost; 93 class RendererPpapiHost;
93 class RenderFrameObserver; 94 class RenderFrameObserver;
94 class RenderViewImpl; 95 class RenderViewImpl;
95 class RenderWidget; 96 class RenderWidget;
96 class RenderWidgetFullscreenPepper; 97 class RenderWidgetFullscreenPepper;
(...skipping 414 matching lines...) Expand 10 before | Expand all | Expand 10 after
511 int identifier, 512 int identifier,
512 int match_index, 513 int match_index,
513 const blink::WebAXObject& start_object, 514 const blink::WebAXObject& start_object,
514 int start_offset, 515 int start_offset,
515 const blink::WebAXObject& end_object, 516 const blink::WebAXObject& end_object,
516 int end_offset); 517 int end_offset);
517 virtual void didChangeManifest(blink::WebLocalFrame*); 518 virtual void didChangeManifest(blink::WebLocalFrame*);
518 virtual void didChangeDefaultPresentation(blink::WebLocalFrame*); 519 virtual void didChangeDefaultPresentation(blink::WebLocalFrame*);
519 virtual bool enterFullscreen(); 520 virtual bool enterFullscreen();
520 virtual bool exitFullscreen(); 521 virtual bool exitFullscreen();
521 void suddenTerminationDisablerChanged( 522 virtual void suddenTerminationDisablerChanged(
522 bool present, 523 bool present,
523 blink::WebFrameClient::SuddenTerminationDisablerType type) override; 524 blink::WebFrameClient::SuddenTerminationDisablerType type);
525 virtual blink::WebPermissionClient* permissionClient();
524 526
525 // WebMediaPlayerDelegate implementation: 527 // WebMediaPlayerDelegate implementation:
526 void DidPlay(blink::WebMediaPlayer* player) override; 528 void DidPlay(blink::WebMediaPlayer* player) override;
527 void DidPause(blink::WebMediaPlayer* player) override; 529 void DidPause(blink::WebMediaPlayer* player) override;
528 void PlayerGone(blink::WebMediaPlayer* player) override; 530 void PlayerGone(blink::WebMediaPlayer* player) override;
529 531
530 // TODO(nasko): Make all tests in RenderViewImplTest friends and then move 532 // TODO(nasko): Make all tests in RenderViewImplTest friends and then move
531 // this back to private member. 533 // this back to private member.
532 void OnNavigate(const CommonNavigationParams& common_params, 534 void OnNavigate(const CommonNavigationParams& common_params,
533 const StartNavigationParams& start_params, 535 const StartNavigationParams& start_params,
(...skipping 334 matching lines...) Expand 10 before | Expand all | Expand 10 after
868 // process. 870 // process.
869 ManifestManager* manifest_manager_; 871 ManifestManager* manifest_manager_;
870 872
871 // The current accessibility mode. 873 // The current accessibility mode.
872 AccessibilityMode accessibility_mode_; 874 AccessibilityMode accessibility_mode_;
873 875
874 // Only valid if |accessibility_mode_| is anything other than 876 // Only valid if |accessibility_mode_| is anything other than
875 // AccessibilityModeOff. 877 // AccessibilityModeOff.
876 RendererAccessibility* renderer_accessibility_; 878 RendererAccessibility* renderer_accessibility_;
877 879
880 scoped_ptr<PermissionManager> permission_client_;
881
878 #if defined(OS_MACOSX) || defined(OS_ANDROID) 882 #if defined(OS_MACOSX) || defined(OS_ANDROID)
879 // The external popup for the currently showing select popup. 883 // The external popup for the currently showing select popup.
880 scoped_ptr<ExternalPopupMenu> external_popup_menu_; 884 scoped_ptr<ExternalPopupMenu> external_popup_menu_;
881 #endif 885 #endif
882 886
883 base::WeakPtrFactory<RenderFrameImpl> weak_factory_; 887 base::WeakPtrFactory<RenderFrameImpl> weak_factory_;
884 888
885 DISALLOW_COPY_AND_ASSIGN(RenderFrameImpl); 889 DISALLOW_COPY_AND_ASSIGN(RenderFrameImpl);
886 }; 890 };
887 891
888 } // namespace content 892 } // namespace content
889 893
890 #endif // CONTENT_RENDERER_RENDER_FRAME_IMPL_H_ 894 #endif // CONTENT_RENDERER_RENDER_FRAME_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698