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

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

Issue 1874903002: Convert //content from scoped_ptr to std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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 29 matching lines...) Expand all
40 40
41 // PlatformNotificationService implementation. 41 // PlatformNotificationService implementation.
42 blink::WebNotificationPermission CheckPermissionOnUIThread( 42 blink::WebNotificationPermission CheckPermissionOnUIThread(
43 BrowserContext* browser_context, 43 BrowserContext* browser_context,
44 const GURL& origin, 44 const GURL& origin,
45 int render_process_id) override; 45 int render_process_id) override;
46 blink::WebNotificationPermission CheckPermissionOnIOThread( 46 blink::WebNotificationPermission CheckPermissionOnIOThread(
47 ResourceContext* resource_context, 47 ResourceContext* resource_context,
48 const GURL& origin, 48 const GURL& origin,
49 int render_process_id) override; 49 int render_process_id) override;
50 void DisplayNotification(BrowserContext* browser_context, 50 void DisplayNotification(
51 const GURL& origin, 51 BrowserContext* browser_context,
52 const PlatformNotificationData& notification_data, 52 const GURL& origin,
53 const NotificationResources& notification_resources, 53 const PlatformNotificationData& notification_data,
54 scoped_ptr<DesktopNotificationDelegate> delegate, 54 const NotificationResources& notification_resources,
55 base::Closure* cancel_callback) override; 55 std::unique_ptr<DesktopNotificationDelegate> delegate,
56 base::Closure* cancel_callback) override;
56 void DisplayPersistentNotification( 57 void DisplayPersistentNotification(
57 BrowserContext* browser_context, 58 BrowserContext* browser_context,
58 int64_t persistent_notification_id, 59 int64_t persistent_notification_id,
59 const GURL& origin, 60 const GURL& origin,
60 const PlatformNotificationData& notification_data, 61 const PlatformNotificationData& notification_data,
61 const NotificationResources& notification_resources) override; 62 const NotificationResources& notification_resources) override;
62 void ClosePersistentNotification( 63 void ClosePersistentNotification(
63 BrowserContext* browser_context, 64 BrowserContext* browser_context,
64 int64_t persistent_notification_id) override; 65 int64_t persistent_notification_id) override;
65 bool GetDisplayedPersistentNotifications( 66 bool GetDisplayedPersistentNotifications(
(...skipping 27 matching lines...) Expand all
93 std::map<std::string, std::string> replacements_; 94 std::map<std::string, std::string> replacements_;
94 95
95 base::WeakPtrFactory<LayoutTestNotificationManager> weak_factory_; 96 base::WeakPtrFactory<LayoutTestNotificationManager> weak_factory_;
96 97
97 DISALLOW_COPY_AND_ASSIGN(LayoutTestNotificationManager); 98 DISALLOW_COPY_AND_ASSIGN(LayoutTestNotificationManager);
98 }; 99 };
99 100
100 } // content 101 } // content
101 102
102 #endif // CONTENT_SHELL_BROWSER_LAYOUT_TEST_LAYOUT_TEST_NOTIFICATION_MANAGER_H_ 103 #endif // CONTENT_SHELL_BROWSER_LAYOUT_TEST_LAYOUT_TEST_NOTIFICATION_MANAGER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698