OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2008, 2009 Apple Inc. All rights reserved. | 2 * Copyright (C) 2008, 2009 Apple 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 | 5 * modification, are permitted provided that the following conditions |
6 * are met: | 6 * are met: |
7 * 1. Redistributions of source code must retain the above copyright | 7 * 1. Redistributions of source code must retain the above copyright |
8 * notice, this list of conditions and the following disclaimer. | 8 * notice, this list of conditions and the following disclaimer. |
9 * 2. Redistributions in binary form must reproduce the above copyright | 9 * 2. Redistributions in binary form must reproduce the above copyright |
10 * notice, this list of conditions and the following disclaimer in the | 10 * notice, this list of conditions and the following disclaimer in the |
(...skipping 24 matching lines...) Expand all Loading... |
35 namespace WebCore { | 35 namespace WebCore { |
36 | 36 |
37 class NotificationCenter; | 37 class NotificationCenter; |
38 class ExecutionContext; | 38 class ExecutionContext; |
39 class WorkerGlobalScope; | 39 class WorkerGlobalScope; |
40 | 40 |
41 class WorkerGlobalScopeNotifications FINAL : public WorkerSupplement { | 41 class WorkerGlobalScopeNotifications FINAL : public WorkerSupplement { |
42 public: | 42 public: |
43 virtual ~WorkerGlobalScopeNotifications(); | 43 virtual ~WorkerGlobalScopeNotifications(); |
44 | 44 |
45 static NotificationCenter* webkitNotifications(WorkerGlobalScope*); | 45 static NotificationCenter* webkitNotifications(WorkerGlobalScope&); |
46 static WorkerGlobalScopeNotifications* from(WorkerGlobalScope*); | 46 static WorkerGlobalScopeNotifications& from(WorkerGlobalScope&); |
47 | 47 |
48 private: | 48 private: |
49 explicit WorkerGlobalScopeNotifications(WorkerGlobalScope*); | 49 explicit WorkerGlobalScopeNotifications(WorkerGlobalScope&); |
50 | 50 |
51 NotificationCenter* webkitNotifications(); | 51 NotificationCenter* webkitNotifications(); |
52 static const char* supplementName(); | 52 static const char* supplementName(); |
53 | 53 |
54 WorkerGlobalScope* m_context; | 54 WorkerGlobalScope& m_context; |
55 RefPtrWillBePersistent<NotificationCenter> m_notificationCenter; | 55 RefPtrWillBePersistent<NotificationCenter> m_notificationCenter; |
56 }; | 56 }; |
57 | 57 |
58 } // namespace WebCore | 58 } // namespace WebCore |
59 | 59 |
60 #endif // WorkerGlobalScopeNotifications_h | 60 #endif // WorkerGlobalScopeNotifications_h |
61 | 61 |
62 #endif // ENABLE(LEGACY_NOTIFICATIONS) | 62 #endif // ENABLE(LEGACY_NOTIFICATIONS) |
OLD | NEW |