diff options
Diffstat (limited to 'chrome/browser/dom_ui/tips_handler.h')
-rw-r--r-- | chrome/browser/dom_ui/tips_handler.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/chrome/browser/dom_ui/tips_handler.h b/chrome/browser/dom_ui/tips_handler.h index a5915ec..d85d4d8 100644 --- a/chrome/browser/dom_ui/tips_handler.h +++ b/chrome/browser/dom_ui/tips_handler.h @@ -9,6 +9,8 @@ #ifndef CHROME_BROWSER_DOM_UI_TIPS_HANDLER_H_ #define CHROME_BROWSER_DOM_UI_TIPS_HANDLER_H_ +#include <string> + #include "chrome/browser/dom_ui/dom_ui.h" class DictionaryValue; @@ -35,6 +37,11 @@ class TipsHandler : public DOMMessageHandler { // Make sure the string we are pushing to the NTP is a valid URL. bool IsValidURL(const std::wstring& url_string); + // Send a tip to the NTP. tip_type is "tip_html_text" if the tip is from + // the tip server, and "set_homepage_tip" if it's the tip to set the NTP + // as home page. + void SendTip(std::string tip, std::wstring tip_type, int tip_index); + // So we can push data out to the page that has called this handler. DOMUI* dom_ui_; |