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_ANDROID_NTP_CONTENT_SUGGESTIONS_NOTIFICATION_HELPER_H_ | 5 #ifndef CHROME_BROWSER_ANDROID_NTP_CONTENT_SUGGESTIONS_NOTIFICATION_HELPER_H_ |
6 #define CHROME_BROWSER_ANDROID_NTP_CONTENT_SUGGESTIONS_NOTIFICATION_HELPER_H_ | 6 #define CHROME_BROWSER_ANDROID_NTP_CONTENT_SUGGESTIONS_NOTIFICATION_HELPER_H_ |
7 | 7 |
| 8 #include <string> |
| 9 |
8 #include "base/macros.h" | 10 #include "base/macros.h" |
| 11 #include "base/strings/string16.h" |
9 #include "url/gurl.h" | 12 #include "url/gurl.h" |
10 | 13 |
| 14 namespace gfx { |
| 15 class Image; |
| 16 } // namespace gfx |
| 17 |
11 namespace ntp_snippets { | 18 namespace ntp_snippets { |
12 | 19 |
13 class ContentSuggestionsNotificationHelper { | 20 class ContentSuggestionsNotificationHelper { |
14 public: | 21 public: |
15 static void OpenURL(const GURL& url); | 22 static void OpenURL(const GURL& url); |
| 23 static void SendNotification(const GURL& url, |
| 24 const base::string16& title, |
| 25 const base::string16& text, |
| 26 const gfx::Image& image); |
| 27 static void HideNotification(); |
16 | 28 |
17 private: | 29 private: |
18 DISALLOW_IMPLICIT_CONSTRUCTORS(ContentSuggestionsNotificationHelper); | 30 DISALLOW_IMPLICIT_CONSTRUCTORS(ContentSuggestionsNotificationHelper); |
19 }; | 31 }; |
20 | 32 |
21 } // namespace ntp_snippets | 33 } // namespace ntp_snippets |
22 | 34 |
23 #endif // CHROME_BROWSER_ANDROID_NTP_CONTENT_SUGGESTIONS_NOTIFICATION_HELPER_H_ | 35 #endif // CHROME_BROWSER_ANDROID_NTP_CONTENT_SUGGESTIONS_NOTIFICATION_HELPER_H_ |
OLD | NEW |