| 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 CHROME_BROWSER_UI_WEBUI_SNIPPETS_INTERNALS_MESSAGE_HANDLER_H_ | 5 #ifndef CHROME_BROWSER_UI_WEBUI_SNIPPETS_INTERNALS_MESSAGE_HANDLER_H_ |
| 6 #define CHROME_BROWSER_UI_WEBUI_SNIPPETS_INTERNALS_MESSAGE_HANDLER_H_ | 6 #define CHROME_BROWSER_UI_WEBUI_SNIPPETS_INTERNALS_MESSAGE_HANDLER_H_ |
| 7 | 7 |
| 8 #include <map> | 8 #include <map> |
| 9 #include <string> | 9 #include <string> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 63 ntp_snippets::Category category, | 63 ntp_snippets::Category category, |
| 64 std::vector<ntp_snippets::ContentSuggestion> dismissed_suggestions); | 64 std::vector<ntp_snippets::ContentSuggestion> dismissed_suggestions); |
| 65 | 65 |
| 66 ScopedObserver<ntp_snippets::ContentSuggestionsService, | 66 ScopedObserver<ntp_snippets::ContentSuggestionsService, |
| 67 ntp_snippets::ContentSuggestionsService::Observer> | 67 ntp_snippets::ContentSuggestionsService::Observer> |
| 68 content_suggestions_service_observer_; | 68 content_suggestions_service_observer_; |
| 69 | 69 |
| 70 // Tracks whether we can already send messages to the page. | 70 // Tracks whether we can already send messages to the page. |
| 71 bool dom_loaded_; | 71 bool dom_loaded_; |
| 72 | 72 |
| 73 ntp_snippets::RemoteSuggestionsProvider* ntp_snippets_service_; | 73 ntp_snippets::RemoteSuggestionsProvider* remote_suggestions_provider_; |
| 74 ntp_snippets::ContentSuggestionsService* content_suggestions_service_; | 74 ntp_snippets::ContentSuggestionsService* content_suggestions_service_; |
| 75 | 75 |
| 76 std::map<ntp_snippets::Category, | 76 std::map<ntp_snippets::Category, |
| 77 DismissedState, | 77 DismissedState, |
| 78 ntp_snippets::Category::CompareByID> | 78 ntp_snippets::Category::CompareByID> |
| 79 dismissed_state_; | 79 dismissed_state_; |
| 80 std::map<ntp_snippets::Category, | 80 std::map<ntp_snippets::Category, |
| 81 std::vector<ntp_snippets::ContentSuggestion>, | 81 std::vector<ntp_snippets::ContentSuggestion>, |
| 82 ntp_snippets::Category::CompareByID> | 82 ntp_snippets::Category::CompareByID> |
| 83 dismissed_suggestions_; | 83 dismissed_suggestions_; |
| 84 | 84 |
| 85 base::WeakPtrFactory<SnippetsInternalsMessageHandler> weak_ptr_factory_; | 85 base::WeakPtrFactory<SnippetsInternalsMessageHandler> weak_ptr_factory_; |
| 86 | 86 |
| 87 DISALLOW_COPY_AND_ASSIGN(SnippetsInternalsMessageHandler); | 87 DISALLOW_COPY_AND_ASSIGN(SnippetsInternalsMessageHandler); |
| 88 }; | 88 }; |
| 89 | 89 |
| 90 #endif // CHROME_BROWSER_UI_WEBUI_SNIPPETS_INTERNALS_MESSAGE_HANDLER_H_ | 90 #endif // CHROME_BROWSER_UI_WEBUI_SNIPPETS_INTERNALS_MESSAGE_HANDLER_H_ |
| OLD | NEW |