OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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_CUSTOM_HOME_PAGES_TABLE_MODEL_H_ | 5 #ifndef CHROME_BROWSER_CUSTOM_HOME_PAGES_TABLE_MODEL_H_ |
6 #define CHROME_BROWSER_CUSTOM_HOME_PAGES_TABLE_MODEL_H_ | 6 #define CHROME_BROWSER_CUSTOM_HOME_PAGES_TABLE_MODEL_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <string> | 9 #include <string> |
10 #include <vector> | 10 #include <vector> |
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
64 // Callback from history service. Updates the title of the Entry whose | 64 // Callback from history service. Updates the title of the Entry whose |
65 // |title_handle| matches |handle| and notifies the observer of the change. | 65 // |title_handle| matches |handle| and notifies the observer of the change. |
66 void OnGotTitle(HistoryService::Handle handle, | 66 void OnGotTitle(HistoryService::Handle handle, |
67 bool found_url, | 67 bool found_url, |
68 const history::URLRow* row, | 68 const history::URLRow* row, |
69 history::VisitVector* visits); | 69 history::VisitVector* visits); |
70 | 70 |
71 // Callback from history service. Updates the icon of the Entry whose | 71 // Callback from history service. Updates the icon of the Entry whose |
72 // |favicon_handle| matches |handle| and notifies the observer of the change. | 72 // |favicon_handle| matches |handle| and notifies the observer of the change. |
73 void OnGotFavIcon(FaviconService::Handle handle, | 73 void OnGotFavIcon(FaviconService::Handle handle, |
74 bool know_favicon, | 74 history::FaviconData favicon); |
75 scoped_refptr<RefCountedMemory> image_data, | |
76 bool is_expired, | |
77 GURL icon_url); | |
78 | 75 |
79 // Returns the entry whose |member| matches |handle| and sets |entry_index| to | 76 // Returns the entry whose |member| matches |handle| and sets |entry_index| to |
80 // the index of the entry. | 77 // the index of the entry. |
81 Entry* GetEntryByLoadHandle(CancelableRequestProvider::Handle Entry::* member, | 78 Entry* GetEntryByLoadHandle(CancelableRequestProvider::Handle Entry::* member, |
82 CancelableRequestProvider::Handle handle, | 79 CancelableRequestProvider::Handle handle, |
83 int* entry_index); | 80 int* entry_index); |
84 | 81 |
85 // Returns the entry whose |favicon_handle| matches |handle| and sets | 82 // Returns the entry whose |favicon_handle| matches |handle| and sets |
86 // |entry_index| to the index of the entry. | 83 // |entry_index| to the index of the entry. |
87 Entry* GetEntryByFavIconHandle(FaviconService::Handle handle, | 84 Entry* GetEntryByFavIconHandle(FaviconService::Handle handle, |
(...skipping 13 matching lines...) Expand all Loading... |
101 | 98 |
102 ui::TableModelObserver* observer_; | 99 ui::TableModelObserver* observer_; |
103 | 100 |
104 // Used in loading titles and favicons. | 101 // Used in loading titles and favicons. |
105 CancelableRequestConsumer query_consumer_; | 102 CancelableRequestConsumer query_consumer_; |
106 | 103 |
107 DISALLOW_COPY_AND_ASSIGN(CustomHomePagesTableModel); | 104 DISALLOW_COPY_AND_ASSIGN(CustomHomePagesTableModel); |
108 }; | 105 }; |
109 | 106 |
110 #endif // CHROME_BROWSER_CUSTOM_HOME_PAGES_TABLE_MODEL_H_ | 107 #endif // CHROME_BROWSER_CUSTOM_HOME_PAGES_TABLE_MODEL_H_ |
OLD | NEW |