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

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

Issue 2938313002: Don't show current RenderWidgetHostView while interstitial is showing. (Closed)
Patch Set: Fix typo. Created 3 years, 6 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 <stdint.h> 8 #include <stdint.h>
9 9
10 #include <functional> 10 #include <functional>
(...skipping 737 matching lines...) Expand 10 before | Expand all | Expand 10 after
748 void UpdateRenderViewSizeForRenderManager() override; 748 void UpdateRenderViewSizeForRenderManager() override;
749 void CancelModalDialogsForRenderManager() override; 749 void CancelModalDialogsForRenderManager() override;
750 void NotifySwappedFromRenderManager(RenderFrameHost* old_host, 750 void NotifySwappedFromRenderManager(RenderFrameHost* old_host,
751 RenderFrameHost* new_host, 751 RenderFrameHost* new_host,
752 bool is_main_frame) override; 752 bool is_main_frame) override;
753 void NotifyMainFrameSwappedFromRenderManager( 753 void NotifyMainFrameSwappedFromRenderManager(
754 RenderViewHost* old_host, 754 RenderViewHost* old_host,
755 RenderViewHost* new_host) override; 755 RenderViewHost* new_host) override;
756 NavigationControllerImpl& GetControllerForRenderManager() override; 756 NavigationControllerImpl& GetControllerForRenderManager() override;
757 NavigationEntry* GetLastCommittedNavigationEntryForRenderManager() override; 757 NavigationEntry* GetLastCommittedNavigationEntryForRenderManager() override;
758 InterstitialPageImpl* GetInterstitialForRenderManager() override;
758 bool FocusLocationBarByDefault() override; 759 bool FocusLocationBarByDefault() override;
759 void SetFocusToLocationBar(bool select_all) override; 760 void SetFocusToLocationBar(bool select_all) override;
760 bool IsHidden() override; 761 bool IsHidden() override;
761 int GetOuterDelegateFrameTreeNodeId() override; 762 int GetOuterDelegateFrameTreeNodeId() override;
762 RenderWidgetHostImpl* GetFullscreenRenderWidgetHost() const override; 763 RenderWidgetHostImpl* GetFullscreenRenderWidgetHost() const override;
763 764
764 // NotificationObserver ------------------------------------------------------ 765 // NotificationObserver ------------------------------------------------------
765 766
766 void Observe(int type, 767 void Observe(int type,
767 const NotificationSource& source, 768 const NotificationSource& source,
(...skipping 584 matching lines...) Expand 10 before | Expand all | Expand 10 after
1352 1353
1353 // Upload progress, for displaying in the status bar. 1354 // Upload progress, for displaying in the status bar.
1354 // Set to zero when there is no significant upload happening. 1355 // Set to zero when there is no significant upload happening.
1355 uint64_t upload_size_; 1356 uint64_t upload_size_;
1356 uint64_t upload_position_; 1357 uint64_t upload_position_;
1357 1358
1358 // Tracks that this WebContents needs to unblock requests to the renderer. 1359 // Tracks that this WebContents needs to unblock requests to the renderer.
1359 // See ResumeLoadingCreatedWebContents. 1360 // See ResumeLoadingCreatedWebContents.
1360 bool is_resume_pending_; 1361 bool is_resume_pending_;
1361 1362
1363 // The interstitial page currently shown, if any. Not owned by this class: the
1364 // InterstitialPage is self-owned and deletes itself asynchronously when
1365 // hidden. Because it may outlive this WebContents, it enters a disabled state
1366 // when hidden or preparing for destruction.
1367 InterstitialPageImpl* interstitial_page_;
1368
1362 // Data for current page ----------------------------------------------------- 1369 // Data for current page -----------------------------------------------------
1363 1370
1364 // When a title cannot be taken from any entry, this title will be used. 1371 // When a title cannot be taken from any entry, this title will be used.
1365 base::string16 page_title_when_no_navigation_entry_; 1372 base::string16 page_title_when_no_navigation_entry_;
1366 1373
1367 // When a navigation occurs, we record its contents MIME type. It can be 1374 // When a navigation occurs, we record its contents MIME type. It can be
1368 // used to check whether we can do something for some special contents. 1375 // used to check whether we can do something for some special contents.
1369 std::string contents_mime_type_; 1376 std::string contents_mime_type_;
1370 1377
1371 // The last reported character encoding, not canonicalized. 1378 // The last reported character encoding, not canonicalized.
(...skipping 269 matching lines...) Expand 10 before | Expand all | Expand 10 after
1641 // Adds/removes a callback called on creation of each new WebContents. 1648 // Adds/removes a callback called on creation of each new WebContents.
1642 static void AddCreatedCallbackForTesting(const CreatedCallback& callback); 1649 static void AddCreatedCallbackForTesting(const CreatedCallback& callback);
1643 static void RemoveCreatedCallbackForTesting(const CreatedCallback& callback); 1650 static void RemoveCreatedCallbackForTesting(const CreatedCallback& callback);
1644 1651
1645 DISALLOW_COPY_AND_ASSIGN(FriendWrapper); 1652 DISALLOW_COPY_AND_ASSIGN(FriendWrapper);
1646 }; 1653 };
1647 1654
1648 } // namespace content 1655 } // namespace content
1649 1656
1650 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ 1657 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_
OLDNEW
« no previous file with comments | « content/browser/frame_host/render_frame_host_manager.cc ('k') | content/browser/web_contents/web_contents_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698