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

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

Issue 307203002: Move BookmarkIndex into bookmarks namespace. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 6 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
« no previous file with comments | « components/bookmarks/browser/bookmark_model.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_BROWSER_BOOKMARK_STORAGE_H_ 5 #ifndef COMPONENTS_BOOKMARKS_BROWSER_BOOKMARK_STORAGE_H_
6 #define COMPONENTS_BOOKMARKS_BROWSER_BOOKMARK_STORAGE_H_ 6 #define COMPONENTS_BOOKMARKS_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/browser/bookmark_node.h" 12 #include "components/bookmarks/browser/bookmark_node.h"
13 13
14 class BookmarkIndex;
15 class BookmarkModel; 14 class BookmarkModel;
16 15
17 namespace base { 16 namespace base {
18 class SequencedTaskRunner; 17 class SequencedTaskRunner;
19 } 18 }
20 19
21 namespace bookmarks { 20 namespace bookmarks {
22 21
22 class BookmarkIndex;
23
23 // BookmarkLoadDetails is used by BookmarkStorage when loading bookmarks. 24 // BookmarkLoadDetails is used by BookmarkStorage when loading bookmarks.
24 // BookmarkModel creates a BookmarkLoadDetails and passes it (including 25 // BookmarkModel creates a BookmarkLoadDetails and passes it (including
25 // ownership) to BookmarkStorage. BookmarkStorage loads the bookmarks (and 26 // ownership) to BookmarkStorage. BookmarkStorage loads the bookmarks (and
26 // index) in the background thread, then calls back to the BookmarkModel (on 27 // index) in the background thread, then calls back to the BookmarkModel (on
27 // the main thread) when loading is done, passing ownership back to the 28 // the main thread) when loading is done, passing ownership back to the
28 // BookmarkModel. While loading BookmarkModel does not maintain references to 29 // BookmarkModel. While loading BookmarkModel does not maintain references to
29 // the contents of the BookmarkLoadDetails, this ensures we don't have any 30 // the contents of the BookmarkLoadDetails, this ensures we don't have any
30 // threading problems. 31 // threading problems.
31 class BookmarkLoadDetails { 32 class BookmarkLoadDetails {
32 public: 33 public:
(...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after
161 162
162 // Sequenced task runner where file I/O operations will be performed at. 163 // Sequenced task runner where file I/O operations will be performed at.
163 scoped_refptr<base::SequencedTaskRunner> sequenced_task_runner_; 164 scoped_refptr<base::SequencedTaskRunner> sequenced_task_runner_;
164 165
165 DISALLOW_COPY_AND_ASSIGN(BookmarkStorage); 166 DISALLOW_COPY_AND_ASSIGN(BookmarkStorage);
166 }; 167 };
167 168
168 } // namespace bookmarks 169 } // namespace bookmarks
169 170
170 #endif // COMPONENTS_BOOKMARKS_BROWSER_BOOKMARK_STORAGE_H_ 171 #endif // COMPONENTS_BOOKMARKS_BROWSER_BOOKMARK_STORAGE_H_
OLDNEW
« no previous file with comments | « components/bookmarks/browser/bookmark_model.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698