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 357 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
368 void AddWebIntentService(const webkit_glue::WebIntentServiceData& service); | 368 void AddWebIntentService(const webkit_glue::WebIntentServiceData& service); |
369 | 369 |
370 // Removes a web intent service registration. | 370 // Removes a web intent service registration. |
371 void RemoveWebIntentService(const webkit_glue::WebIntentServiceData& service); | 371 void RemoveWebIntentService(const webkit_glue::WebIntentServiceData& service); |
372 | 372 |
373 // Get all web intent services registered for the specified |action|. | 373 // Get all web intent services registered for the specified |action|. |
374 // |consumer| must not be NULL. | 374 // |consumer| must not be NULL. |
375 Handle GetWebIntentServices(const string16& action, | 375 Handle GetWebIntentServices(const string16& action, |
376 WebDataServiceConsumer* consumer); | 376 WebDataServiceConsumer* consumer); |
377 | 377 |
378 // Get all web intent services registered. |consumer| must not be NULL. | 378 // Get all web intent providers registered using the specified |service_url|. |
James Hawkins
2011/11/10 00:48:49
Why are we using "providers" now? The API uses "s
Greg Billock
2011/11/10 17:59:41
Fixed. Thanks. I had imperfectly merged this.
| |
379 // |consumer| must not be NULL. | |
380 Handle GetWebIntentServicesForURL(const string16& service_url, | |
381 WebDataServiceConsumer* consumer); | |
382 | |
383 // Get all web intent providers registered. |consumer| must not be NULL. | |
379 Handle GetAllWebIntentServices(WebDataServiceConsumer* consumer); | 384 Handle GetAllWebIntentServices(WebDataServiceConsumer* consumer); |
380 | 385 |
381 ////////////////////////////////////////////////////////////////////////////// | 386 ////////////////////////////////////////////////////////////////////////////// |
382 // | 387 // |
383 // Token Service | 388 // Token Service |
384 // | 389 // |
385 ////////////////////////////////////////////////////////////////////////////// | 390 ////////////////////////////////////////////////////////////////////////////// |
386 | 391 |
387 // Set a token to use for a specified service. | 392 // Set a token to use for a specified service. |
388 void SetTokenForService(const std::string& service, | 393 void SetTokenForService(const std::string& service, |
(...skipping 231 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
620 ////////////////////////////////////////////////////////////////////////////// | 625 ////////////////////////////////////////////////////////////////////////////// |
621 // | 626 // |
622 // Web Intents. | 627 // Web Intents. |
623 // | 628 // |
624 ////////////////////////////////////////////////////////////////////////////// | 629 ////////////////////////////////////////////////////////////////////////////// |
625 void AddWebIntentServiceImpl( | 630 void AddWebIntentServiceImpl( |
626 GenericRequest<webkit_glue::WebIntentServiceData>* request); | 631 GenericRequest<webkit_glue::WebIntentServiceData>* request); |
627 void RemoveWebIntentServiceImpl( | 632 void RemoveWebIntentServiceImpl( |
628 GenericRequest<webkit_glue::WebIntentServiceData>* request); | 633 GenericRequest<webkit_glue::WebIntentServiceData>* request); |
629 void GetWebIntentServicesImpl(GenericRequest<string16>* request); | 634 void GetWebIntentServicesImpl(GenericRequest<string16>* request); |
635 void GetWebIntentServicesForURLImpl(GenericRequest<string16>* request); | |
630 void GetAllWebIntentServicesImpl(GenericRequest<std::string>* request); | 636 void GetAllWebIntentServicesImpl(GenericRequest<std::string>* request); |
631 | 637 |
632 ////////////////////////////////////////////////////////////////////////////// | 638 ////////////////////////////////////////////////////////////////////////////// |
633 // | 639 // |
634 // Token Service. | 640 // Token Service. |
635 // | 641 // |
636 ////////////////////////////////////////////////////////////////////////////// | 642 ////////////////////////////////////////////////////////////////////////////// |
637 | 643 |
638 void RemoveAllTokensImpl(GenericRequest<std::string>* request); | 644 void RemoveAllTokensImpl(GenericRequest<std::string>* request); |
639 void SetTokenForServiceImpl( | 645 void SetTokenForServiceImpl( |
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
740 // result can be NULL, if no result is expected or if the database could | 746 // result can be NULL, if no result is expected or if the database could |
741 // not be opened. The result object is destroyed after this call. | 747 // not be opened. The result object is destroyed after this call. |
742 virtual void OnWebDataServiceRequestDone(WebDataService::Handle h, | 748 virtual void OnWebDataServiceRequestDone(WebDataService::Handle h, |
743 const WDTypedResult* result) = 0; | 749 const WDTypedResult* result) = 0; |
744 | 750 |
745 protected: | 751 protected: |
746 virtual ~WebDataServiceConsumer() {} | 752 virtual ~WebDataServiceConsumer() {} |
747 }; | 753 }; |
748 | 754 |
749 #endif // CHROME_BROWSER_WEBDATA_WEB_DATA_SERVICE_H__ | 755 #endif // CHROME_BROWSER_WEBDATA_WEB_DATA_SERVICE_H__ |
OLD | NEW |