OLD | NEW |
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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_WEBDATA_WEB_DATA_SERVICE_H__ | 5 #ifndef CHROME_BROWSER_WEBDATA_WEB_DATA_SERVICE_H__ |
6 #define CHROME_BROWSER_WEBDATA_WEB_DATA_SERVICE_H__ | 6 #define CHROME_BROWSER_WEBDATA_WEB_DATA_SERVICE_H__ |
7 | 7 |
8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
9 #include "base/lock.h" | 9 #include "base/lock.h" |
10 #include "base/message_loop.h" | 10 #include "base/message_loop.h" |
(...skipping 296 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
307 // Adds |info| to the list of imported passwords from ie7/ie8. | 307 // Adds |info| to the list of imported passwords from ie7/ie8. |
308 void AddIE7Login(const IE7PasswordInfo& info); | 308 void AddIE7Login(const IE7PasswordInfo& info); |
309 | 309 |
310 // Removes |form| from the list of remembered password forms. | 310 // Removes |form| from the list of remembered password forms. |
311 void RemoveLogin(const PasswordForm& form); | 311 void RemoveLogin(const PasswordForm& form); |
312 | 312 |
313 // Removes |info| from the list of imported passwords from ie7/ie8. | 313 // Removes |info| from the list of imported passwords from ie7/ie8. |
314 void RemoveIE7Login(const IE7PasswordInfo& info); | 314 void RemoveIE7Login(const IE7PasswordInfo& info); |
315 | 315 |
316 // Removes all logins created in the specified daterange | 316 // Removes all logins created in the specified daterange |
317 void RemoveLoginsCreatedBetween(const Time delete_begin, | 317 void RemoveLoginsCreatedBetween(const base::Time delete_begin, |
318 const Time delete_end); | 318 const base::Time delete_end); |
319 | 319 |
320 // Removes all logins created on or after the date passed in. | 320 // Removes all logins created on or after the date passed in. |
321 void RemoveLoginsCreatedAfter(const Time delete_begin); | 321 void RemoveLoginsCreatedAfter(const base::Time delete_begin); |
322 | 322 |
323 // Gets a list of password forms that match |form|. | 323 // Gets a list of password forms that match |form|. |
324 // |consumer| will be notified when the request is done. The result is of | 324 // |consumer| will be notified when the request is done. The result is of |
325 // type WDResult<std::vector<PasswordForm*>>. | 325 // type WDResult<std::vector<PasswordForm*>>. |
326 // The result will be null on failure. The |consumer| owns all PasswordForm's. | 326 // The result will be null on failure. The |consumer| owns all PasswordForm's. |
327 Handle GetLogins(const PasswordForm& form, WebDataServiceConsumer* consumer); | 327 Handle GetLogins(const PasswordForm& form, WebDataServiceConsumer* consumer); |
328 | 328 |
329 // Get the login matching the information in |info|. |consumer| will be | 329 // Get the login matching the information in |info|. |consumer| will be |
330 // notified when the request is done. The result is of type | 330 // notified when the request is done. The result is of type |
331 // WDResult<IE7PasswordInfo>. | 331 // WDResult<IE7PasswordInfo>. |
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
400 ////////////////////////////////////////////////////////////////////////////// | 400 ////////////////////////////////////////////////////////////////////////////// |
401 // | 401 // |
402 // Password manager. | 402 // Password manager. |
403 // | 403 // |
404 ////////////////////////////////////////////////////////////////////////////// | 404 ////////////////////////////////////////////////////////////////////////////// |
405 void AddLoginImpl(GenericRequest<PasswordForm>* request); | 405 void AddLoginImpl(GenericRequest<PasswordForm>* request); |
406 void AddIE7LoginImpl(GenericRequest<IE7PasswordInfo>* request); | 406 void AddIE7LoginImpl(GenericRequest<IE7PasswordInfo>* request); |
407 void UpdateLoginImpl(GenericRequest<PasswordForm>* request); | 407 void UpdateLoginImpl(GenericRequest<PasswordForm>* request); |
408 void RemoveLoginImpl(GenericRequest<PasswordForm>* request); | 408 void RemoveLoginImpl(GenericRequest<PasswordForm>* request); |
409 void RemoveIE7LoginImpl(GenericRequest<IE7PasswordInfo>* request); | 409 void RemoveIE7LoginImpl(GenericRequest<IE7PasswordInfo>* request); |
410 void RemoveLoginsCreatedBetweenImpl(GenericRequest2<Time, Time>* request); | 410 void RemoveLoginsCreatedBetweenImpl( |
| 411 GenericRequest2<base::Time, base::Time>* request); |
411 void GetLoginsImpl(GenericRequest<PasswordForm>* request); | 412 void GetLoginsImpl(GenericRequest<PasswordForm>* request); |
412 void GetIE7LoginImpl(GenericRequest<IE7PasswordInfo>* request); | 413 void GetIE7LoginImpl(GenericRequest<IE7PasswordInfo>* request); |
413 void GetAllAutofillableLoginsImpl(WebDataRequest* request); | 414 void GetAllAutofillableLoginsImpl(WebDataRequest* request); |
414 void GetAllLoginsImpl(WebDataRequest* request); | 415 void GetAllLoginsImpl(WebDataRequest* request); |
415 | 416 |
416 ////////////////////////////////////////////////////////////////////////////// | 417 ////////////////////////////////////////////////////////////////////////////// |
417 // | 418 // |
418 // Web Apps. | 419 // Web Apps. |
419 // | 420 // |
420 ////////////////////////////////////////////////////////////////////////////// | 421 ////////////////////////////////////////////////////////////////////////////// |
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
474 public: | 475 public: |
475 | 476 |
476 // Called when a request is done. h uniquely identifies the request. | 477 // Called when a request is done. h uniquely identifies the request. |
477 // result can be NULL, if no result is expected or if the database could | 478 // result can be NULL, if no result is expected or if the database could |
478 // not be opened. The result object is destroyed after this call. | 479 // not be opened. The result object is destroyed after this call. |
479 virtual void OnWebDataServiceRequestDone(WebDataService::Handle h, | 480 virtual void OnWebDataServiceRequestDone(WebDataService::Handle h, |
480 const WDTypedResult* result) = 0; | 481 const WDTypedResult* result) = 0; |
481 }; | 482 }; |
482 | 483 |
483 #endif // CHROME_BROWSER_WEBDATA_WEB_DATA_SERVICE_H__ | 484 #endif // CHROME_BROWSER_WEBDATA_WEB_DATA_SERVICE_H__ |
484 | |
OLD | NEW |