| 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 // Chromium settings and storage represent user-selected preferences and | 5 // Chromium settings and storage represent user-selected preferences and |
| 6 // information and MUST not be extracted, overwritten or modified except | 6 // information and MUST not be extracted, overwritten or modified except |
| 7 // through Chromium defined APIs. | 7 // through Chromium defined APIs. |
| 8 | 8 |
| 9 #ifndef CHROME_BROWSER_WEBDATA_WEB_DATA_SERVICE_H__ | 9 #ifndef CHROME_BROWSER_WEBDATA_WEB_DATA_SERVICE_H__ |
| 10 #define CHROME_BROWSER_WEBDATA_WEB_DATA_SERVICE_H__ | 10 #define CHROME_BROWSER_WEBDATA_WEB_DATA_SERVICE_H__ |
| (...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 141 // Sets whether all the images have been downloaded for the specified web app. | 141 // Sets whether all the images have been downloaded for the specified web app. |
| 142 void SetWebAppHasAllImages(const GURL& app_url, bool has_all_images); | 142 void SetWebAppHasAllImages(const GURL& app_url, bool has_all_images); |
| 143 | 143 |
| 144 // Removes all images for the specified web app. | 144 // Removes all images for the specified web app. |
| 145 void RemoveWebApp(const GURL& app_url); | 145 void RemoveWebApp(const GURL& app_url); |
| 146 | 146 |
| 147 // Fetches the images and whether all images have been downloaded for the | 147 // Fetches the images and whether all images have been downloaded for the |
| 148 // specified web app. | 148 // specified web app. |
| 149 Handle GetWebAppImages(const GURL& app_url, WebDataServiceConsumer* consumer); | 149 Handle GetWebAppImages(const GURL& app_url, WebDataServiceConsumer* consumer); |
| 150 | 150 |
| 151 #if defined(ENABLE_WEB_INTENTS) | |
| 152 ////////////////////////////////////////////////////////////////////////////// | |
| 153 // | |
| 154 // Web Intents | |
| 155 // | |
| 156 ////////////////////////////////////////////////////////////////////////////// | |
| 157 | |
| 158 // Adds a web intent service registration. | |
| 159 void AddWebIntentService(const webkit_glue::WebIntentServiceData& service); | |
| 160 | |
| 161 // Removes a web intent service registration. | |
| 162 void RemoveWebIntentService(const webkit_glue::WebIntentServiceData& service); | |
| 163 | |
| 164 // Get all web intent services registered for the specified |action|. | |
| 165 // |consumer| must not be NULL. | |
| 166 Handle GetWebIntentServicesForAction(const string16& action, | |
| 167 WebDataServiceConsumer* consumer); | |
| 168 | |
| 169 // Get all web intent services registered using the specified |service_url|. | |
| 170 // |consumer| must not be NULL. | |
| 171 Handle GetWebIntentServicesForURL(const string16& service_url, | |
| 172 WebDataServiceConsumer* consumer); | |
| 173 | |
| 174 // Get all web intent services registered. |consumer| must not be NULL. | |
| 175 Handle GetAllWebIntentServices(WebDataServiceConsumer* consumer); | |
| 176 | |
| 177 // Adds a default web intent service entry. | |
| 178 void AddDefaultWebIntentService(const DefaultWebIntentService& service); | |
| 179 | |
| 180 // Removes a default web intent service entry. Removes entries matching | |
| 181 // the |action|, |type|, and |url_pattern| of |service|. | |
| 182 void RemoveDefaultWebIntentService(const DefaultWebIntentService& service); | |
| 183 | |
| 184 // Removes all default web intent service entries associated with | |
| 185 // |service_url| | |
| 186 void RemoveWebIntentServiceDefaults(const GURL& service_url); | |
| 187 | |
| 188 // Get a list of all web intent service defaults for the given |action|. | |
| 189 // |consumer| must not be null. | |
| 190 Handle GetDefaultWebIntentServicesForAction(const string16& action, | |
| 191 WebDataServiceConsumer* consumer); | |
| 192 | |
| 193 // Get a list of all registered web intent service defaults. | |
| 194 // |consumer| must not be null. | |
| 195 Handle GetAllDefaultWebIntentServices(WebDataServiceConsumer* consumer); | |
| 196 #endif | |
| 197 | |
| 198 #if defined(OS_WIN) | 151 #if defined(OS_WIN) |
| 199 ////////////////////////////////////////////////////////////////////////////// | 152 ////////////////////////////////////////////////////////////////////////////// |
| 200 // | 153 // |
| 201 // IE7/8 Password Access (used by PasswordStoreWin - do not use elsewhere) | 154 // IE7/8 Password Access (used by PasswordStoreWin - do not use elsewhere) |
| 202 // | 155 // |
| 203 ////////////////////////////////////////////////////////////////////////////// | 156 ////////////////////////////////////////////////////////////////////////////// |
| 204 | 157 |
| 205 // Adds |info| to the list of imported passwords from ie7/ie8. | 158 // Adds |info| to the list of imported passwords from ie7/ie8. |
| 206 void AddIE7Login(const IE7PasswordInfo& info); | 159 void AddIE7Login(const IE7PasswordInfo& info); |
| 207 | 160 |
| (...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 295 WebDatabase::State RemoveIE7LoginImpl( | 248 WebDatabase::State RemoveIE7LoginImpl( |
| 296 const IE7PasswordInfo& info, WebDatabase* db); | 249 const IE7PasswordInfo& info, WebDatabase* db); |
| 297 scoped_ptr<WDTypedResult> GetIE7LoginImpl( | 250 scoped_ptr<WDTypedResult> GetIE7LoginImpl( |
| 298 const IE7PasswordInfo& info, WebDatabase* db); | 251 const IE7PasswordInfo& info, WebDatabase* db); |
| 299 #endif // defined(OS_WIN) | 252 #endif // defined(OS_WIN) |
| 300 | 253 |
| 301 DISALLOW_COPY_AND_ASSIGN(WebDataService); | 254 DISALLOW_COPY_AND_ASSIGN(WebDataService); |
| 302 }; | 255 }; |
| 303 | 256 |
| 304 #endif // CHROME_BROWSER_WEBDATA_WEB_DATA_SERVICE_H__ | 257 #endif // CHROME_BROWSER_WEBDATA_WEB_DATA_SERVICE_H__ |
| OLD | NEW |