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

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

Issue 393773004: Oilpan: improve ScriptPromiseProperty's argument types. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Don't add a ref-cycle Created 6 years, 5 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
« no previous file with comments | « Source/bindings/core/v8/ScriptPromisePropertyTest.cpp ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
80 // WebServiceWorkerProviderClient overrides. 80 // WebServiceWorkerProviderClient overrides.
81 virtual void setActive(blink::WebServiceWorker*) OVERRIDE; 81 virtual void setActive(blink::WebServiceWorker*) OVERRIDE;
82 virtual void setController(blink::WebServiceWorker*) OVERRIDE; 82 virtual void setController(blink::WebServiceWorker*) OVERRIDE;
83 virtual void setInstalling(blink::WebServiceWorker*) OVERRIDE; 83 virtual void setInstalling(blink::WebServiceWorker*) OVERRIDE;
84 virtual void setWaiting(blink::WebServiceWorker*) OVERRIDE; 84 virtual void setWaiting(blink::WebServiceWorker*) OVERRIDE;
85 virtual void dispatchMessageEvent(const blink::WebString& message, const bli nk::WebMessagePortChannelArray&) OVERRIDE; 85 virtual void dispatchMessageEvent(const blink::WebString& message, const bli nk::WebMessagePortChannelArray&) OVERRIDE;
86 86
87 private: 87 private:
88 explicit ServiceWorkerContainer(ExecutionContext*); 88 explicit ServiceWorkerContainer(ExecutionContext*);
89 89
90 typedef ScriptPromiseProperty<ServiceWorkerContainer*, RefPtrWillBeMember<Se rviceWorker>, RefPtrWillBeMember<ServiceWorker> > ReadyProperty; 90 typedef ScriptPromiseProperty<RawPtrWillBeMember<ServiceWorkerContainer>, Re fPtrWillBeMember<ServiceWorker>, RefPtrWillBeMember<ServiceWorker> > ReadyProper ty;
91 PassRefPtrWillBeRawPtr<ReadyProperty> createReadyProperty(); 91 PassRefPtrWillBeRawPtr<ReadyProperty> createReadyProperty();
92 void checkReadyChanged(PassRefPtrWillBeRawPtr<ServiceWorker> previousReadyWo rker); 92 void checkReadyChanged(PassRefPtrWillBeRawPtr<ServiceWorker> previousReadyWo rker);
93 93
94 blink::WebServiceWorkerProvider* m_provider; 94 blink::WebServiceWorkerProvider* m_provider;
95 RefPtrWillBeMember<ServiceWorker> m_active; 95 RefPtrWillBeMember<ServiceWorker> m_active;
96 RefPtrWillBeMember<ServiceWorker> m_controller; 96 RefPtrWillBeMember<ServiceWorker> m_controller;
97 RefPtrWillBeMember<ServiceWorker> m_installing; 97 RefPtrWillBeMember<ServiceWorker> m_installing;
98 RefPtrWillBeMember<ServiceWorker> m_waiting; 98 RefPtrWillBeMember<ServiceWorker> m_waiting;
99 RefPtrWillBeMember<ReadyProperty> m_ready; 99 RefPtrWillBeMember<ReadyProperty> m_ready;
100 }; 100 };
101 101
102 } // namespace WebCore 102 } // namespace WebCore
103 103
104 #endif // ServiceWorkerContainer_h 104 #endif // ServiceWorkerContainer_h
OLDNEW
« no previous file with comments | « Source/bindings/core/v8/ScriptPromisePropertyTest.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698