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

Side by Side Diff: components/bookmarks/browser/bookmark_index.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 | « no previous file | components/bookmarks/browser/bookmark_index.cc » ('j') | 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_INDEX_H_ 5 #ifndef COMPONENTS_BOOKMARKS_BROWSER_BOOKMARK_INDEX_H_
6 #define COMPONENTS_BOOKMARKS_BROWSER_BOOKMARK_INDEX_H_ 6 #define COMPONENTS_BOOKMARKS_BROWSER_BOOKMARK_INDEX_H_
7 7
8 #include <map> 8 #include <map>
9 #include <set> 9 #include <set>
10 #include <string> 10 #include <string>
11 #include <vector> 11 #include <vector>
12 12
13 #include "base/basictypes.h" 13 #include "base/basictypes.h"
14 #include "base/strings/string16.h" 14 #include "base/strings/string16.h"
15 #include "components/query_parser/query_parser.h" 15 #include "components/query_parser/query_parser.h"
16 16
17 class BookmarkClient; 17 class BookmarkClient;
18 class BookmarkNode; 18 class BookmarkNode;
19 struct BookmarkMatch; 19 struct BookmarkMatch;
20 20
21 namespace bookmarks {
22
21 // BookmarkIndex maintains an index of the titles and URLs of bookmarks for 23 // BookmarkIndex maintains an index of the titles and URLs of bookmarks for
22 // quick look up. BookmarkIndex is owned and maintained by BookmarkModel, you 24 // quick look up. BookmarkIndex is owned and maintained by BookmarkModel, you
23 // shouldn't need to interact directly with BookmarkIndex. 25 // shouldn't need to interact directly with BookmarkIndex.
24 // 26 //
25 // BookmarkIndex maintains the index (index_) as a map of sets. The map (type 27 // BookmarkIndex maintains the index (index_) as a map of sets. The map (type
26 // Index) maps from a lower case string to the set (type NodeSet) of 28 // Index) maps from a lower case string to the set (type NodeSet) of
27 // BookmarkNodes that contain that string in their title or URL. 29 // BookmarkNodes that contain that string in their title or URL.
28 class BookmarkIndex { 30 class BookmarkIndex {
29 public: 31 public:
30 // |index_urls| says whether URLs should be stored in the index in addition 32 // |index_urls| says whether URLs should be stored in the index in addition
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after
110 112
111 // Languages used to help parse IDNs in URLs for the bookmark index. 113 // Languages used to help parse IDNs in URLs for the bookmark index.
112 const std::string languages_; 114 const std::string languages_;
113 115
114 // True if URLs are stored in the index as well as bookmark titles. 116 // True if URLs are stored in the index as well as bookmark titles.
115 const bool index_urls_; 117 const bool index_urls_;
116 118
117 DISALLOW_COPY_AND_ASSIGN(BookmarkIndex); 119 DISALLOW_COPY_AND_ASSIGN(BookmarkIndex);
118 }; 120 };
119 121
122 } // namespace bookmarks
123
120 #endif // COMPONENTS_BOOKMARKS_BROWSER_BOOKMARK_INDEX_H_ 124 #endif // COMPONENTS_BOOKMARKS_BROWSER_BOOKMARK_INDEX_H_
OLDNEW
« no previous file with comments | « no previous file | components/bookmarks/browser/bookmark_index.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698