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 #include "chrome/browser/webdata/web_data_service.h" | 5 #include "chrome/browser/webdata/web_data_service.h" |
6 | 6 |
7 #include "base/bind.h" | 7 #include "base/bind.h" |
8 #include "base/stl_util.h" | 8 #include "base/stl_util.h" |
| 9 #include "chrome/browser/chrome_notification_types.h" |
9 #include "chrome/browser/search_engines/template_url.h" | 10 #include "chrome/browser/search_engines/template_url.h" |
10 #include "chrome/browser/webdata/keyword_table.h" | 11 #include "chrome/browser/webdata/keyword_table.h" |
11 #include "chrome/browser/webdata/logins_table.h" | 12 #include "chrome/browser/webdata/logins_table.h" |
12 #include "chrome/browser/webdata/token_service_table.h" | 13 #include "chrome/browser/webdata/token_service_table.h" |
13 #include "chrome/browser/webdata/web_apps_table.h" | 14 #include "chrome/browser/webdata/web_apps_table.h" |
14 #include "chrome/browser/webdata/web_intents_table.h" | 15 #include "chrome/browser/webdata/web_intents_table.h" |
15 #include "chrome/common/chrome_notification_types.h" | |
16 #include "components/webdata/common/web_database_service.h" | 16 #include "components/webdata/common/web_database_service.h" |
17 #include "content/public/browser/browser_thread.h" | 17 #include "content/public/browser/browser_thread.h" |
18 #include "content/public/browser/notification_details.h" | 18 #include "content/public/browser/notification_details.h" |
19 #include "content/public/browser/notification_service.h" | 19 #include "content/public/browser/notification_service.h" |
20 #include "content/public/browser/notification_source.h" | 20 #include "content/public/browser/notification_source.h" |
21 #include "third_party/skia/include/core/SkBitmap.h" | 21 #include "third_party/skia/include/core/SkBitmap.h" |
22 | 22 |
23 //////////////////////////////////////////////////////////////////////////////// | 23 //////////////////////////////////////////////////////////////////////////////// |
24 // | 24 // |
25 // WebDataService implementation. | 25 // WebDataService implementation. |
(...skipping 183 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
209 | 209 |
210 scoped_ptr<WDTypedResult> WebDataService::GetWebAppImagesImpl( | 210 scoped_ptr<WDTypedResult> WebDataService::GetWebAppImagesImpl( |
211 const GURL& app_url, WebDatabase* db) { | 211 const GURL& app_url, WebDatabase* db) { |
212 WDAppImagesResult result; | 212 WDAppImagesResult result; |
213 result.has_all_images = | 213 result.has_all_images = |
214 WebAppsTable::FromWebDatabase(db)->GetWebAppHasAllImages(app_url); | 214 WebAppsTable::FromWebDatabase(db)->GetWebAppHasAllImages(app_url); |
215 WebAppsTable::FromWebDatabase(db)->GetWebAppImages(app_url, &result.images); | 215 WebAppsTable::FromWebDatabase(db)->GetWebAppImages(app_url, &result.images); |
216 return scoped_ptr<WDTypedResult>( | 216 return scoped_ptr<WDTypedResult>( |
217 new WDResult<WDAppImagesResult>(WEB_APP_IMAGES, result)); | 217 new WDResult<WDAppImagesResult>(WEB_APP_IMAGES, result)); |
218 } | 218 } |
OLD | NEW |