OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 | 7 |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
98 bool GetAllDefaultServices( | 98 bool GetAllDefaultServices( |
99 std::vector<DefaultWebIntentService>* default_services); | 99 std::vector<DefaultWebIntentService>* default_services); |
100 | 100 |
101 // Set a default service to be used on given intent invocations. | 101 // Set a default service to be used on given intent invocations. |
102 bool SetDefaultService(const DefaultWebIntentService& default_service); | 102 bool SetDefaultService(const DefaultWebIntentService& default_service); |
103 | 103 |
104 // Removes a default |service| from table - must match the action, type, | 104 // Removes a default |service| from table - must match the action, type, |
105 // and url_pattern parameters exactly. | 105 // and url_pattern parameters exactly. |
106 bool RemoveDefaultService(const DefaultWebIntentService& default_service); | 106 bool RemoveDefaultService(const DefaultWebIntentService& default_service); |
107 | 107 |
| 108 // Removes all default services associated with |service_url|. |
| 109 bool RemoveServiceDefaults(const GURL& service_url); |
| 110 |
108 private: | 111 private: |
109 DISALLOW_COPY_AND_ASSIGN(WebIntentsTable); | 112 DISALLOW_COPY_AND_ASSIGN(WebIntentsTable); |
110 }; | 113 }; |
111 | 114 |
112 #endif // CHROME_BROWSER_WEBDATA_WEB_INTENTS_TABLE_H_ | 115 #endif // CHROME_BROWSER_WEBDATA_WEB_INTENTS_TABLE_H_ |
OLD | NEW |