| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 COMPONENTS_NTP_TILES_WEBUI_NTP_TILES_INTERNALS_MESSAGE_HANDLER_H_ | 5 #ifndef COMPONENTS_NTP_TILES_WEBUI_NTP_TILES_INTERNALS_MESSAGE_HANDLER_H_ |
| 6 #define COMPONENTS_NTP_TILES_WEBUI_NTP_TILES_INTERNALS_MESSAGE_HANDLER_H_ | 6 #define COMPONENTS_NTP_TILES_WEBUI_NTP_TILES_INTERNALS_MESSAGE_HANDLER_H_ |
| 7 | 7 |
| 8 #include <memory> | 8 #include <memory> |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 43 void SendSourceInfo(); | 43 void SendSourceInfo(); |
| 44 void SendTiles(const NTPTilesVector& tiles); | 44 void SendTiles(const NTPTilesVector& tiles); |
| 45 | 45 |
| 46 // MostVisitedSites::Observer. | 46 // MostVisitedSites::Observer. |
| 47 void OnMostVisitedURLsAvailable(const NTPTilesVector& tiles) override; | 47 void OnMostVisitedURLsAvailable(const NTPTilesVector& tiles) override; |
| 48 void OnIconMadeAvailable(const GURL& site_url) override; | 48 void OnIconMadeAvailable(const GURL& site_url) override; |
| 49 | 49 |
| 50 // Bridge to embedder's API. | 50 // Bridge to embedder's API. |
| 51 NTPTilesInternalsMessageHandlerClient* client_; | 51 NTPTilesInternalsMessageHandlerClient* client_; |
| 52 | 52 |
| 53 int site_count_; | |
| 54 std::unique_ptr<MostVisitedSites> most_visited_sites_; | 53 std::unique_ptr<MostVisitedSites> most_visited_sites_; |
| 55 | 54 |
| 56 DISALLOW_COPY_AND_ASSIGN(NTPTilesInternalsMessageHandler); | 55 DISALLOW_COPY_AND_ASSIGN(NTPTilesInternalsMessageHandler); |
| 57 }; | 56 }; |
| 58 | 57 |
| 59 } // namespace ntp_tiles | 58 } // namespace ntp_tiles |
| 60 | 59 |
| 61 #endif // COMPONENTS_NTP_TILES_WEBUI_NTP_TILES_INTERNALS_MESSAGE_HANDLER_H_ | 60 #endif // COMPONENTS_NTP_TILES_WEBUI_NTP_TILES_INTERNALS_MESSAGE_HANDLER_H_ |
| OLD | NEW |