| 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/history/in_memory_url_index.h" | 5 #include "chrome/browser/history/in_memory_url_index.h" |
| 6 | 6 |
| 7 #include "base/file_util.h" | 7 #include "base/file_util.h" |
| 8 #include "base/utf_string_conversions.h" | 8 #include "base/utf_string_conversions.h" |
| 9 #include "chrome/browser/api/bookmarks/bookmark_service.h" | 9 #include "chrome/browser/api/bookmarks/bookmark_service.h" |
| 10 #include "chrome/browser/bookmarks/bookmark_model.h" | 10 #include "chrome/browser/bookmarks/bookmark_model.h" |
| 11 #include "chrome/browser/bookmarks/bookmark_model_factory.h" | 11 #include "chrome/browser/bookmarks/bookmark_model_factory.h" |
| 12 #include "chrome/browser/common/url_database/url_database.h" |
| 12 #include "chrome/browser/history/history_notifications.h" | 13 #include "chrome/browser/history/history_notifications.h" |
| 13 #include "chrome/browser/history/history_service_factory.h" | 14 #include "chrome/browser/history/history_service_factory.h" |
| 14 #include "chrome/browser/history/url_database.h" | |
| 15 #include "chrome/browser/history/url_index_private_data.h" | 15 #include "chrome/browser/history/url_index_private_data.h" |
| 16 #include "chrome/browser/profiles/profile.h" | 16 #include "chrome/browser/profiles/profile.h" |
| 17 #include "chrome/common/chrome_notification_types.h" | 17 #include "chrome/common/chrome_notification_types.h" |
| 18 #include "chrome/common/url_constants.h" | 18 #include "chrome/common/url_constants.h" |
| 19 #include "content/public/browser/browser_thread.h" | 19 #include "content/public/browser/browser_thread.h" |
| 20 #include "content/public/browser/notification_details.h" | 20 #include "content/public/browser/notification_details.h" |
| 21 #include "content/public/browser/notification_service.h" | 21 #include "content/public/browser/notification_service.h" |
| 22 #include "content/public/browser/notification_source.h" | 22 #include "content/public/browser/notification_source.h" |
| 23 | 23 |
| 24 using in_memory_url_index::InMemoryURLIndexCacheItem; | 24 using in_memory_url_index::InMemoryURLIndexCacheItem; |
| (...skipping 307 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 332 } | 332 } |
| 333 } | 333 } |
| 334 | 334 |
| 335 void InMemoryURLIndex::OnCacheSaveDone( | 335 void InMemoryURLIndex::OnCacheSaveDone( |
| 336 scoped_refptr<RefCountedBool> succeeded) { | 336 scoped_refptr<RefCountedBool> succeeded) { |
| 337 if (save_cache_observer_) | 337 if (save_cache_observer_) |
| 338 save_cache_observer_->OnCacheSaveFinished(succeeded->value()); | 338 save_cache_observer_->OnCacheSaveFinished(succeeded->value()); |
| 339 } | 339 } |
| 340 | 340 |
| 341 } // namespace history | 341 } // namespace history |
| OLD | NEW |