| 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 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 43 ntp_snippets::CategoryStatus new_status) override; | 43 ntp_snippets::CategoryStatus new_status) override; |
| 44 void OnSuggestionInvalidated(ntp_snippets::Category category, | 44 void OnSuggestionInvalidated(ntp_snippets::Category category, |
| 45 const std::string& suggestion_id) override; | 45 const std::string& suggestion_id) override; |
| 46 void ContentSuggestionsServiceShutdown() override; | 46 void ContentSuggestionsServiceShutdown() override; |
| 47 | 47 |
| 48 void HandleRefreshContent(const base::ListValue* args); | 48 void HandleRefreshContent(const base::ListValue* args); |
| 49 void HandleDownload(const base::ListValue* args); | 49 void HandleDownload(const base::ListValue* args); |
| 50 void HandleClearCachedSuggestions(const base::ListValue* args); | 50 void HandleClearCachedSuggestions(const base::ListValue* args); |
| 51 void HandleClearDismissedSuggestions(const base::ListValue* args); | 51 void HandleClearDismissedSuggestions(const base::ListValue* args); |
| 52 void HandleToggleDismissedSuggestions(const base::ListValue* args); | 52 void HandleToggleDismissedSuggestions(const base::ListValue* args); |
| 53 void ClearClassification(const base::ListValue* args); |
| 53 | 54 |
| 54 void SendAllContent(); | 55 void SendAllContent(); |
| 56 void SendClassification(); |
| 55 void SendHosts(); | 57 void SendHosts(); |
| 56 void SendContentSuggestions(); | 58 void SendContentSuggestions(); |
| 57 void SendBoolean(const std::string& name, bool value); | 59 void SendBoolean(const std::string& name, bool value); |
| 58 void SendString(const std::string& name, const std::string& value); | 60 void SendString(const std::string& name, const std::string& value); |
| 59 | 61 |
| 60 void OnDismissedSuggestionsLoaded( | 62 void OnDismissedSuggestionsLoaded( |
| 61 ntp_snippets::Category category, | 63 ntp_snippets::Category category, |
| 62 std::vector<ntp_snippets::ContentSuggestion> dismissed_suggestions); | 64 std::vector<ntp_snippets::ContentSuggestion> dismissed_suggestions); |
| 63 | 65 |
| 64 ScopedObserver<ntp_snippets::ContentSuggestionsService, | 66 ScopedObserver<ntp_snippets::ContentSuggestionsService, |
| (...skipping 14 matching lines...) Expand all Loading... |
| 79 std::vector<ntp_snippets::ContentSuggestion>, | 81 std::vector<ntp_snippets::ContentSuggestion>, |
| 80 ntp_snippets::Category::CompareByID> | 82 ntp_snippets::Category::CompareByID> |
| 81 dismissed_suggestions_; | 83 dismissed_suggestions_; |
| 82 | 84 |
| 83 base::WeakPtrFactory<SnippetsInternalsMessageHandler> weak_ptr_factory_; | 85 base::WeakPtrFactory<SnippetsInternalsMessageHandler> weak_ptr_factory_; |
| 84 | 86 |
| 85 DISALLOW_COPY_AND_ASSIGN(SnippetsInternalsMessageHandler); | 87 DISALLOW_COPY_AND_ASSIGN(SnippetsInternalsMessageHandler); |
| 86 }; | 88 }; |
| 87 | 89 |
| 88 #endif // CHROME_BROWSER_UI_WEBUI_SNIPPETS_INTERNALS_MESSAGE_HANDLER_H_ | 90 #endif // CHROME_BROWSER_UI_WEBUI_SNIPPETS_INTERNALS_MESSAGE_HANDLER_H_ |
| OLD | NEW |