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

Side by Side Diff: components/bookmarks/core/browser/bookmark_storage.h

Issue 277893002: Cleaned up includes and unused declarations in the bookmarks component. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 7 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 #ifndef COMPONENTS_BOOKMARKS_CORE_BROWSER_BOOKMARK_STORAGE_H_ 5 #ifndef COMPONENTS_BOOKMARKS_CORE_BROWSER_BOOKMARK_STORAGE_H_
6 #define COMPONENTS_BOOKMARKS_CORE_BROWSER_BOOKMARK_STORAGE_H_ 6 #define COMPONENTS_BOOKMARKS_CORE_BROWSER_BOOKMARK_STORAGE_H_
7 7
8 #include "base/files/file_path.h" 8 #include "base/files/file_path.h"
9 #include "base/files/important_file_writer.h" 9 #include "base/files/important_file_writer.h"
10 #include "base/memory/ref_counted.h" 10 #include "base/memory/ref_counted.h"
11 #include "base/memory/scoped_ptr.h" 11 #include "base/memory/scoped_ptr.h"
12 #include "components/bookmarks/core/browser/bookmark_node.h" 12 #include "components/bookmarks/core/browser/bookmark_node.h"
13 13
14 class BookmarkIndex; 14 class BookmarkIndex;
15 class BookmarkModel; 15 class BookmarkModel;
16 16
17 namespace base { 17 namespace base {
18 class SequencedTaskRunner; 18 class SequencedTaskRunner;
19 } 19 }
20 20
21 namespace content {
22 class BrowserContext;
blundell 2014/05/09 10:02:11 :)
23 }
24
25 // BookmarkLoadDetails is used by BookmarkStorage when loading bookmarks. 21 // BookmarkLoadDetails is used by BookmarkStorage when loading bookmarks.
26 // BookmarkModel creates a BookmarkLoadDetails and passes it (including 22 // BookmarkModel creates a BookmarkLoadDetails and passes it (including
27 // ownership) to BookmarkStorage. BookmarkStorage loads the bookmarks (and 23 // ownership) to BookmarkStorage. BookmarkStorage loads the bookmarks (and
28 // index) in the background thread, then calls back to the BookmarkModel (on 24 // index) in the background thread, then calls back to the BookmarkModel (on
29 // the main thread) when loading is done, passing ownership back to the 25 // the main thread) when loading is done, passing ownership back to the
30 // BookmarkModel. While loading BookmarkModel does not maintain references to 26 // BookmarkModel. While loading BookmarkModel does not maintain references to
31 // the contents of the BookmarkLoadDetails, this ensures we don't have any 27 // the contents of the BookmarkLoadDetails, this ensures we don't have any
32 // threading problems. 28 // threading problems.
33 class BookmarkLoadDetails { 29 class BookmarkLoadDetails {
34 public: 30 public:
(...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after
161 // See class description of BookmarkLoadDetails for details on this. 157 // See class description of BookmarkLoadDetails for details on this.
162 scoped_ptr<BookmarkLoadDetails> details_; 158 scoped_ptr<BookmarkLoadDetails> details_;
163 159
164 // Sequenced task runner where file I/O operations will be performed at. 160 // Sequenced task runner where file I/O operations will be performed at.
165 scoped_refptr<base::SequencedTaskRunner> sequenced_task_runner_; 161 scoped_refptr<base::SequencedTaskRunner> sequenced_task_runner_;
166 162
167 DISALLOW_COPY_AND_ASSIGN(BookmarkStorage); 163 DISALLOW_COPY_AND_ASSIGN(BookmarkStorage);
168 }; 164 };
169 165
170 #endif // COMPONENTS_BOOKMARKS_CORE_BROWSER_BOOKMARK_STORAGE_H_ 166 #endif // COMPONENTS_BOOKMARKS_CORE_BROWSER_BOOKMARK_STORAGE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698