| 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 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 // |fav_icon_handle| matches |handle| and notifies the observer of the change. | 72 // |fav_icon_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_fav_icon, | 74 bool know_fav_icon, |
| 75 scoped_refptr<RefCountedMemory> image_data, | 75 scoped_refptr<RefCountedMemory> image_data, |
| 76 bool is_expired, | 76 bool is_expired, |
| 77 GURL icon_url); | 77 GURL icon_url, |
| 78 history::IconType icon_type); |
| 78 | 79 |
| 79 // Returns the entry whose |member| matches |handle| and sets |entry_index| to | 80 // Returns the entry whose |member| matches |handle| and sets |entry_index| to |
| 80 // the index of the entry. | 81 // the index of the entry. |
| 81 Entry* GetEntryByLoadHandle(CancelableRequestProvider::Handle Entry::* member, | 82 Entry* GetEntryByLoadHandle(CancelableRequestProvider::Handle Entry::* member, |
| 82 CancelableRequestProvider::Handle handle, | 83 CancelableRequestProvider::Handle handle, |
| 83 int* entry_index); | 84 int* entry_index); |
| 84 | 85 |
| 85 // Returns the entry whose |fav_icon_handle| matches |handle| and sets | 86 // Returns the entry whose |fav_icon_handle| matches |handle| and sets |
| 86 // |entry_index| to the index of the entry. | 87 // |entry_index| to the index of the entry. |
| 87 Entry* GetEntryByFavIconHandle(FaviconService::Handle handle, | 88 Entry* GetEntryByFavIconHandle(FaviconService::Handle handle, |
| (...skipping 13 matching lines...) Expand all Loading... |
| 101 | 102 |
| 102 ui::TableModelObserver* observer_; | 103 ui::TableModelObserver* observer_; |
| 103 | 104 |
| 104 // Used in loading titles and favicons. | 105 // Used in loading titles and favicons. |
| 105 CancelableRequestConsumer query_consumer_; | 106 CancelableRequestConsumer query_consumer_; |
| 106 | 107 |
| 107 DISALLOW_COPY_AND_ASSIGN(CustomHomePagesTableModel); | 108 DISALLOW_COPY_AND_ASSIGN(CustomHomePagesTableModel); |
| 108 }; | 109 }; |
| 109 | 110 |
| 110 #endif // CHROME_BROWSER_CUSTOM_HOME_PAGES_TABLE_MODEL_H_ | 111 #endif // CHROME_BROWSER_CUSTOM_HOME_PAGES_TABLE_MODEL_H_ |
| OLD | NEW |