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

Side by Side Diff: third_party/WebKit/Source/modules/notifications/Notification.h

Issue 2577053002: ActiveScriptWrappable: GC wrappers in detached ExecutionContexts. (Closed)
Patch Set: component build fix(msvc) Created 4 years 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 /* 1 /*
2 * Copyright (C) 2013 Google Inc. All rights reserved. 2 * Copyright (C) 2013 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
50 #include "public/platform/modules/permissions/permission_status.mojom-blink.h" 50 #include "public/platform/modules/permissions/permission_status.mojom-blink.h"
51 51
52 namespace blink { 52 namespace blink {
53 53
54 class ExecutionContext; 54 class ExecutionContext;
55 class NotificationOptions; 55 class NotificationOptions;
56 class NotificationPermissionCallback; 56 class NotificationPermissionCallback;
57 class NotificationResourcesLoader; 57 class NotificationResourcesLoader;
58 class ScriptState; 58 class ScriptState;
59 59
60 class MODULES_EXPORT Notification final : public EventTargetWithInlineData, 60 class MODULES_EXPORT Notification final
61 public ActiveScriptWrappable, 61 : public EventTargetWithInlineData,
62 public SuspendableObject, 62 public ActiveScriptWrappable<Notification>,
63 public WebNotificationDelegate { 63 public SuspendableObject,
64 public WebNotificationDelegate {
64 USING_GARBAGE_COLLECTED_MIXIN(Notification); 65 USING_GARBAGE_COLLECTED_MIXIN(Notification);
65 DEFINE_WRAPPERTYPEINFO(); 66 DEFINE_WRAPPERTYPEINFO();
66 67
67 public: 68 public:
68 // Used for JavaScript instantiations of non-persistent notifications. Will 69 // Used for JavaScript instantiations of non-persistent notifications. Will
69 // automatically schedule for the notification to be displayed to the user 70 // automatically schedule for the notification to be displayed to the user
70 // when the developer-provided data is valid. 71 // when the developer-provided data is valid.
71 static Notification* create(ExecutionContext*, 72 static Notification* create(ExecutionContext*,
72 const String& title, 73 const String& title,
73 const NotificationOptions&, 74 const NotificationOptions&,
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after
176 String m_notificationId; 177 String m_notificationId;
177 178
178 Member<AsyncMethodRunner<Notification>> m_prepareShowMethodRunner; 179 Member<AsyncMethodRunner<Notification>> m_prepareShowMethodRunner;
179 180
180 Member<NotificationResourcesLoader> m_loader; 181 Member<NotificationResourcesLoader> m_loader;
181 }; 182 };
182 183
183 } // namespace blink 184 } // namespace blink
184 185
185 #endif // Notification_h 186 #endif // Notification_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698