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

Side by Side Diff: third_party/WebKit/Source/modules/serviceworkers/ServiceWorker.h

Issue 2629593004: Disambiguate LifecycleObserver::contextDestroyed (Closed)
Patch Set: temp Created 3 years, 11 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
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 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
82 const AtomicString& interfaceName() const override; 82 const AtomicString& interfaceName() const override;
83 83
84 void internalsTerminate(); 84 void internalsTerminate();
85 85
86 private: 86 private:
87 static ServiceWorker* getOrCreate(ExecutionContext*, 87 static ServiceWorker* getOrCreate(ExecutionContext*,
88 std::unique_ptr<WebServiceWorker::Handle>); 88 std::unique_ptr<WebServiceWorker::Handle>);
89 ServiceWorker(ExecutionContext*, std::unique_ptr<WebServiceWorker::Handle>); 89 ServiceWorker(ExecutionContext*, std::unique_ptr<WebServiceWorker::Handle>);
90 90
91 // SuspendableObject overrides. 91 // SuspendableObject overrides.
92 void contextDestroyed() override; 92 void contextDestroyed(ExecutionContext*) override;
93 93
94 // A handle to the service worker representation in the embedder. 94 // A handle to the service worker representation in the embedder.
95 std::unique_ptr<WebServiceWorker::Handle> m_handle; 95 std::unique_ptr<WebServiceWorker::Handle> m_handle;
96 bool m_wasStopped; 96 bool m_wasStopped;
97 }; 97 };
98 98
99 } // namespace blink 99 } // namespace blink
100 100
101 #endif // ServiceWorker_h 101 #endif // ServiceWorker_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698