| 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 11 matching lines...) Expand all Loading... |
| 22 class CreditCard; | 22 class CreditCard; |
| 23 class GURL; | 23 class GURL; |
| 24 #if defined(OS_WIN) | 24 #if defined(OS_WIN) |
| 25 struct IE7PasswordInfo; | 25 struct IE7PasswordInfo; |
| 26 #endif | 26 #endif |
| 27 class MessageLoop; | 27 class MessageLoop; |
| 28 class SkBitmap; | 28 class SkBitmap; |
| 29 class Task; | 29 class Task; |
| 30 class TemplateURL; | 30 class TemplateURL; |
| 31 class WebDatabase; | 31 class WebDatabase; |
| 32 struct WebIntentData; | 32 struct WebIntentServiceData; |
| 33 | 33 |
| 34 namespace base { | 34 namespace base { |
| 35 class Thread; | 35 class Thread; |
| 36 } | 36 } |
| 37 | 37 |
| 38 namespace webkit_glue { | 38 namespace webkit_glue { |
| 39 struct FormField; | 39 struct FormField; |
| 40 struct PasswordForm; | 40 struct PasswordForm; |
| 41 } | 41 } |
| 42 | 42 |
| (...skipping 300 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 343 // specified web app. | 343 // specified web app. |
| 344 Handle GetWebAppImages(const GURL& app_url, WebDataServiceConsumer* consumer); | 344 Handle GetWebAppImages(const GURL& app_url, WebDataServiceConsumer* consumer); |
| 345 | 345 |
| 346 ////////////////////////////////////////////////////////////////////////////// | 346 ////////////////////////////////////////////////////////////////////////////// |
| 347 // | 347 // |
| 348 // Web Intents | 348 // Web Intents |
| 349 // | 349 // |
| 350 ////////////////////////////////////////////////////////////////////////////// | 350 ////////////////////////////////////////////////////////////////////////////// |
| 351 | 351 |
| 352 // Adds a web intent provider registration. | 352 // Adds a web intent provider registration. |
| 353 void AddWebIntent(const WebIntentData& intent); | 353 void AddWebIntent(const WebIntentServiceData& service); |
| 354 | 354 |
| 355 // Removes a web intent provider registration. | 355 // Removes a web intent provider registration. |
| 356 void RemoveWebIntent(const WebIntentData& intent); | 356 void RemoveWebIntent(const WebIntentServiceData& service); |
| 357 | 357 |
| 358 // Get all web intent providers registered for the specified |action|. | 358 // Get all web intent providers registered for the specified |action|. |
| 359 // |consumer| must not be NULL. | 359 // |consumer| must not be NULL. |
| 360 Handle GetWebIntents(const string16& action, | 360 Handle GetWebIntents(const string16& action, |
| 361 WebDataServiceConsumer* consumer); | 361 WebDataServiceConsumer* consumer); |
| 362 | 362 |
| 363 // Get all web intent providers registered. |consumer| must not be NULL. | 363 // Get all web intent providers registered. |consumer| must not be NULL. |
| 364 Handle GetAllWebIntents(WebDataServiceConsumer* consumer); | 364 Handle GetAllWebIntents(WebDataServiceConsumer* consumer); |
| 365 | 365 |
| 366 ////////////////////////////////////////////////////////////////////////////// | 366 ////////////////////////////////////////////////////////////////////////////// |
| (...skipping 216 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 583 void SetWebAppImageImpl(GenericRequest2<GURL, SkBitmap>* request); | 583 void SetWebAppImageImpl(GenericRequest2<GURL, SkBitmap>* request); |
| 584 void SetWebAppHasAllImagesImpl(GenericRequest2<GURL, bool>* request); | 584 void SetWebAppHasAllImagesImpl(GenericRequest2<GURL, bool>* request); |
| 585 void RemoveWebAppImpl(GenericRequest<GURL>* request); | 585 void RemoveWebAppImpl(GenericRequest<GURL>* request); |
| 586 void GetWebAppImagesImpl(GenericRequest<GURL>* request); | 586 void GetWebAppImagesImpl(GenericRequest<GURL>* request); |
| 587 | 587 |
| 588 ////////////////////////////////////////////////////////////////////////////// | 588 ////////////////////////////////////////////////////////////////////////////// |
| 589 // | 589 // |
| 590 // Web Intents. | 590 // Web Intents. |
| 591 // | 591 // |
| 592 ////////////////////////////////////////////////////////////////////////////// | 592 ////////////////////////////////////////////////////////////////////////////// |
| 593 void AddWebIntentImpl(GenericRequest<WebIntentData>* request); | 593 void AddWebIntentImpl(GenericRequest<WebIntentServiceData>* request); |
| 594 void RemoveWebIntentImpl(GenericRequest<WebIntentData>* request); | 594 void RemoveWebIntentImpl(GenericRequest<WebIntentServiceData>* request); |
| 595 void GetWebIntentsImpl(GenericRequest<string16>* request); | 595 void GetWebIntentsImpl(GenericRequest<string16>* request); |
| 596 void GetAllWebIntentsImpl(GenericRequest<std::string>* request); | 596 void GetAllWebIntentsImpl(GenericRequest<std::string>* request); |
| 597 | 597 |
| 598 ////////////////////////////////////////////////////////////////////////////// | 598 ////////////////////////////////////////////////////////////////////////////// |
| 599 // | 599 // |
| 600 // Token Service. | 600 // Token Service. |
| 601 // | 601 // |
| 602 ////////////////////////////////////////////////////////////////////////////// | 602 ////////////////////////////////////////////////////////////////////////////// |
| 603 | 603 |
| 604 void RemoveAllTokensImpl(GenericRequest<std::string>* request); | 604 void RemoveAllTokensImpl(GenericRequest<std::string>* request); |
| (...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 697 // result can be NULL, if no result is expected or if the database could | 697 // result can be NULL, if no result is expected or if the database could |
| 698 // not be opened. The result object is destroyed after this call. | 698 // not be opened. The result object is destroyed after this call. |
| 699 virtual void OnWebDataServiceRequestDone(WebDataService::Handle h, | 699 virtual void OnWebDataServiceRequestDone(WebDataService::Handle h, |
| 700 const WDTypedResult* result) = 0; | 700 const WDTypedResult* result) = 0; |
| 701 | 701 |
| 702 protected: | 702 protected: |
| 703 virtual ~WebDataServiceConsumer() {} | 703 virtual ~WebDataServiceConsumer() {} |
| 704 }; | 704 }; |
| 705 | 705 |
| 706 #endif // CHROME_BROWSER_WEBDATA_WEB_DATA_SERVICE_H__ | 706 #endif // CHROME_BROWSER_WEBDATA_WEB_DATA_SERVICE_H__ |
| OLD | NEW |