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

Side by Side Diff: chrome/browser/ui/webui/snippets_internals_message_handler.h

Issue 2889153003: [NTP::SectionOrder] Add ranker section to snippets internals. (Closed)
Patch Set: jkrcal@ nit. Created 3 years, 7 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 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 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
57 void HandleRefreshContent(const base::ListValue* args); 57 void HandleRefreshContent(const base::ListValue* args);
58 void HandleDownload(const base::ListValue* args); 58 void HandleDownload(const base::ListValue* args);
59 void HandleClearCachedSuggestions(const base::ListValue* args); 59 void HandleClearCachedSuggestions(const base::ListValue* args);
60 void HandleClearDismissedSuggestions(const base::ListValue* args); 60 void HandleClearDismissedSuggestions(const base::ListValue* args);
61 void HandleToggleDismissedSuggestions(const base::ListValue* args); 61 void HandleToggleDismissedSuggestions(const base::ListValue* args);
62 void ClearClassification(const base::ListValue* args); 62 void ClearClassification(const base::ListValue* args);
63 void FetchRemoteSuggestionsInTheBackground(const base::ListValue* args); 63 void FetchRemoteSuggestionsInTheBackground(const base::ListValue* args);
64 64
65 void SendAllContent(); 65 void SendAllContent();
66 void SendClassification(); 66 void SendClassification();
67 void SendRankerDebugData();
67 void SendLastRemoteSuggestionsBackgroundFetchTime(); 68 void SendLastRemoteSuggestionsBackgroundFetchTime();
68 void SendContentSuggestions(); 69 void SendContentSuggestions();
69 void SendBoolean(const std::string& name, bool value); 70 void SendBoolean(const std::string& name, bool value);
70 void SendString(const std::string& name, const std::string& value); 71 void SendString(const std::string& name, const std::string& value);
71 72
72 void OnDismissedSuggestionsLoaded( 73 void OnDismissedSuggestionsLoaded(
73 ntp_snippets::Category category, 74 ntp_snippets::Category category,
74 std::vector<ntp_snippets::ContentSuggestion> dismissed_suggestions); 75 std::vector<ntp_snippets::ContentSuggestion> dismissed_suggestions);
75 76
76 ScopedObserver<ntp_snippets::ContentSuggestionsService, 77 ScopedObserver<ntp_snippets::ContentSuggestionsService,
(...skipping 15 matching lines...) Expand all
92 std::vector<ntp_snippets::ContentSuggestion>, 93 std::vector<ntp_snippets::ContentSuggestion>,
93 ntp_snippets::Category::CompareByID> 94 ntp_snippets::Category::CompareByID>
94 dismissed_suggestions_; 95 dismissed_suggestions_;
95 96
96 base::WeakPtrFactory<SnippetsInternalsMessageHandler> weak_ptr_factory_; 97 base::WeakPtrFactory<SnippetsInternalsMessageHandler> weak_ptr_factory_;
97 98
98 DISALLOW_COPY_AND_ASSIGN(SnippetsInternalsMessageHandler); 99 DISALLOW_COPY_AND_ASSIGN(SnippetsInternalsMessageHandler);
99 }; 100 };
100 101
101 #endif // CHROME_BROWSER_UI_WEBUI_SNIPPETS_INTERNALS_MESSAGE_HANDLER_H_ 102 #endif // CHROME_BROWSER_UI_WEBUI_SNIPPETS_INTERNALS_MESSAGE_HANDLER_H_
OLDNEW
« no previous file with comments | « chrome/browser/resources/snippets_internals.js ('k') | chrome/browser/ui/webui/snippets_internals_message_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698