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

Side by Side Diff: content/browser/frame_host/interstitial_page_impl.h

Issue 257153003: We have a problem in the process on destroying WebContentsImpl because (Closed) Base URL: https://git.chromium.org/chromium/src.git@master
Patch Set: Rebased onto origin/master again, resolved conflicts Created 6 years, 7 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_BROWSER_FRAME_HOST_INTERSTITIAL_PAGE_IMPL_H_ 5 #ifndef CONTENT_BROWSER_FRAME_HOST_INTERSTITIAL_PAGE_IMPL_H_
6 #define CONTENT_BROWSER_FRAME_HOST_INTERSTITIAL_PAGE_IMPL_H_ 6 #define CONTENT_BROWSER_FRAME_HOST_INTERSTITIAL_PAGE_IMPL_H_
7 7
8 #include "base/compiler_specific.h" 8 #include "base/compiler_specific.h"
9 #include "base/memory/scoped_ptr.h" 9 #include "base/memory/scoped_ptr.h"
10 #include "base/memory/weak_ptr.h" 10 #include "base/memory/weak_ptr.h"
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
61 virtual void Show() OVERRIDE; 61 virtual void Show() OVERRIDE;
62 virtual void Hide() OVERRIDE; 62 virtual void Hide() OVERRIDE;
63 virtual void DontProceed() OVERRIDE; 63 virtual void DontProceed() OVERRIDE;
64 virtual void Proceed() OVERRIDE; 64 virtual void Proceed() OVERRIDE;
65 virtual RenderViewHost* GetRenderViewHostForTesting() const OVERRIDE; 65 virtual RenderViewHost* GetRenderViewHostForTesting() const OVERRIDE;
66 virtual InterstitialPageDelegate* GetDelegateForTesting() OVERRIDE; 66 virtual InterstitialPageDelegate* GetDelegateForTesting() OVERRIDE;
67 virtual void DontCreateViewForTesting() OVERRIDE; 67 virtual void DontCreateViewForTesting() OVERRIDE;
68 virtual void SetSize(const gfx::Size& size) OVERRIDE; 68 virtual void SetSize(const gfx::Size& size) OVERRIDE;
69 virtual void Focus() OVERRIDE; 69 virtual void Focus() OVERRIDE;
70 70
71 // This is called by a hosting WebContents to notify this interstitial page
72 // that it is going away.
73 void WebContentsWillBeDestroyed();
74
75 // Allows the user to navigate away by disabling the interstitial, canceling 71 // Allows the user to navigate away by disabling the interstitial, canceling
76 // the pending request, and unblocking the hidden renderer. The interstitial 72 // the pending request, and unblocking the hidden renderer. The interstitial
77 // will stay visible until the navigation completes. 73 // will stay visible until the navigation completes.
78 void CancelForNavigation(); 74 void CancelForNavigation();
79 75
80 // Focus the first (last if reverse is true) element in the interstitial page. 76 // Focus the first (last if reverse is true) element in the interstitial page.
81 // Called when tab traversing. 77 // Called when tab traversing.
82 void FocusThroughTabTraversal(bool reverse); 78 void FocusThroughTabTraversal(bool reverse);
83 79
84 RenderWidgetHostView* GetView(); 80 RenderWidgetHostView* GetView();
(...skipping 19 matching lines...) Expand all
104 protected: 100 protected:
105 // NotificationObserver method: 101 // NotificationObserver method:
106 virtual void Observe(int type, 102 virtual void Observe(int type,
107 const NotificationSource& source, 103 const NotificationSource& source,
108 const NotificationDetails& details) OVERRIDE; 104 const NotificationDetails& details) OVERRIDE;
109 105
110 // WebContentsObserver implementation: 106 // WebContentsObserver implementation:
111 virtual bool OnMessageReceived(const IPC::Message& message, 107 virtual bool OnMessageReceived(const IPC::Message& message,
112 RenderFrameHost* render_frame_host) OVERRIDE; 108 RenderFrameHost* render_frame_host) OVERRIDE;
113 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE; 109 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE;
114 virtual void WebContentsDestroyed(WebContents* web_contents) OVERRIDE; 110 virtual void WebContentsDestroyed() OVERRIDE;
115 virtual void NavigationEntryCommitted( 111 virtual void NavigationEntryCommitted(
116 const LoadCommittedDetails& load_details) OVERRIDE; 112 const LoadCommittedDetails& load_details) OVERRIDE;
117 113
118 // RenderFrameHostDelegate implementation: 114 // RenderFrameHostDelegate implementation:
119 virtual bool OnMessageReceived(RenderFrameHost* render_frame_host, 115 virtual bool OnMessageReceived(RenderFrameHost* render_frame_host,
120 const IPC::Message& message) OVERRIDE; 116 const IPC::Message& message) OVERRIDE;
121 virtual void RenderFrameCreated(RenderFrameHost* render_frame_host) OVERRIDE; 117 virtual void RenderFrameCreated(RenderFrameHost* render_frame_host) OVERRIDE;
122 118
123 // RenderViewHostDelegate implementation: 119 // RenderViewHostDelegate implementation:
124 virtual RenderViewHostDelegateView* GetDelegateView() OVERRIDE; 120 virtual RenderViewHostDelegateView* GetDelegateView() OVERRIDE;
(...skipping 163 matching lines...) Expand 10 before | Expand all | Expand 10 after
288 base::WeakPtrFactory<InterstitialPageImpl> weak_ptr_factory_; 284 base::WeakPtrFactory<InterstitialPageImpl> weak_ptr_factory_;
289 285
290 scoped_refptr<SessionStorageNamespace> session_storage_namespace_; 286 scoped_refptr<SessionStorageNamespace> session_storage_namespace_;
291 287
292 DISALLOW_COPY_AND_ASSIGN(InterstitialPageImpl); 288 DISALLOW_COPY_AND_ASSIGN(InterstitialPageImpl);
293 }; 289 };
294 290
295 } // namespace content 291 } // namespace content
296 292
297 #endif // CONTENT_BROWSER_FRAME_HOST_INTERSTITIAL_PAGE_IMPL_H_ 293 #endif // CONTENT_BROWSER_FRAME_HOST_INTERSTITIAL_PAGE_IMPL_H_
OLDNEW
« no previous file with comments | « content/browser/browser_plugin/browser_plugin_guest.cc ('k') | content/browser/frame_host/interstitial_page_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698