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/browser/bookmark_model.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
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_MODEL_H_ 5 #ifndef COMPONENTS_BOOKMARKS_BROWSER_BOOKMARK_MODEL_H_
6 #define COMPONENTS_BOOKMARKS_BROWSER_BOOKMARK_MODEL_H_ 6 #define COMPONENTS_BOOKMARKS_BROWSER_BOOKMARK_MODEL_H_
7 7
8 #include <map> 8 #include <map>
9 #include <set> 9 #include <set>
10 #include <vector> 10 #include <vector>
11 11
12 #include "base/basictypes.h" 12 #include "base/basictypes.h"
13 #include "base/compiler_specific.h" 13 #include "base/compiler_specific.h"
14 #include "base/memory/ref_counted.h" 14 #include "base/memory/ref_counted.h"
15 #include "base/memory/scoped_ptr.h" 15 #include "base/memory/scoped_ptr.h"
16 #include "base/observer_list.h" 16 #include "base/observer_list.h"
17 #include "base/strings/string16.h" 17 #include "base/strings/string16.h"
18 #include "base/synchronization/lock.h" 18 #include "base/synchronization/lock.h"
19 #include "base/synchronization/waitable_event.h" 19 #include "base/synchronization/waitable_event.h"
20 #include "components/bookmarks/browser/bookmark_client.h" 20 #include "components/bookmarks/browser/bookmark_client.h"
21 #include "components/bookmarks/browser/bookmark_node.h" 21 #include "components/bookmarks/browser/bookmark_node.h"
22 #include "components/bookmarks/browser/bookmark_service.h" 22 #include "components/bookmarks/browser/bookmark_service.h"
23 #include "ui/gfx/image/image.h" 23 #include "ui/gfx/image/image.h"
24 #include "url/gurl.h" 24 #include "url/gurl.h"
25 25
26 class BookmarkExpandedStateTracker; 26 class BookmarkExpandedStateTracker;
27 class BookmarkIndex;
28 class BookmarkModelObserver; 27 class BookmarkModelObserver;
29 struct BookmarkMatch; 28 struct BookmarkMatch;
30 class PrefService; 29 class PrefService;
31 class ScopedGroupBookmarkActions; 30 class ScopedGroupBookmarkActions;
32 31
33 namespace base { 32 namespace base {
34 class FilePath; 33 class FilePath;
35 class SequencedTaskRunner; 34 class SequencedTaskRunner;
36 } 35 }
37 36
38 namespace bookmarks { 37 namespace bookmarks {
38 class BookmarkIndex;
39 class BookmarkLoadDetails; 39 class BookmarkLoadDetails;
40 class BookmarkStorage; 40 class BookmarkStorage;
41 class ScopedGroupBookmarkActions; 41 class ScopedGroupBookmarkActions;
42 } 42 }
43 43
44 namespace favicon_base { 44 namespace favicon_base {
45 struct FaviconImageResult; 45 struct FaviconImageResult;
46 } 46 }
47 47
48 namespace test { 48 namespace test {
(...skipping 353 matching lines...) Expand 10 before | Expand all | Expand 10 after
402 typedef std::multiset<BookmarkNode*, NodeURLComparator> NodesOrderedByURLSet; 402 typedef std::multiset<BookmarkNode*, NodeURLComparator> NodesOrderedByURLSet;
403 NodesOrderedByURLSet nodes_ordered_by_url_set_; 403 NodesOrderedByURLSet nodes_ordered_by_url_set_;
404 base::Lock url_lock_; 404 base::Lock url_lock_;
405 405
406 // Used for loading favicons. 406 // Used for loading favicons.
407 base::CancelableTaskTracker cancelable_task_tracker_; 407 base::CancelableTaskTracker cancelable_task_tracker_;
408 408
409 // Reads/writes bookmarks to disk. 409 // Reads/writes bookmarks to disk.
410 scoped_refptr<bookmarks::BookmarkStorage> store_; 410 scoped_refptr<bookmarks::BookmarkStorage> store_;
411 411
412 scoped_ptr<BookmarkIndex> index_; 412 scoped_ptr<bookmarks::BookmarkIndex> index_;
413 413
414 // True if URLs are stored in the BookmarkIndex in addition to bookmark 414 // True if URLs are stored in the BookmarkIndex in addition to bookmark
415 // titles. 415 // titles.
416 const bool index_urls_; 416 const bool index_urls_;
417 417
418 base::WaitableEvent loaded_signal_; 418 base::WaitableEvent loaded_signal_;
419 419
420 // See description of IsDoingExtensiveChanges above. 420 // See description of IsDoingExtensiveChanges above.
421 int extensive_changes_; 421 int extensive_changes_;
422 422
423 scoped_ptr<BookmarkExpandedStateTracker> expanded_state_tracker_; 423 scoped_ptr<BookmarkExpandedStateTracker> expanded_state_tracker_;
424 424
425 DISALLOW_COPY_AND_ASSIGN(BookmarkModel); 425 DISALLOW_COPY_AND_ASSIGN(BookmarkModel);
426 }; 426 };
427 427
428 #endif // COMPONENTS_BOOKMARKS_BROWSER_BOOKMARK_MODEL_H_ 428 #endif // COMPONENTS_BOOKMARKS_BROWSER_BOOKMARK_MODEL_H_
OLDNEW
« no previous file with comments | « components/bookmarks/browser/bookmark_index_unittest.cc ('k') | components/bookmarks/browser/bookmark_model.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698