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

Side by Side Diff: chrome/browser/prerender/prerender_tab_helper.h

Issue 23742004: Move PasswordForm from //content to //autofill. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@move_password_form_conversion_utils
Patch Set: Rebase Created 7 years, 3 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_PRERENDER_PRERENDER_TAB_HELPER_H_ 5 #ifndef CHROME_BROWSER_PRERENDER_PRERENDER_TAB_HELPER_H_
6 #define CHROME_BROWSER_PRERENDER_PRERENDER_TAB_HELPER_H_ 6 #define CHROME_BROWSER_PRERENDER_PRERENDER_TAB_HELPER_H_
7 7
8 #include "base/memory/scoped_ptr.h" 8 #include "base/memory/scoped_ptr.h"
9 #include "base/memory/weak_ptr.h" 9 #include "base/memory/weak_ptr.h"
10 #include "base/time/time.h" 10 #include "base/time/time.h"
11 #include "content/public/browser/web_contents_observer.h" 11 #include "content/public/browser/web_contents_observer.h"
12 #include "content/public/browser/web_contents_user_data.h" 12 #include "content/public/browser/web_contents_user_data.h"
13 #include "url/gurl.h" 13 #include "url/gurl.h"
14 14
15 class PasswordManager; 15 class PasswordManager;
16 16
17 namespace content { 17 namespace autofill {
18 struct PasswordForm; 18 struct PasswordForm;
19 } 19 }
20 20
21 namespace predictors { 21 namespace predictors {
22 class LoggedInPredictorTable; 22 class LoggedInPredictorTable;
23 } 23 }
24 24
25 namespace prerender { 25 namespace prerender {
26 26
27 class PrerenderManager; 27 class PrerenderManager;
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
65 bool is_iframe_srcdoc, 65 bool is_iframe_srcdoc,
66 content::RenderViewHost* render_view_host) OVERRIDE; 66 content::RenderViewHost* render_view_host) OVERRIDE;
67 virtual void DidCommitProvisionalLoadForFrame( 67 virtual void DidCommitProvisionalLoadForFrame(
68 int64 frame_id, 68 int64 frame_id,
69 bool is_main_frame, 69 bool is_main_frame,
70 const GURL& validated_url, 70 const GURL& validated_url,
71 content::PageTransition transition_type, 71 content::PageTransition transition_type,
72 content::RenderViewHost* render_view_host) OVERRIDE; 72 content::RenderViewHost* render_view_host) OVERRIDE;
73 73
74 // Called when a password form has been submitted. 74 // Called when a password form has been submitted.
75 void PasswordSubmitted(const content::PasswordForm& form); 75 void PasswordSubmitted(const autofill::PasswordForm& form);
76 76
77 // Called when this prerendered WebContents has just been swapped in. 77 // Called when this prerendered WebContents has just been swapped in.
78 void PrerenderSwappedIn(); 78 void PrerenderSwappedIn();
79 79
80 private: 80 private:
81 PrerenderTabHelper(content::WebContents* web_contents, 81 PrerenderTabHelper(content::WebContents* web_contents,
82 PasswordManager* password_manager); 82 PasswordManager* password_manager);
83 friend class content::WebContentsUserData<PrerenderTabHelper>; 83 friend class content::WebContentsUserData<PrerenderTabHelper>;
84 84
85 void RecordEvent(Event event) const; 85 void RecordEvent(Event event) const;
(...skipping 28 matching lines...) Expand all
114 GURL url_; 114 GURL url_;
115 115
116 base::WeakPtrFactory<PrerenderTabHelper> weak_factory_; 116 base::WeakPtrFactory<PrerenderTabHelper> weak_factory_;
117 117
118 DISALLOW_COPY_AND_ASSIGN(PrerenderTabHelper); 118 DISALLOW_COPY_AND_ASSIGN(PrerenderTabHelper);
119 }; 119 };
120 120
121 } // namespace prerender 121 } // namespace prerender
122 122
123 #endif // CHROME_BROWSER_PRERENDER_PRERENDER_TAB_HELPER_H_ 123 #endif // CHROME_BROWSER_PRERENDER_PRERENDER_TAB_HELPER_H_
OLDNEW
« no previous file with comments | « chrome/browser/password_manager/test_password_store.cc ('k') | chrome/browser/prerender/prerender_tab_helper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698