| 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 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 57 // events/upcall methods that are to be called by embedder/chromium, | 57 // events/upcall methods that are to be called by embedder/chromium, |
| 58 // e.g. onfetch. | 58 // e.g. onfetch. |
| 59 // | 59 // |
| 60 // An instance of this class is supposed to outlive until | 60 // An instance of this class is supposed to outlive until |
| 61 // workerThreadTerminated() is called by its corresponding | 61 // workerThreadTerminated() is called by its corresponding |
| 62 // WorkerGlobalScope. | 62 // WorkerGlobalScope. |
| 63 class ServiceWorkerGlobalScopeProxy final | 63 class ServiceWorkerGlobalScopeProxy final |
| 64 : public WebServiceWorkerContextProxy | 64 : public WebServiceWorkerContextProxy |
| 65 , public WorkerReportingProxy { | 65 , public WorkerReportingProxy { |
| 66 WTF_MAKE_NONCOPYABLE(ServiceWorkerGlobalScopeProxy); | 66 WTF_MAKE_NONCOPYABLE(ServiceWorkerGlobalScopeProxy); |
| 67 WTF_MAKE_FAST_ALLOCATED(ServiceWorkerGlobalScopeProxy); |
| 67 public: | 68 public: |
| 68 static PassOwnPtr<ServiceWorkerGlobalScopeProxy> create(WebEmbeddedWorkerImp
l&, Document&, WebServiceWorkerContextClient&); | 69 static PassOwnPtr<ServiceWorkerGlobalScopeProxy> create(WebEmbeddedWorkerImp
l&, Document&, WebServiceWorkerContextClient&); |
| 69 ~ServiceWorkerGlobalScopeProxy() override; | 70 ~ServiceWorkerGlobalScopeProxy() override; |
| 70 | 71 |
| 71 // WebServiceWorkerContextProxy overrides: | 72 // WebServiceWorkerContextProxy overrides: |
| 72 void setRegistration(WebServiceWorkerRegistration*) override; | 73 void setRegistration(WebServiceWorkerRegistration*) override; |
| 73 void dispatchActivateEvent(int) override; | 74 void dispatchActivateEvent(int) override; |
| 74 void dispatchCrossOriginMessageEvent(const WebCrossOriginServiceWorkerClient
&, const WebString& message, const WebMessagePortChannelArray&) override; | 75 void dispatchCrossOriginMessageEvent(const WebCrossOriginServiceWorkerClient
&, const WebString& message, const WebMessagePortChannelArray&) override; |
| 75 void dispatchFetchEvent(int, const WebServiceWorkerRequest&) override; | 76 void dispatchFetchEvent(int, const WebServiceWorkerRequest&) override; |
| 76 void dispatchGeofencingEvent(int, WebGeofencingEventType, const WebString& r
egionID, const WebCircularGeofencingRegion&) override; | 77 void dispatchGeofencingEvent(int, WebGeofencingEventType, const WebString& r
egionID, const WebCircularGeofencingRegion&) override; |
| (...skipping 22 matching lines...) Expand all Loading... |
| 99 Document& m_document; | 100 Document& m_document; |
| 100 | 101 |
| 101 WebServiceWorkerContextClient& m_client; | 102 WebServiceWorkerContextClient& m_client; |
| 102 | 103 |
| 103 ServiceWorkerGlobalScope* m_workerGlobalScope; | 104 ServiceWorkerGlobalScope* m_workerGlobalScope; |
| 104 }; | 105 }; |
| 105 | 106 |
| 106 } // namespace blink | 107 } // namespace blink |
| 107 | 108 |
| 108 #endif // ServiceWorkerGlobalScopeProxy_h | 109 #endif // ServiceWorkerGlobalScopeProxy_h |
| OLD | NEW |