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

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 379 matching lines...) Expand 10 before | Expand all | Expand 10 after
390 history::FaviconData favicon); 390 history::FaviconData favicon);
391 391
392 // Invoked from the node to load the favicon. Requests the favicon from the 392 // Invoked from the node to load the favicon. Requests the favicon from the
393 // favicon service. 393 // favicon service.
394 void LoadFavicon(BookmarkNode* node); 394 void LoadFavicon(BookmarkNode* node);
395 395
396 // If we're waiting on a favicon for node, the load request is canceled. 396 // If we're waiting on a favicon for node, the load request is canceled.
397 void CancelPendingFaviconLoadRequests(BookmarkNode* node); 397 void CancelPendingFaviconLoadRequests(BookmarkNode* node);
398 398
399 // NotificationObserver. 399 // NotificationObserver.
400 virtual void Observe(NotificationType type, 400 virtual void Observe(int type,
401 const NotificationSource& source, 401 const NotificationSource& source,
402 const NotificationDetails& details); 402 const NotificationDetails& details);
403 403
404 // Generates and returns the next node ID. 404 // Generates and returns the next node ID.
405 int64 generate_next_node_id(); 405 int64 generate_next_node_id();
406 406
407 // Sets the maximum node ID to the given value. 407 // Sets the maximum node ID to the given value.
408 // This is used by BookmarkCodec to report the maximum ID after it's done 408 // This is used by BookmarkCodec to report the maximum ID after it's done
409 // decoding since during decoding codec assigns node IDs. 409 // decoding since during decoding codec assigns node IDs.
410 void set_next_node_id(int64 id) { next_node_id_ = id; } 410 void set_next_node_id(int64 id) { next_node_id_ = id; }
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
456 scoped_refptr<BookmarkStorage> store_; 456 scoped_refptr<BookmarkStorage> store_;
457 457
458 scoped_ptr<BookmarkIndex> index_; 458 scoped_ptr<BookmarkIndex> index_;
459 459
460 base::WaitableEvent loaded_signal_; 460 base::WaitableEvent loaded_signal_;
461 461
462 DISALLOW_COPY_AND_ASSIGN(BookmarkModel); 462 DISALLOW_COPY_AND_ASSIGN(BookmarkModel);
463 }; 463 };
464 464
465 #endif // CHROME_BROWSER_BOOKMARKS_BOOKMARK_MODEL_H_ 465 #endif // CHROME_BROWSER_BOOKMARKS_BOOKMARK_MODEL_H_
OLDNEW
« no previous file with comments | « chrome/browser/bookmarks/bookmark_html_writer.cc ('k') | chrome/browser/bookmarks/bookmark_model.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698