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

Side by Side Diff: chrome/browser/history/history_backend.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_HISTORY_HISTORY_BACKEND_H_ 5 #ifndef CHROME_BROWSER_HISTORY_HISTORY_BACKEND_H_
6 #define CHROME_BROWSER_HISTORY_HISTORY_BACKEND_H_ 6 #define CHROME_BROWSER_HISTORY_HISTORY_BACKEND_H_
7 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 #include <utility> 10 #include <utility>
(...skipping 497 matching lines...) Expand 10 before | Expand all | Expand 10 after
508 // to be invoked again if there are more tasks that need to run. 508 // to be invoked again if there are more tasks that need to run.
509 void ProcessDBTaskImpl(); 509 void ProcessDBTaskImpl();
510 510
511 // Release all tasks in history_db_tasks_ and clears it. 511 // Release all tasks in history_db_tasks_ and clears it.
512 void ReleaseDBTasks(); 512 void ReleaseDBTasks();
513 513
514 // Schedules a broadcast of the given notification on the main thread. The 514 // Schedules a broadcast of the given notification on the main thread. The
515 // details argument will have ownership taken by this function (it will be 515 // details argument will have ownership taken by this function (it will be
516 // sent to the main thread and deleted there). 516 // sent to the main thread and deleted there).
517 virtual void BroadcastNotifications(int type, 517 virtual void BroadcastNotifications(int type,
518 HistoryDetails* details_deleted); 518 HistoryDetails* details_deleted) OVERRIDE;
519 519
520 // Deleting all history ------------------------------------------------------ 520 // Deleting all history ------------------------------------------------------
521 521
522 // Deletes all history. This is a special case of deleting that is separated 522 // Deletes all history. This is a special case of deleting that is separated
523 // from our normal dependency-following method for performance reasons. The 523 // from our normal dependency-following method for performance reasons. The
524 // logic lives here instead of ExpireHistoryBackend since it will cause 524 // logic lives here instead of ExpireHistoryBackend since it will cause
525 // re-initialization of some databases such as Thumbnails or Archived that 525 // re-initialization of some databases such as Thumbnails or Archived that
526 // could fail. When these databases are not valid, our pointers must be NULL, 526 // could fail. When these databases are not valid, our pointers must be NULL,
527 // so we need to handle this type of operation to keep the pointers in sync. 527 // so we need to handle this type of operation to keep the pointers in sync.
528 void DeleteAllHistory(); 528 void DeleteAllHistory();
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after
640 // Publishes the history to all indexers which are registered to receive 640 // Publishes the history to all indexers which are registered to receive
641 // history data from us. Can be NULL if there are no listeners. 641 // history data from us. Can be NULL if there are no listeners.
642 scoped_ptr<HistoryPublisher> history_publisher_; 642 scoped_ptr<HistoryPublisher> history_publisher_;
643 643
644 DISALLOW_COPY_AND_ASSIGN(HistoryBackend); 644 DISALLOW_COPY_AND_ASSIGN(HistoryBackend);
645 }; 645 };
646 646
647 } // namespace history 647 } // namespace history
648 648
649 #endif // CHROME_BROWSER_HISTORY_HISTORY_BACKEND_H_ 649 #endif // CHROME_BROWSER_HISTORY_HISTORY_BACKEND_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698