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

Side by Side Diff: components/web_modal/web_contents_modal_dialog_manager.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 2012 The Chromium Authors. All rights reserved. 1 // Copyright 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 COMPONENTS_WEB_MODAL_WEB_CONTENTS_MODAL_DIALOG_MANAGER_H_ 5 #ifndef COMPONENTS_WEB_MODAL_WEB_CONTENTS_MODAL_DIALOG_MANAGER_H_
6 #define COMPONENTS_WEB_MODAL_WEB_CONTENTS_MODAL_DIALOG_MANAGER_H_ 6 #define COMPONENTS_WEB_MODAL_WEB_CONTENTS_MODAL_DIALOG_MANAGER_H_
7 7
8 #include <deque> 8 #include <deque>
9 9
10 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after
103 // Closes all WebContentsModalDialogs. 103 // Closes all WebContentsModalDialogs.
104 void CloseAllDialogs(); 104 void CloseAllDialogs();
105 105
106 // Overridden from content::WebContentsObserver: 106 // Overridden from content::WebContentsObserver:
107 virtual void DidNavigateMainFrame( 107 virtual void DidNavigateMainFrame(
108 const content::LoadCommittedDetails& details, 108 const content::LoadCommittedDetails& details,
109 const content::FrameNavigateParams& params) OVERRIDE; 109 const content::FrameNavigateParams& params) OVERRIDE;
110 virtual void DidGetIgnoredUIEvent() OVERRIDE; 110 virtual void DidGetIgnoredUIEvent() OVERRIDE;
111 virtual void WasShown() OVERRIDE; 111 virtual void WasShown() OVERRIDE;
112 virtual void WasHidden() OVERRIDE; 112 virtual void WasHidden() OVERRIDE;
113 virtual void WebContentsDestroyed(content::WebContents* tab) OVERRIDE; 113 virtual void WebContentsDestroyed() OVERRIDE;
114 virtual void DidAttachInterstitialPage() OVERRIDE; 114 virtual void DidAttachInterstitialPage() OVERRIDE;
115 115
116 // Delegate for notifying our owner about stuff. Not owned by us. 116 // Delegate for notifying our owner about stuff. Not owned by us.
117 WebContentsModalDialogManagerDelegate* delegate_; 117 WebContentsModalDialogManagerDelegate* delegate_;
118 118
119 // All active dialogs. 119 // All active dialogs.
120 WebContentsModalDialogList child_dialogs_; 120 WebContentsModalDialogList child_dialogs_;
121 121
122 // True while closing the dialogs on WebContents close. 122 // True while closing the dialogs on WebContents close.
123 bool closing_all_dialogs_; 123 bool closing_all_dialogs_;
124 124
125 DISALLOW_COPY_AND_ASSIGN(WebContentsModalDialogManager); 125 DISALLOW_COPY_AND_ASSIGN(WebContentsModalDialogManager);
126 }; 126 };
127 127
128 } // namespace web_modal 128 } // namespace web_modal
129 129
130 #endif // COMPONENTS_WEB_MODAL_WEB_CONTENTS_MODAL_DIALOG_MANAGER_H_ 130 #endif // COMPONENTS_WEB_MODAL_WEB_CONTENTS_MODAL_DIALOG_MANAGER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698