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

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

Issue 7327007: Moving notification types which are chrome specific to a new header file chrome_notification_type... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 5 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 (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 <set> 9 #include <set>
10 #include <vector> 10 #include <vector>
(...skipping 384 matching lines...) Expand 10 before | Expand all | Expand 10 after
395 history::FaviconData favicon); 395 history::FaviconData favicon);
396 396
397 // Invoked from the node to load the favicon. Requests the favicon from the 397 // Invoked from the node to load the favicon. Requests the favicon from the
398 // favicon service. 398 // favicon service.
399 void LoadFavicon(BookmarkNode* node); 399 void LoadFavicon(BookmarkNode* node);
400 400
401 // If we're waiting on a favicon for node, the load request is canceled. 401 // If we're waiting on a favicon for node, the load request is canceled.
402 void CancelPendingFaviconLoadRequests(BookmarkNode* node); 402 void CancelPendingFaviconLoadRequests(BookmarkNode* node);
403 403
404 // NotificationObserver. 404 // NotificationObserver.
405 virtual void Observe(NotificationType type, 405 virtual void Observe(int type,
406 const NotificationSource& source, 406 const NotificationSource& source,
407 const NotificationDetails& details); 407 const NotificationDetails& details);
408 408
409 // Generates and returns the next node ID. 409 // Generates and returns the next node ID.
410 int64 generate_next_node_id(); 410 int64 generate_next_node_id();
411 411
412 // Sets the maximum node ID to the given value. 412 // Sets the maximum node ID to the given value.
413 // This is used by BookmarkCodec to report the maximum ID after it's done 413 // This is used by BookmarkCodec to report the maximum ID after it's done
414 // decoding since during decoding codec assigns node IDs. 414 // decoding since during decoding codec assigns node IDs.
415 void set_next_node_id(int64 id) { next_node_id_ = id; } 415 void set_next_node_id(int64 id) { next_node_id_ = id; }
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
461 scoped_refptr<BookmarkStorage> store_; 461 scoped_refptr<BookmarkStorage> store_;
462 462
463 scoped_ptr<BookmarkIndex> index_; 463 scoped_ptr<BookmarkIndex> index_;
464 464
465 base::WaitableEvent loaded_signal_; 465 base::WaitableEvent loaded_signal_;
466 466
467 DISALLOW_COPY_AND_ASSIGN(BookmarkModel); 467 DISALLOW_COPY_AND_ASSIGN(BookmarkModel);
468 }; 468 };
469 469
470 #endif // CHROME_BROWSER_BOOKMARKS_BOOKMARK_MODEL_H_ 470 #endif // CHROME_BROWSER_BOOKMARKS_BOOKMARK_MODEL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698