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

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

Issue 2466383004: blink: Cleanup class forward declarations (Closed)
Patch Set: Created 4 years, 1 month 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 25 matching lines...) Expand all
36 #include "bindings/core/v8/SerializedScriptValue.h" 36 #include "bindings/core/v8/SerializedScriptValue.h"
37 #include "core/workers/AbstractWorker.h" 37 #include "core/workers/AbstractWorker.h"
38 #include "modules/ModulesExport.h" 38 #include "modules/ModulesExport.h"
39 #include "public/platform/modules/serviceworker/WebServiceWorker.h" 39 #include "public/platform/modules/serviceworker/WebServiceWorker.h"
40 #include "public/platform/modules/serviceworker/WebServiceWorkerProxy.h" 40 #include "public/platform/modules/serviceworker/WebServiceWorkerProxy.h"
41 #include "wtf/PassRefPtr.h" 41 #include "wtf/PassRefPtr.h"
42 #include <memory> 42 #include <memory>
43 43
44 namespace blink { 44 namespace blink {
45 45
46 class ScriptPromiseResolver;
47
48 class MODULES_EXPORT ServiceWorker final : public AbstractWorker, 46 class MODULES_EXPORT ServiceWorker final : public AbstractWorker,
49 public ActiveScriptWrappable, 47 public ActiveScriptWrappable,
50 public WebServiceWorkerProxy { 48 public WebServiceWorkerProxy {
51 DEFINE_WRAPPERTYPEINFO(); 49 DEFINE_WRAPPERTYPEINFO();
52 USING_GARBAGE_COLLECTED_MIXIN(ServiceWorker); 50 USING_GARBAGE_COLLECTED_MIXIN(ServiceWorker);
53 51
54 public: 52 public:
55 static ServiceWorker* from(ExecutionContext*, 53 static ServiceWorker* from(ExecutionContext*,
56 std::unique_ptr<WebServiceWorker::Handle>); 54 std::unique_ptr<WebServiceWorker::Handle>);
57 55
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
91 void contextDestroyed() override; 89 void contextDestroyed() override;
92 90
93 // A handle to the service worker representation in the embedder. 91 // A handle to the service worker representation in the embedder.
94 std::unique_ptr<WebServiceWorker::Handle> m_handle; 92 std::unique_ptr<WebServiceWorker::Handle> m_handle;
95 bool m_wasStopped; 93 bool m_wasStopped;
96 }; 94 };
97 95
98 } // namespace blink 96 } // namespace blink
99 97
100 #endif // ServiceWorker_h 98 #endif // ServiceWorker_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698