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

Side by Side Diff: chrome/browser/webdata/web_data_service.h

Issue 8144013: Add a check to the registry before the intent infobar is shown. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: More updates 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
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_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 351 matching lines...) Expand 10 before | Expand all | Expand 10 after
362 void AddWebIntent(const WebIntentServiceData& service); 362 void AddWebIntent(const WebIntentServiceData& service);
363 363
364 // Removes a web intent provider registration. 364 // Removes a web intent provider registration.
365 void RemoveWebIntent(const WebIntentServiceData& service); 365 void RemoveWebIntent(const WebIntentServiceData& service);
366 366
367 // Get all web intent providers registered for the specified |action|. 367 // Get all web intent providers registered for the specified |action|.
368 // |consumer| must not be NULL. 368 // |consumer| must not be NULL.
369 Handle GetWebIntents(const string16& action, 369 Handle GetWebIntents(const string16& action,
370 WebDataServiceConsumer* consumer); 370 WebDataServiceConsumer* consumer);
371 371
372 // Get all web intent providers registered using the specified |service_url|.
James Hawkins 2011/10/29 21:41:32 nit: Document |consumer|.
Greg Billock 2011/10/31 17:07:09 Done.
373 Handle GetWebIntentsForURL(const string16& service_url,
374 WebDataServiceConsumer* consumer);
375
372 // Get all web intent providers registered. |consumer| must not be NULL. 376 // Get all web intent providers registered. |consumer| must not be NULL.
373 Handle GetAllWebIntents(WebDataServiceConsumer* consumer); 377 Handle GetAllWebIntents(WebDataServiceConsumer* consumer);
374 378
375 ////////////////////////////////////////////////////////////////////////////// 379 //////////////////////////////////////////////////////////////////////////////
376 // 380 //
377 // Token Service 381 // Token Service
378 // 382 //
379 ////////////////////////////////////////////////////////////////////////////// 383 //////////////////////////////////////////////////////////////////////////////
380 384
381 // Set a token to use for a specified service. 385 // Set a token to use for a specified service.
(...skipping 225 matching lines...) Expand 10 before | Expand all | Expand 10 after
607 void GetWebAppImagesImpl(GenericRequest<GURL>* request); 611 void GetWebAppImagesImpl(GenericRequest<GURL>* request);
608 612
609 ////////////////////////////////////////////////////////////////////////////// 613 //////////////////////////////////////////////////////////////////////////////
610 // 614 //
611 // Web Intents. 615 // Web Intents.
612 // 616 //
613 ////////////////////////////////////////////////////////////////////////////// 617 //////////////////////////////////////////////////////////////////////////////
614 void AddWebIntentImpl(GenericRequest<WebIntentServiceData>* request); 618 void AddWebIntentImpl(GenericRequest<WebIntentServiceData>* request);
615 void RemoveWebIntentImpl(GenericRequest<WebIntentServiceData>* request); 619 void RemoveWebIntentImpl(GenericRequest<WebIntentServiceData>* request);
616 void GetWebIntentsImpl(GenericRequest<string16>* request); 620 void GetWebIntentsImpl(GenericRequest<string16>* request);
621 void GetWebIntentsForURLImpl(GenericRequest<string16>* request);
617 void GetAllWebIntentsImpl(GenericRequest<std::string>* request); 622 void GetAllWebIntentsImpl(GenericRequest<std::string>* request);
618 623
619 ////////////////////////////////////////////////////////////////////////////// 624 //////////////////////////////////////////////////////////////////////////////
620 // 625 //
621 // Token Service. 626 // Token Service.
622 // 627 //
623 ////////////////////////////////////////////////////////////////////////////// 628 //////////////////////////////////////////////////////////////////////////////
624 629
625 void RemoveAllTokensImpl(GenericRequest<std::string>* request); 630 void RemoveAllTokensImpl(GenericRequest<std::string>* request);
626 void SetTokenForServiceImpl( 631 void SetTokenForServiceImpl(
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after
726 // result can be NULL, if no result is expected or if the database could 731 // result can be NULL, if no result is expected or if the database could
727 // not be opened. The result object is destroyed after this call. 732 // not be opened. The result object is destroyed after this call.
728 virtual void OnWebDataServiceRequestDone(WebDataService::Handle h, 733 virtual void OnWebDataServiceRequestDone(WebDataService::Handle h,
729 const WDTypedResult* result) = 0; 734 const WDTypedResult* result) = 0;
730 735
731 protected: 736 protected:
732 virtual ~WebDataServiceConsumer() {} 737 virtual ~WebDataServiceConsumer() {}
733 }; 738 };
734 739
735 #endif // CHROME_BROWSER_WEBDATA_WEB_DATA_SERVICE_H__ 740 #endif // CHROME_BROWSER_WEBDATA_WEB_DATA_SERVICE_H__
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698