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

Side by Side Diff: chrome/browser/autofill/autofill_manager.h

Issue 8469015: Switch BackgroundContents to use TabContents instead of RenderViewHost. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: fix unittest Created 9 years, 1 month 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | chrome/browser/autofill/autofill_manager.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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_AUTOFILL_AUTOFILL_MANAGER_H_ 5 #ifndef CHROME_BROWSER_AUTOFILL_AUTOFILL_MANAGER_H_
6 #define CHROME_BROWSER_AUTOFILL_AUTOFILL_MANAGER_H_ 6 #define CHROME_BROWSER_AUTOFILL_AUTOFILL_MANAGER_H_
7 #pragma once 7 #pragma once
8 8
9 #include <list> 9 #include <list>
10 #include <map> 10 #include <map>
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after
122 } 122 }
123 123
124 // Processes the submitted |form|, saving any new Autofill data and uploading 124 // Processes the submitted |form|, saving any new Autofill data and uploading
125 // the possible field types for the submitted fields to the crowdsouring 125 // the possible field types for the submitted fields to the crowdsouring
126 // server. Returns false if this form is not relevant for Autofill. 126 // server. Returns false if this form is not relevant for Autofill.
127 bool OnFormSubmitted(const webkit_glue::FormData& form, 127 bool OnFormSubmitted(const webkit_glue::FormData& form,
128 const base::TimeTicks& timestamp); 128 const base::TimeTicks& timestamp);
129 129
130 private: 130 private:
131 // TabContentsObserver: 131 // TabContentsObserver:
132 virtual void DidNavigateMainFramePostCommit( 132 virtual void DidNavigateMainFrame(
133 const content::LoadCommittedDetails& details, 133 const content::LoadCommittedDetails& details,
134 const ViewHostMsg_FrameNavigate_Params& params) OVERRIDE; 134 const ViewHostMsg_FrameNavigate_Params& params) OVERRIDE;
135 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE; 135 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE;
136 136
137 // AutofillDownloadManager::Observer: 137 // AutofillDownloadManager::Observer:
138 virtual void OnLoadedServerPredictions( 138 virtual void OnLoadedServerPredictions(
139 const std::string& response_xml) OVERRIDE; 139 const std::string& response_xml) OVERRIDE;
140 140
141 void OnFormsSeen(const std::vector<webkit_glue::FormData>& forms, 141 void OnFormsSeen(const std::vector<webkit_glue::FormData>& forms,
142 const base::TimeTicks& timestamp); 142 const base::TimeTicks& timestamp);
(...skipping 179 matching lines...) Expand 10 before | Expand all | Expand 10 after
322 TestTabContentsWithExternalDelegate); 322 TestTabContentsWithExternalDelegate);
323 FRIEND_TEST_ALL_PREFIXES(AutofillMetricsTest, 323 FRIEND_TEST_ALL_PREFIXES(AutofillMetricsTest,
324 UserHappinessFormLoadAndSubmission); 324 UserHappinessFormLoadAndSubmission);
325 FRIEND_TEST_ALL_PREFIXES(AutofillMetricsTest, UserHappinessFormInteraction); 325 FRIEND_TEST_ALL_PREFIXES(AutofillMetricsTest, UserHappinessFormInteraction);
326 FRIEND_TEST_ALL_PREFIXES(AutofillMetricsTest, FormFillDuration); 326 FRIEND_TEST_ALL_PREFIXES(AutofillMetricsTest, FormFillDuration);
327 327
328 DISALLOW_COPY_AND_ASSIGN(AutofillManager); 328 DISALLOW_COPY_AND_ASSIGN(AutofillManager);
329 }; 329 };
330 330
331 #endif // CHROME_BROWSER_AUTOFILL_AUTOFILL_MANAGER_H_ 331 #endif // CHROME_BROWSER_AUTOFILL_AUTOFILL_MANAGER_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/autofill/autofill_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698