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

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

Issue 1367063004: Support undoing offline page deletion (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 3 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 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 <stdint.h> 8 #include <stdint.h>
9 #include <map> 9 #include <map>
10 #include <set> 10 #include <set>
(...skipping 287 matching lines...) Expand 10 before | Expand all | Expand 10 after
298 int64_t sync_transaction_version); 298 int64_t sync_transaction_version);
299 299
300 // Notify BookmarkModel that the favicons for the given page URLs (e.g. 300 // Notify BookmarkModel that the favicons for the given page URLs (e.g.
301 // http://www.google.com) and the given icon URL (e.g. 301 // http://www.google.com) and the given icon URL (e.g.
302 // http://www.google.com/favicon.ico) have changed. It is valid to call 302 // http://www.google.com/favicon.ico) have changed. It is valid to call
303 // OnFaviconsChanged() with non-empty |page_urls| and an empty |icon_url| and 303 // OnFaviconsChanged() with non-empty |page_urls| and an empty |icon_url| and
304 // vice versa. 304 // vice versa.
305 void OnFaviconsChanged(const std::set<GURL>& page_urls, 305 void OnFaviconsChanged(const std::set<GURL>& page_urls,
306 const GURL& icon_url); 306 const GURL& icon_url);
307 307
308 void OnBookmarkRenumbered(int64 old_id, int64 new_id);
sky 2015/09/25 15:54:44 This shouldn't be public.
jianli 2015/09/25 20:29:24 This method needs to be called from BookmarkUndoSe
309
308 // Returns the client used by this BookmarkModel. 310 // Returns the client used by this BookmarkModel.
309 BookmarkClient* client() const { return client_; } 311 BookmarkClient* client() const { return client_; }
310 312
311 private: 313 private:
312 friend class BookmarkCodecTest; 314 friend class BookmarkCodecTest;
313 friend class BookmarkModelFaviconTest; 315 friend class BookmarkModelFaviconTest;
314 friend class BookmarkStorage; 316 friend class BookmarkStorage;
315 friend class ScopedGroupBookmarkActions; 317 friend class ScopedGroupBookmarkActions;
316 friend class TestBookmarkClient; 318 friend class TestBookmarkClient;
317 319
(...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after
448 scoped_ptr<BookmarkExpandedStateTracker> expanded_state_tracker_; 450 scoped_ptr<BookmarkExpandedStateTracker> expanded_state_tracker_;
449 451
450 std::set<std::string> non_cloned_keys_; 452 std::set<std::string> non_cloned_keys_;
451 453
452 DISALLOW_COPY_AND_ASSIGN(BookmarkModel); 454 DISALLOW_COPY_AND_ASSIGN(BookmarkModel);
453 }; 455 };
454 456
455 } // namespace bookmarks 457 } // namespace bookmarks
456 458
457 #endif // COMPONENTS_BOOKMARKS_BROWSER_BOOKMARK_MODEL_H_ 459 #endif // COMPONENTS_BOOKMARKS_BROWSER_BOOKMARK_MODEL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698