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

Side by Side Diff: chrome/browser/webdata/web_intents_table.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
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_INTENTS_TABLE_H_ 5 #ifndef CHROME_BROWSER_WEBDATA_WEB_INTENTS_TABLE_H_
6 #define CHROME_BROWSER_WEBDATA_WEB_INTENTS_TABLE_H_ 6 #define CHROME_BROWSER_WEBDATA_WEB_INTENTS_TABLE_H_
7 #pragma once 7 #pragma once
8 8
9 #include <vector> 9 #include <vector>
10 10
(...skipping 29 matching lines...) Expand all
40 40
41 // Adds a web intent service to the WebIntents table. 41 // Adds a web intent service to the WebIntents table.
42 // If |service| already exists, replaces it. 42 // If |service| already exists, replaces it.
43 bool SetWebIntentService(const webkit_glue::WebIntentServiceData& service); 43 bool SetWebIntentService(const webkit_glue::WebIntentServiceData& service);
44 44
45 // Retrieve all |services| from WebIntents table that match |action|. 45 // Retrieve all |services| from WebIntents table that match |action|.
46 bool GetWebIntentServices( 46 bool GetWebIntentServices(
47 const string16& action, 47 const string16& action,
48 std::vector<webkit_glue::WebIntentServiceData>* services); 48 std::vector<webkit_glue::WebIntentServiceData>* services);
49 49
50 // Retrieves all |services| from WebIntents table that match |service_url|.
51 bool GetWebIntentServicesForURL(
52 const string16& service_url,
53 std::vector<webkit_glue::WebIntentServiceData>* services);
54
50 // Retrieve all |services| from WebIntents table. 55 // Retrieve all |services| from WebIntents table.
51 bool GetAllWebIntentServices( 56 bool GetAllWebIntentServices(
52 std::vector<webkit_glue::WebIntentServiceData>* services); 57 std::vector<webkit_glue::WebIntentServiceData>* services);
53 58
54 // Removes |service| from WebIntents table - must match all parameters 59 // Removes |service| from WebIntents table - must match all parameters
55 // exactly. 60 // exactly.
56 bool RemoveWebIntentService(const webkit_glue::WebIntentServiceData& service); 61 bool RemoveWebIntentService(const webkit_glue::WebIntentServiceData& service);
57 62
58 private: 63 private:
59 DISALLOW_COPY_AND_ASSIGN(WebIntentsTable); 64 DISALLOW_COPY_AND_ASSIGN(WebIntentsTable);
60 }; 65 };
61 66
62 #endif // CHROME_BROWSER_WEBDATA_WEB_INTENTS_TABLE_H_ 67 #endif // CHROME_BROWSER_WEBDATA_WEB_INTENTS_TABLE_H_
OLDNEW
« no previous file with comments | « chrome/browser/webdata/web_data_service_unittest.cc ('k') | chrome/browser/webdata/web_intents_table.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698