OLD | NEW |
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 Loading... |
34 #include "bindings/core/v8/ScriptPromise.h" | 34 #include "bindings/core/v8/ScriptPromise.h" |
35 #include "bindings/core/v8/SerializedScriptValue.h" | 35 #include "bindings/core/v8/SerializedScriptValue.h" |
36 #include "core/workers/AbstractWorker.h" | 36 #include "core/workers/AbstractWorker.h" |
37 #include "public/platform/WebServiceWorker.h" | 37 #include "public/platform/WebServiceWorker.h" |
38 #include "public/platform/WebServiceWorkerProxy.h" | 38 #include "public/platform/WebServiceWorkerProxy.h" |
39 #include "wtf/OwnPtr.h" | 39 #include "wtf/OwnPtr.h" |
40 #include "wtf/PassOwnPtr.h" | 40 #include "wtf/PassOwnPtr.h" |
41 #include "wtf/PassRefPtr.h" | 41 #include "wtf/PassRefPtr.h" |
42 #include "wtf/RefCounted.h" | 42 #include "wtf/RefCounted.h" |
43 | 43 |
44 namespace WebCore { | 44 namespace blink { |
45 | 45 |
46 class ScriptState; | 46 class ScriptState; |
47 class ScriptPromiseResolver; | 47 class ScriptPromiseResolver; |
48 | 48 |
49 class ServiceWorker | 49 class ServiceWorker |
50 : public AbstractWorker | 50 : public AbstractWorker |
51 , public blink::WebServiceWorkerProxy { | 51 , public blink::WebServiceWorkerProxy { |
52 public: | 52 public: |
53 virtual ~ServiceWorker() { } | 53 virtual ~ServiceWorker() { } |
54 | 54 |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
89 void waitOnPromise(ScriptPromise); | 89 void waitOnPromise(ScriptPromise); |
90 | 90 |
91 // ActiveDOMObject overrides. | 91 // ActiveDOMObject overrides. |
92 virtual bool hasPendingActivity() const OVERRIDE; | 92 virtual bool hasPendingActivity() const OVERRIDE; |
93 virtual void stop() OVERRIDE; | 93 virtual void stop() OVERRIDE; |
94 | 94 |
95 OwnPtr<blink::WebServiceWorker> m_outerWorker; | 95 OwnPtr<blink::WebServiceWorker> m_outerWorker; |
96 ProxyState m_proxyState; | 96 ProxyState m_proxyState; |
97 }; | 97 }; |
98 | 98 |
99 } // namespace WebCore | 99 } // namespace blink |
100 | 100 |
101 #endif // ServiceWorker_h | 101 #endif // ServiceWorker_h |
OLD | NEW |