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

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

Issue 857213003: Refactor sudden termination (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 11 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 492 matching lines...) Expand 10 before | Expand all | Expand 10 after
503 virtual void handleAccessibilityFindInPageResult( 503 virtual void handleAccessibilityFindInPageResult(
504 int identifier, 504 int identifier,
505 int match_index, 505 int match_index,
506 const blink::WebAXObject& start_object, 506 const blink::WebAXObject& start_object,
507 int start_offset, 507 int start_offset,
508 const blink::WebAXObject& end_object, 508 const blink::WebAXObject& end_object,
509 int end_offset); 509 int end_offset);
510 virtual void didChangeManifest(blink::WebLocalFrame*); 510 virtual void didChangeManifest(blink::WebLocalFrame*);
511 virtual bool enterFullscreen(); 511 virtual bool enterFullscreen();
512 virtual bool exitFullscreen(); 512 virtual bool exitFullscreen();
513 void suddenTerminationDisablerChanged(
514 int variation,
515 blink::WebFrameClient::SuddenTerminationDisablerType type) override;
513 516
514 // WebMediaPlayerDelegate implementation: 517 // WebMediaPlayerDelegate implementation:
515 void DidPlay(blink::WebMediaPlayer* player) override; 518 void DidPlay(blink::WebMediaPlayer* player) override;
516 void DidPause(blink::WebMediaPlayer* player) override; 519 void DidPause(blink::WebMediaPlayer* player) override;
517 void PlayerGone(blink::WebMediaPlayer* player) override; 520 void PlayerGone(blink::WebMediaPlayer* player) override;
518 521
519 // TODO(nasko): Make all tests in RenderViewImplTest friends and then move 522 // TODO(nasko): Make all tests in RenderViewImplTest friends and then move
520 // this back to private member. 523 // this back to private member.
521 void OnNavigate(const FrameMsg_Navigate_Params& params); 524 void OnNavigate(const FrameMsg_Navigate_Params& params);
522 525
(...skipping 316 matching lines...) Expand 10 before | Expand all | Expand 10 after
839 // process. 842 // process.
840 ManifestManager* manifest_manager_; 843 ManifestManager* manifest_manager_;
841 844
842 // The current accessibility mode. 845 // The current accessibility mode.
843 AccessibilityMode accessibility_mode_; 846 AccessibilityMode accessibility_mode_;
844 847
845 // Only valid if |accessibility_mode_| is anything other than 848 // Only valid if |accessibility_mode_| is anything other than
846 // AccessibilityModeOff. 849 // AccessibilityModeOff.
847 RendererAccessibility* renderer_accessibility_; 850 RendererAccessibility* renderer_accessibility_;
848 851
852 // Used to track disablers of sudden termination. A change of presence of any
853 // of those elements should be transmitted to the browser.
854 int beforeunload_handlers_;
855 int unload_handlers_;
856
849 #if defined(OS_MACOSX) || defined(OS_ANDROID) 857 #if defined(OS_MACOSX) || defined(OS_ANDROID)
850 // The external popup for the currently showing select popup. 858 // The external popup for the currently showing select popup.
851 scoped_ptr<ExternalPopupMenu> external_popup_menu_; 859 scoped_ptr<ExternalPopupMenu> external_popup_menu_;
852 #endif 860 #endif
853 861
854 base::WeakPtrFactory<RenderFrameImpl> weak_factory_; 862 base::WeakPtrFactory<RenderFrameImpl> weak_factory_;
855 863
856 DISALLOW_COPY_AND_ASSIGN(RenderFrameImpl); 864 DISALLOW_COPY_AND_ASSIGN(RenderFrameImpl);
857 }; 865 };
858 866
859 } // namespace content 867 } // namespace content
860 868
861 #endif // CONTENT_RENDERER_RENDER_FRAME_IMPL_H_ 869 #endif // CONTENT_RENDERER_RENDER_FRAME_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698