Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(214)

Side by Side Diff: components/ntp_tiles/webui/ntp_tiles_internals_message_handler.h

Issue 2619993002: ntp_tiles: Migrate to multi-observer model
Patch Set: Fixed build. Created 3 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698