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

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: Fix provider to service in comments. 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
« no previous file with comments | « chrome/browser/ui/browser.cc ('k') | chrome/browser/webdata/web_data_service.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 357 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 using the specified |service_url|.
379 // |consumer| must not be NULL.
380 Handle GetWebIntentServicesForURL(const string16& service_url,
381 WebDataServiceConsumer* consumer);
382
378 // Get all web intent services registered. |consumer| must not be NULL. 383 // Get all web intent services 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.
(...skipping 232 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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__
OLDNEW
« no previous file with comments | « chrome/browser/ui/browser.cc ('k') | chrome/browser/webdata/web_data_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698