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

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

Issue 661643002: Adds a context message of the security origin for web notifications. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Merge Created 5 years, 10 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 <map> 8 #include <map>
9 #include <string> 9 #include <string>
10 10
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
56 int render_process_id) override; 56 int render_process_id) override;
57 blink::WebNotificationPermission CheckPermissionOnIOThread( 57 blink::WebNotificationPermission CheckPermissionOnIOThread(
58 ResourceContext* resource_context, 58 ResourceContext* resource_context,
59 const GURL& origin, 59 const GURL& origin,
60 int render_process_id) override; 60 int render_process_id) override;
61 void DisplayNotification(BrowserContext* browser_context, 61 void DisplayNotification(BrowserContext* browser_context,
62 const GURL& origin, 62 const GURL& origin,
63 const SkBitmap& icon, 63 const SkBitmap& icon,
64 const PlatformNotificationData& notification_data, 64 const PlatformNotificationData& notification_data,
65 scoped_ptr<DesktopNotificationDelegate> delegate, 65 scoped_ptr<DesktopNotificationDelegate> delegate,
66 int render_process_id,
67 base::Closure* cancel_callback) override; 66 base::Closure* cancel_callback) override;
68 void DisplayPersistentNotification( 67 void DisplayPersistentNotification(
69 BrowserContext* browser_context, 68 BrowserContext* browser_context,
70 int64 service_worker_registration_id, 69 int64 service_worker_registration_id,
71 const GURL& origin, 70 const GURL& origin,
72 const SkBitmap& icon, 71 const SkBitmap& icon,
73 const PlatformNotificationData& notification_data, 72 const PlatformNotificationData& notification_data) override;
74 int render_process_id) override;
75 void ClosePersistentNotification( 73 void ClosePersistentNotification(
76 BrowserContext* browser_context, 74 BrowserContext* browser_context,
77 const std::string& persistent_notification_id) override; 75 const std::string& persistent_notification_id) override;
78 76
79 private: 77 private:
80 // Closes the notification titled |title|. Must be called on the UI thread. 78 // Closes the notification titled |title|. Must be called on the UI thread.
81 void Close(const std::string& title); 79 void Close(const std::string& title);
82 80
83 // Fakes replacing the notification identified by |params| when it has a tag 81 // Fakes replacing the notification identified by |params| when it has a tag
84 // and a previous notification has been displayed using the same tag. All 82 // and a previous notification has been displayed using the same tag. All
(...skipping 21 matching lines...) Expand all
106 std::map<std::string, std::string> replacements_; 104 std::map<std::string, std::string> replacements_;
107 105
108 base::WeakPtrFactory<LayoutTestNotificationManager> weak_factory_; 106 base::WeakPtrFactory<LayoutTestNotificationManager> weak_factory_;
109 107
110 DISALLOW_COPY_AND_ASSIGN(LayoutTestNotificationManager); 108 DISALLOW_COPY_AND_ASSIGN(LayoutTestNotificationManager);
111 }; 109 };
112 110
113 } // content 111 } // content
114 112
115 #endif // CONTENT_SHELL_BROWSER_LAYOUT_TEST_LAYOUT_TEST_NOTIFICATION_MANAGER_H_ 113 #endif // CONTENT_SHELL_BROWSER_LAYOUT_TEST_LAYOUT_TEST_NOTIFICATION_MANAGER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698