| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_UI_WEBUI_NTP_ANDROID_BOOKMARKS_HANDLER_H_ | 5 #ifndef CHROME_BROWSER_UI_WEBUI_NTP_ANDROID_BOOKMARKS_HANDLER_H_ |
| 6 #define CHROME_BROWSER_UI_WEBUI_NTP_ANDROID_BOOKMARKS_HANDLER_H_ | 6 #define CHROME_BROWSER_UI_WEBUI_NTP_ANDROID_BOOKMARKS_HANDLER_H_ |
| 7 | 7 |
| 8 #include "base/values.h" | 8 #include "base/values.h" |
| 9 #include "chrome/browser/bookmarks/base_bookmark_model_observer.h" | 9 #include "chrome/browser/bookmarks/base_bookmark_model_observer.h" |
| 10 #include "chrome/browser/cancelable_request.h" | 10 #include "chrome/browser/cancelable_request.h" |
| (...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 123 | 123 |
| 124 // Sends bookmark bar's bookmarks and sub folders and other folders back to | 124 // Sends bookmark bar's bookmarks and sub folders and other folders back to |
| 125 // NTP. | 125 // NTP. |
| 126 void QueryInitialBookmarks(); | 126 void QueryInitialBookmarks(); |
| 127 | 127 |
| 128 // Sends the result back to Javascript | 128 // Sends the result back to Javascript |
| 129 void SendResult(const DictionaryValue& result); | 129 void SendResult(const DictionaryValue& result); |
| 130 | 130 |
| 131 // Called once the favicon is loaded during creation of the bookmark shortcuts | 131 // Called once the favicon is loaded during creation of the bookmark shortcuts |
| 132 // and is available for use. | 132 // and is available for use. |
| 133 void OnShortcutFaviconDataAvailable(FaviconService::Handle handle, | 133 void OnShortcutFaviconDataAvailable( |
| 134 history::FaviconData favicon); | 134 FaviconService::Handle handle, |
| 135 const history::FaviconBitmapResult& bitmap_result); |
| 135 | 136 |
| 136 DISALLOW_COPY_AND_ASSIGN(BookmarksHandler); | 137 DISALLOW_COPY_AND_ASSIGN(BookmarksHandler); |
| 137 }; | 138 }; |
| 138 | 139 |
| 139 #endif // CHROME_BROWSER_UI_WEBUI_NTP_ANDROID_BOOKMARKS_HANDLER_H_ | 140 #endif // CHROME_BROWSER_UI_WEBUI_NTP_ANDROID_BOOKMARKS_HANDLER_H_ |
| OLD | NEW |