Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(66)

Side by Side Diff: chrome/browser/history/expire_history_backend.cc

Issue 10868039: Promote BookmarkService to a public API. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: sync. Created 8 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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/expire_history_backend.h" 5 #include "chrome/browser/history/expire_history_backend.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <limits> 8 #include <limits>
9 9
10 #include "base/bind.h" 10 #include "base/bind.h"
11 #include "base/compiler_specific.h" 11 #include "base/compiler_specific.h"
12 #include "base/file_util.h" 12 #include "base/file_util.h"
13 #include "base/message_loop.h" 13 #include "base/message_loop.h"
14 #include "chrome/browser/bookmarks/bookmark_service.h" 14 #include "chrome/browser/api/bookmarks/bookmark_service.h"
15 #include "chrome/browser/history/archived_database.h" 15 #include "chrome/browser/history/archived_database.h"
16 #include "chrome/browser/history/history_database.h" 16 #include "chrome/browser/history/history_database.h"
17 #include "chrome/browser/history/history_notifications.h" 17 #include "chrome/browser/history/history_notifications.h"
18 #include "chrome/browser/history/text_database.h" 18 #include "chrome/browser/history/text_database.h"
19 #include "chrome/browser/history/text_database_manager.h" 19 #include "chrome/browser/history/text_database_manager.h"
20 #include "chrome/browser/history/thumbnail_database.h" 20 #include "chrome/browser/history/thumbnail_database.h"
21 #include "chrome/common/chrome_notification_types.h" 21 #include "chrome/common/chrome_notification_types.h"
22 22
23 using base::Time; 23 using base::Time;
24 using base::TimeDelta; 24 using base::TimeDelta;
(...skipping 690 matching lines...) Expand 10 before | Expand all | Expand 10 after
715 // We use the bookmark service to determine if a URL is bookmarked. The 715 // We use the bookmark service to determine if a URL is bookmarked. The
716 // bookmark service is loaded on a separate thread and may not be done by the 716 // bookmark service is loaded on a separate thread and may not be done by the
717 // time we get here. We therefor block until the bookmarks have finished 717 // time we get here. We therefor block until the bookmarks have finished
718 // loading. 718 // loading.
719 if (bookmark_service_) 719 if (bookmark_service_)
720 bookmark_service_->BlockTillLoaded(); 720 bookmark_service_->BlockTillLoaded();
721 return bookmark_service_; 721 return bookmark_service_;
722 } 722 }
723 723
724 } // namespace history 724 } // namespace history
OLDNEW
« no previous file with comments | « chrome/browser/history/android/bookmark_model_sql_handler.cc ('k') | chrome/browser/history/history_backend.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698