| OLD | NEW |
| 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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_H__ | 5 #ifndef CHROME_BROWSER_HISTORY_HISTORY_H__ |
| 6 #define CHROME_BROWSER_HISTORY_HISTORY_H__ | 6 #define CHROME_BROWSER_HISTORY_HISTORY_H__ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 595 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 606 // backend. | 606 // backend. |
| 607 void SetFavicon(const GURL& page_url, | 607 void SetFavicon(const GURL& page_url, |
| 608 const GURL& icon_url, | 608 const GURL& icon_url, |
| 609 const std::vector<unsigned char>& image_data); | 609 const std::vector<unsigned char>& image_data); |
| 610 | 610 |
| 611 | 611 |
| 612 // Sets the in-memory URL database. This is called by the backend once the | 612 // Sets the in-memory URL database. This is called by the backend once the |
| 613 // database is loaded to make it available. | 613 // database is loaded to make it available. |
| 614 void SetInMemoryBackend(history::InMemoryHistoryBackend* mem_backend); | 614 void SetInMemoryBackend(history::InMemoryHistoryBackend* mem_backend); |
| 615 | 615 |
| 616 // Called by our BackendDelegate when the database version is too new to be | 616 // Called by our BackendDelegate when there is a problem reading the database. |
| 617 // read properly. | 617 // |message_id| is the relevant message in the string table to display. |
| 618 void NotifyTooNew(); | 618 void NotifyProfileError(int message_id); |
| 619 | 619 |
| 620 // Call to schedule a given task for running on the history thread with the | 620 // Call to schedule a given task for running on the history thread with the |
| 621 // specified priority. The task will have ownership taken. | 621 // specified priority. The task will have ownership taken. |
| 622 void ScheduleTask(SchedulePriority priority, Task* task); | 622 void ScheduleTask(SchedulePriority priority, Task* task); |
| 623 | 623 |
| 624 // Schedule ------------------------------------------------------------------ | 624 // Schedule ------------------------------------------------------------------ |
| 625 // | 625 // |
| 626 // Functions for scheduling operations on the history thread that have a | 626 // Functions for scheduling operations on the history thread that have a |
| 627 // handle and may be cancelable. For fire-and-forget operations, see | 627 // handle and may be cancelable. For fire-and-forget operations, see |
| 628 // ScheduleAndForget below. | 628 // ScheduleAndForget below. |
| (...skipping 166 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 795 bool backend_loaded_; | 795 bool backend_loaded_; |
| 796 | 796 |
| 797 // Cached values from Init(), used whenever we need to reload the backend. | 797 // Cached values from Init(), used whenever we need to reload the backend. |
| 798 FilePath history_dir_; | 798 FilePath history_dir_; |
| 799 BookmarkService* bookmark_service_; | 799 BookmarkService* bookmark_service_; |
| 800 | 800 |
| 801 DISALLOW_COPY_AND_ASSIGN(HistoryService); | 801 DISALLOW_COPY_AND_ASSIGN(HistoryService); |
| 802 }; | 802 }; |
| 803 | 803 |
| 804 #endif // CHROME_BROWSER_HISTORY_HISTORY_H__ | 804 #endif // CHROME_BROWSER_HISTORY_HISTORY_H__ |
| OLD | NEW |