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

Side by Side Diff: Source/modules/serviceworkers/ServiceWorkerContainer.h

Issue 1163253003: Clean up macros around DEFINE_EVENT_TARGET_REFCOUNTING (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 6 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 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
51 class ExecutionContext; 51 class ExecutionContext;
52 class WebServiceWorker; 52 class WebServiceWorker;
53 class WebServiceWorkerProvider; 53 class WebServiceWorkerProvider;
54 class WebServiceWorkerRegistration; 54 class WebServiceWorkerRegistration;
55 55
56 class MODULES_EXPORT ServiceWorkerContainer final 56 class MODULES_EXPORT ServiceWorkerContainer final
57 : public RefCountedGarbageCollectedEventTargetWithInlineData<ServiceWorkerCo ntainer> 57 : public RefCountedGarbageCollectedEventTargetWithInlineData<ServiceWorkerCo ntainer>
58 , public ContextLifecycleObserver 58 , public ContextLifecycleObserver
59 , public WebServiceWorkerProviderClient { 59 , public WebServiceWorkerProviderClient {
60 DEFINE_WRAPPERTYPEINFO(); 60 DEFINE_WRAPPERTYPEINFO();
61 DEFINE_EVENT_TARGET_REFCOUNTING_WILL_BE_REMOVED(RefCountedGarbageCollected<S erviceWorkerContainer>); 61 REFCOUNTED_GARBAGE_COLLECTED_EVENT_TARGET(ServiceWorkerContainer);
62 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(ServiceWorkerContainer); 62 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(ServiceWorkerContainer);
63 public: 63 public:
64 static ServiceWorkerContainer* create(ExecutionContext*); 64 static ServiceWorkerContainer* create(ExecutionContext*);
65 ~ServiceWorkerContainer(); 65 ~ServiceWorkerContainer();
66 66
67 void willBeDetachedFromFrame(); 67 void willBeDetachedFromFrame();
68 68
69 DECLARE_VIRTUAL_TRACE(); 69 DECLARE_VIRTUAL_TRACE();
70 70
71 PassRefPtrWillBeRawPtr<ServiceWorker> controller() { return m_controller.get (); } 71 PassRefPtrWillBeRawPtr<ServiceWorker> controller() { return m_controller.get (); }
(...skipping 21 matching lines...) Expand all
93 ReadyProperty* createReadyProperty(); 93 ReadyProperty* createReadyProperty();
94 94
95 WebServiceWorkerProvider* m_provider; 95 WebServiceWorkerProvider* m_provider;
96 RefPtrWillBeMember<ServiceWorker> m_controller; 96 RefPtrWillBeMember<ServiceWorker> m_controller;
97 Member<ReadyProperty> m_ready; 97 Member<ReadyProperty> m_ready;
98 }; 98 };
99 99
100 } // namespace blink 100 } // namespace blink
101 101
102 #endif // ServiceWorkerContainer_h 102 #endif // ServiceWorkerContainer_h
OLDNEW
« no previous file with comments | « Source/modules/screen_orientation/ScreenOrientation.h ('k') | Source/modules/serviceworkers/ServiceWorkerRegistration.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698