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

Side by Side Diff: components/autofill/content/renderer/password_autofill_agent.h

Issue 1371673002: Remove a bunch of provisionalDataSource() usage. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 2 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 COMPONENTS_AUTOFILL_CONTENT_RENDERER_PASSWORD_AUTOFILL_AGENT_H_ 5 #ifndef COMPONENTS_AUTOFILL_CONTENT_RENDERER_PASSWORD_AUTOFILL_AGENT_H_
6 #define COMPONENTS_AUTOFILL_CONTENT_RENDERER_PASSWORD_AUTOFILL_AGENT_H_ 6 #define COMPONENTS_AUTOFILL_CONTENT_RENDERER_PASSWORD_AUTOFILL_AGENT_H_
7 7
8 #include <map> 8 #include <map>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after
145 class LegacyPasswordAutofillAgent : public content::RenderViewObserver { 145 class LegacyPasswordAutofillAgent : public content::RenderViewObserver {
146 public: 146 public:
147 LegacyPasswordAutofillAgent(content::RenderView* render_view, 147 LegacyPasswordAutofillAgent(content::RenderView* render_view,
148 PasswordAutofillAgent* agent); 148 PasswordAutofillAgent* agent);
149 ~LegacyPasswordAutofillAgent() override; 149 ~LegacyPasswordAutofillAgent() override;
150 150
151 // RenderViewObserver: 151 // RenderViewObserver:
152 void OnDestruct() override; 152 void OnDestruct() override;
153 void DidStartLoading() override; 153 void DidStartLoading() override;
154 void DidStopLoading() override; 154 void DidStopLoading() override;
155 void DidStartProvisionalLoad(blink::WebLocalFrame* frame) override;
156 155
157 private: 156 private:
158 PasswordAutofillAgent* agent_; 157 PasswordAutofillAgent* agent_;
159 158
160 DISALLOW_COPY_AND_ASSIGN(LegacyPasswordAutofillAgent); 159 DISALLOW_COPY_AND_ASSIGN(LegacyPasswordAutofillAgent);
161 }; 160 };
162 friend class LegacyPasswordAutofillAgent; 161 friend class LegacyPasswordAutofillAgent;
163 162
164 // RenderFrameObserver: 163 // RenderFrameObserver:
165 bool OnMessageReceived(const IPC::Message& message) override; 164 bool OnMessageReceived(const IPC::Message& message) override;
166 void DidFinishDocumentLoad() override; 165 void DidFinishDocumentLoad() override;
167 void DidFinishLoad() override; 166 void DidFinishLoad() override;
168 void FrameDetached() override; 167 void FrameDetached() override;
169 void FrameWillClose() override; 168 void FrameWillClose() override;
169 void DidStartProvisionalLoad(blink::WebDataSource* datasource) override;
170 void DidCommitProvisionalLoad(bool is_new_navigation, 170 void DidCommitProvisionalLoad(bool is_new_navigation,
171 bool is_same_page_navigation) override; 171 bool is_same_page_navigation) override;
172 void WillSendSubmitEvent(const blink::WebFormElement& form) override; 172 void WillSendSubmitEvent(const blink::WebFormElement& form) override;
173 void WillSubmitForm(const blink::WebFormElement& form) override; 173 void WillSubmitForm(const blink::WebFormElement& form) override;
174 174
175 // Legacy RenderViewObserver: 175 // Legacy RenderViewObserver:
176 void DidStartLoading(); 176 void DidStartLoading();
177 void DidStopLoading(); 177 void DidStopLoading();
178 void LegacyDidStartProvisionalLoad(blink::WebLocalFrame* frame);
179 178
180 // RenderView IPC handlers: 179 // RenderView IPC handlers:
181 void OnFillPasswordForm(int key, const PasswordFormFillData& form_data); 180 void OnFillPasswordForm(int key, const PasswordFormFillData& form_data);
182 void OnSetLoggingState(bool active); 181 void OnSetLoggingState(bool active);
183 void OnAutofillUsernameAndPasswordDataReceived( 182 void OnAutofillUsernameAndPasswordDataReceived(
184 const FormsPredictionsMap& predictions); 183 const FormsPredictionsMap& predictions);
185 void OnFindFocusedPasswordForm(); 184 void OnFindFocusedPasswordForm();
186 185
187 // Scans the given frame for password forms and sends them up to the browser. 186 // Scans the given frame for password forms and sends them up to the browser.
188 // If |only_visible| is true, only forms visible in the layout are sent. 187 // If |only_visible| is true, only forms visible in the layout are sent.
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after
276 FormsPredictionsMap form_predictions_; 275 FormsPredictionsMap form_predictions_;
277 276
278 base::WeakPtrFactory<PasswordAutofillAgent> weak_ptr_factory_; 277 base::WeakPtrFactory<PasswordAutofillAgent> weak_ptr_factory_;
279 278
280 DISALLOW_COPY_AND_ASSIGN(PasswordAutofillAgent); 279 DISALLOW_COPY_AND_ASSIGN(PasswordAutofillAgent);
281 }; 280 };
282 281
283 } // namespace autofill 282 } // namespace autofill
284 283
285 #endif // COMPONENTS_AUTOFILL_CONTENT_RENDERER_PASSWORD_AUTOFILL_AGENT_H_ 284 #endif // COMPONENTS_AUTOFILL_CONTENT_RENDERER_PASSWORD_AUTOFILL_AGENT_H_
OLDNEW
« no previous file with comments | « chrome/renderer/net/net_error_helper.cc ('k') | components/autofill/content/renderer/password_autofill_agent.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698