OLD | NEW |
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_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 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <map> | 9 #include <map> |
10 #include <string> | 10 #include <string> |
(...skipping 380 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
391 ////////////////////////////////////////////////////////////////////////////// | 391 ////////////////////////////////////////////////////////////////////////////// |
392 | 392 |
393 // Set a token to use for a specified service. | 393 // Set a token to use for a specified service. |
394 void SetTokenForService(const std::string& service, | 394 void SetTokenForService(const std::string& service, |
395 const std::string& token); | 395 const std::string& token); |
396 | 396 |
397 // Remove all tokens stored in the web database. | 397 // Remove all tokens stored in the web database. |
398 void RemoveAllTokens(); | 398 void RemoveAllTokens(); |
399 | 399 |
400 // Null on failure. Success is WDResult<std::vector<std::string> > | 400 // Null on failure. Success is WDResult<std::vector<std::string> > |
401 Handle GetAllTokens(WebDataServiceConsumer* consumer); | 401 virtual Handle GetAllTokens(WebDataServiceConsumer* consumer); |
402 | 402 |
403 ////////////////////////////////////////////////////////////////////////////// | 403 ////////////////////////////////////////////////////////////////////////////// |
404 // | 404 // |
405 // Password manager | 405 // Password manager |
406 // NOTE: These methods are all deprecated; new clients should use | 406 // NOTE: These methods are all deprecated; new clients should use |
407 // PasswordStore. These are only still here because Windows is (temporarily) | 407 // PasswordStore. These are only still here because Windows is (temporarily) |
408 // still using them for its PasswordStore implementation. | 408 // still using them for its PasswordStore implementation. |
409 // | 409 // |
410 ////////////////////////////////////////////////////////////////////////////// | 410 ////////////////////////////////////////////////////////////////////////////// |
411 | 411 |
(...skipping 336 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
748 // result can be NULL, if no result is expected or if the database could | 748 // result can be NULL, if no result is expected or if the database could |
749 // not be opened. The result object is destroyed after this call. | 749 // not be opened. The result object is destroyed after this call. |
750 virtual void OnWebDataServiceRequestDone(WebDataService::Handle h, | 750 virtual void OnWebDataServiceRequestDone(WebDataService::Handle h, |
751 const WDTypedResult* result) = 0; | 751 const WDTypedResult* result) = 0; |
752 | 752 |
753 protected: | 753 protected: |
754 virtual ~WebDataServiceConsumer() {} | 754 virtual ~WebDataServiceConsumer() {} |
755 }; | 755 }; |
756 | 756 |
757 #endif // CHROME_BROWSER_WEBDATA_WEB_DATA_SERVICE_H__ | 757 #endif // CHROME_BROWSER_WEBDATA_WEB_DATA_SERVICE_H__ |
OLD | NEW |