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

Side by Side Diff: Source/modules/notifications/WebKitNotification.cpp

Issue 169293002: Oilpan: Remove GC_INFO_{DEFINE,DECLARE} macros (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: fixheaptest Created 6 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 | Annotate | Revision Log
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 23 matching lines...) Expand all
34 #if ENABLE(LEGACY_NOTIFICATIONS) 34 #if ENABLE(LEGACY_NOTIFICATIONS)
35 35
36 #include "bindings/v8/ExceptionState.h" 36 #include "bindings/v8/ExceptionState.h"
37 #include "bindings/v8/ScriptWrappable.h" 37 #include "bindings/v8/ScriptWrappable.h"
38 #include "core/dom/ExecutionContext.h" 38 #include "core/dom/ExecutionContext.h"
39 #include "modules/notifications/NotificationCenter.h" 39 #include "modules/notifications/NotificationCenter.h"
40 #include "modules/notifications/NotificationClient.h" 40 #include "modules/notifications/NotificationClient.h"
41 41
42 namespace WebCore { 42 namespace WebCore {
43 43
44 DEFINE_GC_INFO(WebKitNotification);
45
46 PassRefPtrWillBeRawPtr<WebKitNotification> WebKitNotification::create(const Stri ng& title, const String& body, const String& iconUrl, ExecutionContext* context, ExceptionState& es, PassRefPtrWillBeRawPtr<NotificationCenter> provider) 44 PassRefPtrWillBeRawPtr<WebKitNotification> WebKitNotification::create(const Stri ng& title, const String& body, const String& iconUrl, ExecutionContext* context, ExceptionState& es, PassRefPtrWillBeRawPtr<NotificationCenter> provider)
47 { 45 {
48 RefPtrWillBeRawPtr<WebKitNotification> notification = adoptRefCountedWillBeR efCountedGarbageCollected(new WebKitNotification(title, body, iconUrl, context, es, provider)); 46 RefPtrWillBeRawPtr<WebKitNotification> notification = adoptRefCountedWillBeR efCountedGarbageCollected(new WebKitNotification(title, body, iconUrl, context, es, provider));
49 notification->suspendIfNeeded(); 47 notification->suspendIfNeeded();
50 48
51 return notification.release(); 49 return notification.release();
52 } 50 }
53 51
54 WebKitNotification::WebKitNotification(const String& title, const String& body, const String& iconUrl, ExecutionContext* context, ExceptionState& es, PassRefPtr WillBeRawPtr<NotificationCenter> provider) 52 WebKitNotification::WebKitNotification(const String& title, const String& body, const String& iconUrl, ExecutionContext* context, ExceptionState& es, PassRefPtr WillBeRawPtr<NotificationCenter> provider)
55 : NotificationBase(title, context, provider->client()) 53 : NotificationBase(title, context, provider->client())
(...skipping 20 matching lines...) Expand all
76 } 74 }
77 75
78 const AtomicString& WebKitNotification::interfaceName() const 76 const AtomicString& WebKitNotification::interfaceName() const
79 { 77 {
80 return EventTargetNames::WebKitNotification; 78 return EventTargetNames::WebKitNotification;
81 } 79 }
82 80
83 } // namespace WebCore 81 } // namespace WebCore
84 82
85 #endif // ENABLE(LEGACY_NOTIFICATIONS) 83 #endif // ENABLE(LEGACY_NOTIFICATIONS)
OLDNEW
« no previous file with comments | « Source/modules/notifications/WebKitNotification.h ('k') | Source/modules/performance/WorkerPerformance.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698