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

Side by Side Diff: content/shell/browser/layout_test/layout_test_notification_manager.h

Issue 2151993002: [WebAPKs] Plumb service worker scope to notifications (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Merge branch 'master' into notification_scope Created 4 years, 5 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 CONTENT_SHELL_BROWSER_LAYOUT_TEST_LAYOUT_TEST_NOTIFICATION_MANAGER_H_ 5 #ifndef CONTENT_SHELL_BROWSER_LAYOUT_TEST_LAYOUT_TEST_NOTIFICATION_MANAGER_H_
6 #define CONTENT_SHELL_BROWSER_LAYOUT_TEST_LAYOUT_TEST_NOTIFICATION_MANAGER_H_ 6 #define CONTENT_SHELL_BROWSER_LAYOUT_TEST_LAYOUT_TEST_NOTIFICATION_MANAGER_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 #include <map> 9 #include <map>
10 #include <string> 10 #include <string>
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
50 void DisplayNotification( 50 void DisplayNotification(
51 BrowserContext* browser_context, 51 BrowserContext* browser_context,
52 const GURL& origin, 52 const GURL& origin,
53 const PlatformNotificationData& notification_data, 53 const PlatformNotificationData& notification_data,
54 const NotificationResources& notification_resources, 54 const NotificationResources& notification_resources,
55 std::unique_ptr<DesktopNotificationDelegate> delegate, 55 std::unique_ptr<DesktopNotificationDelegate> delegate,
56 base::Closure* cancel_callback) override; 56 base::Closure* cancel_callback) override;
57 void DisplayPersistentNotification( 57 void DisplayPersistentNotification(
58 BrowserContext* browser_context, 58 BrowserContext* browser_context,
59 int64_t persistent_notification_id, 59 int64_t persistent_notification_id,
60 const GURL& service_worker_scope,
60 const GURL& origin, 61 const GURL& origin,
61 const PlatformNotificationData& notification_data, 62 const PlatformNotificationData& notification_data,
62 const NotificationResources& notification_resources) override; 63 const NotificationResources& notification_resources) override;
63 void ClosePersistentNotification( 64 void ClosePersistentNotification(
64 BrowserContext* browser_context, 65 BrowserContext* browser_context,
65 int64_t persistent_notification_id) override; 66 int64_t persistent_notification_id) override;
66 bool GetDisplayedPersistentNotifications( 67 bool GetDisplayedPersistentNotifications(
67 BrowserContext* browser_context, 68 BrowserContext* browser_context,
68 std::set<std::string>* displayed_notifications) override; 69 std::set<std::string>* displayed_notifications) override;
69 70
(...skipping 24 matching lines...) Expand all
94 std::map<std::string, std::string> replacements_; 95 std::map<std::string, std::string> replacements_;
95 96
96 base::WeakPtrFactory<LayoutTestNotificationManager> weak_factory_; 97 base::WeakPtrFactory<LayoutTestNotificationManager> weak_factory_;
97 98
98 DISALLOW_COPY_AND_ASSIGN(LayoutTestNotificationManager); 99 DISALLOW_COPY_AND_ASSIGN(LayoutTestNotificationManager);
99 }; 100 };
100 101
101 } // content 102 } // content
102 103
103 #endif // CONTENT_SHELL_BROWSER_LAYOUT_TEST_LAYOUT_TEST_NOTIFICATION_MANAGER_H_ 104 #endif // CONTENT_SHELL_BROWSER_LAYOUT_TEST_LAYOUT_TEST_NOTIFICATION_MANAGER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698