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

Side by Side Diff: chrome/browser/ui/autofill/tab_autofill_manager_delegate.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 (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 CHROME_BROWSER_UI_AUTOFILL_TAB_AUTOFILL_MANAGER_DELEGATE_H_ 5 #ifndef CHROME_BROWSER_UI_AUTOFILL_TAB_AUTOFILL_MANAGER_DELEGATE_H_
6 #define CHROME_BROWSER_UI_AUTOFILL_TAB_AUTOFILL_MANAGER_DELEGATE_H_ 6 #define CHROME_BROWSER_UI_AUTOFILL_TAB_AUTOFILL_MANAGER_DELEGATE_H_
7 7
8 #include "base/callback.h" 8 #include "base/callback.h"
9 #include "base/compiler_specific.h" 9 #include "base/compiler_specific.h"
10 #include "base/i18n/rtl.h" 10 #include "base/i18n/rtl.h"
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
63 const std::vector<base::string16>& labels) OVERRIDE; 63 const std::vector<base::string16>& labels) OVERRIDE;
64 virtual void HideAutofillPopup() OVERRIDE; 64 virtual void HideAutofillPopup() OVERRIDE;
65 virtual bool IsAutocompleteEnabled() OVERRIDE; 65 virtual bool IsAutocompleteEnabled() OVERRIDE;
66 virtual void DetectAccountCreationForms( 66 virtual void DetectAccountCreationForms(
67 const std::vector<autofill::FormStructure*>& forms) OVERRIDE; 67 const std::vector<autofill::FormStructure*>& forms) OVERRIDE;
68 virtual void DidFillOrPreviewField( 68 virtual void DidFillOrPreviewField(
69 const base::string16& autofilled_value, 69 const base::string16& autofilled_value,
70 const base::string16& profile_full_name) OVERRIDE; 70 const base::string16& profile_full_name) OVERRIDE;
71 71
72 // content::WebContentsObserver implementation. 72 // content::WebContentsObserver implementation.
73 virtual void WebContentsDestroyed( 73 virtual void WebContentsDestroyed() OVERRIDE;
74 content::WebContents* web_contents) OVERRIDE;
75 74
76 // Exposed for testing. 75 // Exposed for testing.
77 AutofillDialogController* GetDialogControllerForTesting() { 76 AutofillDialogController* GetDialogControllerForTesting() {
78 return dialog_controller_.get(); 77 return dialog_controller_.get();
79 } 78 }
80 void SetDialogControllerForTesting( 79 void SetDialogControllerForTesting(
81 const base::WeakPtr<AutofillDialogController>& dialog_controller) { 80 const base::WeakPtr<AutofillDialogController>& dialog_controller) {
82 dialog_controller_ = dialog_controller; 81 dialog_controller_ = dialog_controller;
83 } 82 }
84 83
85 private: 84 private:
86 explicit TabAutofillManagerDelegate(content::WebContents* web_contents); 85 explicit TabAutofillManagerDelegate(content::WebContents* web_contents);
87 friend class content::WebContentsUserData<TabAutofillManagerDelegate>; 86 friend class content::WebContentsUserData<TabAutofillManagerDelegate>;
88 87
89 content::WebContents* const web_contents_; 88 content::WebContents* const web_contents_;
90 base::WeakPtr<AutofillDialogController> dialog_controller_; 89 base::WeakPtr<AutofillDialogController> dialog_controller_;
91 base::WeakPtr<AutofillPopupControllerImpl> popup_controller_; 90 base::WeakPtr<AutofillPopupControllerImpl> popup_controller_;
92 91
93 DISALLOW_COPY_AND_ASSIGN(TabAutofillManagerDelegate); 92 DISALLOW_COPY_AND_ASSIGN(TabAutofillManagerDelegate);
94 }; 93 };
95 94
96 } // namespace autofill 95 } // namespace autofill
97 96
98 #endif // CHROME_BROWSER_UI_AUTOFILL_TAB_AUTOFILL_MANAGER_DELEGATE_H_ 97 #endif // CHROME_BROWSER_UI_AUTOFILL_TAB_AUTOFILL_MANAGER_DELEGATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698