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

Side by Side Diff: chrome/browser/bookmarks/bookmark_model.h

Issue 3142030: Remove wstrings from bookmarks, part 6. (Closed)
Patch Set: fix views and tests 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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 CHROME_BROWSER_BOOKMARKS_BOOKMARK_MODEL_H_ 5 #ifndef CHROME_BROWSER_BOOKMARKS_BOOKMARK_MODEL_H_
6 #define CHROME_BROWSER_BOOKMARKS_BOOKMARK_MODEL_H_ 6 #define CHROME_BROWSER_BOOKMARKS_BOOKMARK_MODEL_H_
7 #pragma once 7 #pragma once
8 8
9 #include "build/build_config.h" 9 #include "build/build_config.h"
10 10
(...skipping 212 matching lines...) Expand 10 before | Expand all | Expand 10 after
223 223
224 // Duplicates a bookmark node and inserts it at a new location. 224 // Duplicates a bookmark node and inserts it at a new location.
225 void Copy(const BookmarkNode* node, 225 void Copy(const BookmarkNode* node,
226 const BookmarkNode* new_parent, 226 const BookmarkNode* new_parent,
227 int index); 227 int index);
228 228
229 // Returns the favicon for |node|. If the favicon has not yet been 229 // Returns the favicon for |node|. If the favicon has not yet been
230 // loaded it is loaded and the observer of the model notified when done. 230 // loaded it is loaded and the observer of the model notified when done.
231 const SkBitmap& GetFavIcon(const BookmarkNode* node); 231 const SkBitmap& GetFavIcon(const BookmarkNode* node);
232 232
233 // TODO(munjal): Remove wstring overload once all code is moved to string16.
234 // Sets the title of the specified node. 233 // Sets the title of the specified node.
235 #if !defined(WCHAR_T_IS_UTF16)
236 void SetTitle(const BookmarkNode* node, const std::wstring& title);
237 #endif
238 void SetTitle(const BookmarkNode* node, const string16& title); 234 void SetTitle(const BookmarkNode* node, const string16& title);
239 235
240 // Sets the URL of the specified bookmark node. 236 // Sets the URL of the specified bookmark node.
241 void SetURL(const BookmarkNode* node, const GURL& url); 237 void SetURL(const BookmarkNode* node, const GURL& url);
242 238
243 // Returns true if the model finished loading. 239 // Returns true if the model finished loading.
244 virtual bool IsLoaded() { return loaded_; } 240 virtual bool IsLoaded() { return loaded_; }
245 241
246 // Returns the set of nodes with the specified URL. 242 // Returns the set of nodes with the specified URL.
247 void GetNodesByURL(const GURL& url, std::vector<const BookmarkNode*>* nodes); 243 void GetNodesByURL(const GURL& url, std::vector<const BookmarkNode*>* nodes);
(...skipping 219 matching lines...) Expand 10 before | Expand all | Expand 10 after
467 scoped_refptr<BookmarkStorage> store_; 463 scoped_refptr<BookmarkStorage> store_;
468 464
469 scoped_ptr<BookmarkIndex> index_; 465 scoped_ptr<BookmarkIndex> index_;
470 466
471 base::WaitableEvent loaded_signal_; 467 base::WaitableEvent loaded_signal_;
472 468
473 DISALLOW_COPY_AND_ASSIGN(BookmarkModel); 469 DISALLOW_COPY_AND_ASSIGN(BookmarkModel);
474 }; 470 };
475 471
476 #endif // CHROME_BROWSER_BOOKMARKS_BOOKMARK_MODEL_H_ 472 #endif // CHROME_BROWSER_BOOKMARKS_BOOKMARK_MODEL_H_
OLDNEW
« no previous file with comments | « chrome/browser/bookmarks/bookmark_index_unittest.cc ('k') | chrome/browser/bookmarks/bookmark_model.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698