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

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

Issue 8612007: Add OVERRIDE to chrome/browser/. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 1 month 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 153 matching lines...) Expand 10 before | Expand all | Expand 10 after
164 164
165 // The permanent nodes are the three special top level nodes "bookmark_bar", 165 // The permanent nodes are the three special top level nodes "bookmark_bar",
166 // "synced" and "other". Their visibility is dependent on information from the 166 // "synced" and "other". Their visibility is dependent on information from the
167 // profile, hence this special subclass to accomodate them. 167 // profile, hence this special subclass to accomodate them.
168 class BookmarkPermanentNode : public BookmarkNode { 168 class BookmarkPermanentNode : public BookmarkNode {
169 public: 169 public:
170 // Creates a new node with |id| and |url|. 170 // Creates a new node with |id| and |url|.
171 BookmarkPermanentNode(int64 id, const GURL& url, Profile* profile); 171 BookmarkPermanentNode(int64 id, const GURL& url, Profile* profile);
172 172
173 virtual ~BookmarkPermanentNode(); 173 virtual ~BookmarkPermanentNode();
174 virtual bool IsVisible() const; 174 virtual bool IsVisible() const OVERRIDE;
175 175
176 private: 176 private:
177 Profile* profile_; 177 Profile* profile_;
178 178
179 DISALLOW_COPY_AND_ASSIGN(BookmarkPermanentNode); 179 DISALLOW_COPY_AND_ASSIGN(BookmarkPermanentNode);
180 }; 180 };
181 181
182 // BookmarkModel -------------------------------------------------------------- 182 // BookmarkModel --------------------------------------------------------------
183 183
184 // BookmarkModel provides a directed acyclic graph of URLs and folders. 184 // BookmarkModel provides a directed acyclic graph of URLs and folders.
(...skipping 291 matching lines...) Expand 10 before | Expand all | Expand 10 after
476 scoped_ptr<BookmarkIndex> index_; 476 scoped_ptr<BookmarkIndex> index_;
477 477
478 base::WaitableEvent loaded_signal_; 478 base::WaitableEvent loaded_signal_;
479 479
480 scoped_ptr<BookmarkExpandedStateTracker> expanded_state_tracker_; 480 scoped_ptr<BookmarkExpandedStateTracker> expanded_state_tracker_;
481 481
482 DISALLOW_COPY_AND_ASSIGN(BookmarkModel); 482 DISALLOW_COPY_AND_ASSIGN(BookmarkModel);
483 }; 483 };
484 484
485 #endif // CHROME_BROWSER_BOOKMARKS_BOOKMARK_MODEL_H_ 485 #endif // CHROME_BROWSER_BOOKMARKS_BOOKMARK_MODEL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698