Index: chrome/browser/bookmarks/bookmark_model.h |
diff --git a/chrome/browser/bookmarks/bookmark_model.h b/chrome/browser/bookmarks/bookmark_model.h |
index 1f0cf7b793032ce4608c0791dac2461a908c834a..59fa96425f818203e970466b727d7406bcbdeae1 100644 |
--- a/chrome/browser/bookmarks/bookmark_model.h |
+++ b/chrome/browser/bookmarks/bookmark_model.h |
@@ -10,6 +10,7 @@ |
#include "base/basictypes.h" |
#include "base/compiler_specific.h" |
+#include "base/deferred_sequenced_task_runner.h" |
#include "base/memory/ref_counted.h" |
#include "base/memory/scoped_ptr.h" |
#include "base/observer_list.h" |
@@ -234,6 +235,10 @@ class BookmarkModel : public content::NotificationObserver, |
// Invoked prior to destruction to release any necessary resources. |
virtual void Shutdown() OVERRIDE; |
+ // Returns sequenced task runner where all bookmarks I/O operations are |
+ // performed. |
+ scoped_refptr<base::DeferredSequencedTaskRunner> GetBookmarkTaskRunner(); |
+ |
// Loads the bookmarks. This is called upon creation of the |
// BookmarkModel. You need not invoke this directly. |
void Load(); |
@@ -528,6 +533,8 @@ class BookmarkModel : public content::NotificationObserver, |
scoped_ptr<BookmarkExpandedStateTracker> expanded_state_tracker_; |
+ scoped_refptr<base::DeferredSequencedTaskRunner> bookmark_task_runner_; |
+ |
DISALLOW_COPY_AND_ASSIGN(BookmarkModel); |
}; |