| 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_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 28 matching lines...) Expand all Loading... |
| 39 virtual bool IsSyncable(); | 39 virtual bool IsSyncable(); |
| 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 SetWebIntent(const webkit_glue::WebIntentServiceData& service); | 43 bool SetWebIntent(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 GetWebIntents(const string16& action, | 46 bool GetWebIntents(const string16& action, |
| 47 std::vector<webkit_glue::WebIntentServiceData>* services); | 47 std::vector<webkit_glue::WebIntentServiceData>* services); |
| 48 | 48 |
| 49 // Retrieves all |services| from WebIntents table that match |service_url|. |
| 50 bool GetWebIntentsForURL( |
| 51 const string16& service_url, |
| 52 std::vector<webkit_glue::WebIntentServiceData>* services); |
| 53 |
| 49 // Retrieve all |services| from WebIntents table. | 54 // Retrieve all |services| from WebIntents table. |
| 50 bool GetAllWebIntents( | 55 bool GetAllWebIntents( |
| 51 std::vector<webkit_glue::WebIntentServiceData>* services); | 56 std::vector<webkit_glue::WebIntentServiceData>* services); |
| 52 | 57 |
| 53 // Removes |service| from WebIntents table - must match all parameters | 58 // Removes |service| from WebIntents table - must match all parameters |
| 54 // exactly. | 59 // exactly. |
| 55 bool RemoveWebIntent(const webkit_glue::WebIntentServiceData& service); | 60 bool RemoveWebIntent(const webkit_glue::WebIntentServiceData& service); |
| 56 | 61 |
| 57 private: | 62 private: |
| 58 DISALLOW_COPY_AND_ASSIGN(WebIntentsTable); | 63 DISALLOW_COPY_AND_ASSIGN(WebIntentsTable); |
| 59 }; | 64 }; |
| 60 | 65 |
| 61 #endif // CHROME_BROWSER_WEBDATA_WEB_INTENTS_TABLE_H_ | 66 #endif // CHROME_BROWSER_WEBDATA_WEB_INTENTS_TABLE_H_ |
| OLD | NEW |