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

Unified Diff: chrome/browser/bookmarks/bookmark_index.h

Issue 3112027: Remove wstrings from bookmarks, part 11. (Closed)
Patch Set: Created 10 years, 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | chrome/browser/bookmarks/bookmark_index.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/bookmarks/bookmark_index.h
diff --git a/chrome/browser/bookmarks/bookmark_index.h b/chrome/browser/bookmarks/bookmark_index.h
index 656b8ed20db9ce47d52738d6198ace4311ff72eb..ac8e2070f1a91fa1d359fe86c0f6aca9b844ceb2 100644
--- a/chrome/browser/bookmarks/bookmark_index.h
+++ b/chrome/browser/bookmarks/bookmark_index.h
@@ -1,4 +1,4 @@
-// Copyright (c) 2009 The Chromium Authors. All rights reserved.
+// Copyright (c) 2010 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
@@ -9,10 +9,10 @@
#include <list>
#include <map>
#include <set>
-#include <string>
#include <vector>
#include "base/basictypes.h"
+#include "base/string16.h"
class BookmarkNode;
class Profile;
@@ -47,13 +47,13 @@ class BookmarkIndex {
// Returns up to |max_count| of bookmarks containing the text |query|.
void GetBookmarksWithTitlesMatching(
- const std::wstring& query,
+ const string16& query,
size_t max_count,
std::vector<bookmark_utils::TitleMatch>* results);
private:
typedef std::set<const BookmarkNode*> NodeSet;
- typedef std::map<std::wstring, NodeSet> Index;
+ typedef std::map<string16, NodeSet> Index;
// Used when finding the set of bookmarks that match a query. Each match
// represents a set of terms (as an interator into the Index) matching the
@@ -116,7 +116,7 @@ class BookmarkIndex {
// Populates |matches| for the specified term. If |first_term| is true, this
// is the first term in the query. Returns true if there is at least one node
// matching the term.
- bool GetBookmarksWithTitleMatchingTerm(const std::wstring& term,
+ bool GetBookmarksWithTitleMatchingTerm(const string16& term,
bool first_term,
Matches* matches);
@@ -142,13 +142,13 @@ class BookmarkIndex {
Matches* result);
// Returns the set of query words from |query|.
- std::vector<std::wstring> ExtractQueryWords(const std::wstring& query);
+ std::vector<string16> ExtractQueryWords(const string16& query);
// Adds |node| to |index_|.
- void RegisterNode(const std::wstring& term, const BookmarkNode* node);
+ void RegisterNode(const string16& term, const BookmarkNode* node);
// Removes |node| from |index_|.
- void UnregisterNode(const std::wstring& term, const BookmarkNode* node);
+ void UnregisterNode(const string16& term, const BookmarkNode* node);
Index index_;
« no previous file with comments | « no previous file | chrome/browser/bookmarks/bookmark_index.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698