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

Side by Side Diff: Source/web/ServiceWorkerGlobalScopeProxy.h

Issue 692003002: ServiceWorker: Registering a malformed script should fail [1/3] (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 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
« no previous file with comments | « Source/core/workers/WorkerThread.cpp ('k') | Source/web/ServiceWorkerGlobalScopeProxy.cpp » ('j') | 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 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
73 virtual void dispatchFetchEvent(int, const WebServiceWorkerRequest&) overrid e; 73 virtual void dispatchFetchEvent(int, const WebServiceWorkerRequest&) overrid e;
74 virtual void dispatchGeofencingEvent(int, WebGeofencingEventType, const WebS tring& regionID, const WebCircularGeofencingRegion&) override; 74 virtual void dispatchGeofencingEvent(int, WebGeofencingEventType, const WebS tring& regionID, const WebCircularGeofencingRegion&) override;
75 virtual void dispatchMessageEvent(const WebString& message, const WebMessage PortChannelArray&) override; 75 virtual void dispatchMessageEvent(const WebString& message, const WebMessage PortChannelArray&) override;
76 virtual void dispatchPushEvent(int, const WebString& data) override; 76 virtual void dispatchPushEvent(int, const WebString& data) override;
77 virtual void dispatchSyncEvent(int) override; 77 virtual void dispatchSyncEvent(int) override;
78 78
79 // WorkerReportingProxy overrides: 79 // WorkerReportingProxy overrides:
80 virtual void reportException(const String& errorMessage, int lineNumber, int columnNumber, const String& sourceURL) override; 80 virtual void reportException(const String& errorMessage, int lineNumber, int columnNumber, const String& sourceURL) override;
81 virtual void reportConsoleMessage(PassRefPtrWillBeRawPtr<ConsoleMessage>) ov erride; 81 virtual void reportConsoleMessage(PassRefPtrWillBeRawPtr<ConsoleMessage>) ov erride;
82 virtual void postMessageToPageInspector(const String&) override; 82 virtual void postMessageToPageInspector(const String&) override;
83 virtual void didEvaluateWorkerScript(bool success) override;
83 virtual void workerGlobalScopeStarted(WorkerGlobalScope*) override; 84 virtual void workerGlobalScopeStarted(WorkerGlobalScope*) override;
84 virtual void workerGlobalScopeClosed() override; 85 virtual void workerGlobalScopeClosed() override;
85 virtual void willDestroyWorkerGlobalScope() override; 86 virtual void willDestroyWorkerGlobalScope() override;
86 virtual void workerThreadTerminated() override; 87 virtual void workerThreadTerminated() override;
87 88
88 private: 89 private:
89 ServiceWorkerGlobalScopeProxy(WebEmbeddedWorkerImpl&, Document&, WebServiceW orkerContextClient&); 90 ServiceWorkerGlobalScopeProxy(WebEmbeddedWorkerImpl&, Document&, WebServiceW orkerContextClient&);
90 91
91 WebEmbeddedWorkerImpl& m_embeddedWorker; 92 WebEmbeddedWorkerImpl& m_embeddedWorker;
92 Document& m_document; 93 Document& m_document;
93 94
94 WebServiceWorkerContextClient& m_client; 95 WebServiceWorkerContextClient& m_client;
95 96
96 ServiceWorkerGlobalScope* m_workerGlobalScope; 97 ServiceWorkerGlobalScope* m_workerGlobalScope;
97 }; 98 };
98 99
99 } // namespace blink 100 } // namespace blink
100 101
101 #endif // ServiceWorkerGlobalScopeProxy_h 102 #endif // ServiceWorkerGlobalScopeProxy_h
OLDNEW
« no previous file with comments | « Source/core/workers/WorkerThread.cpp ('k') | Source/web/ServiceWorkerGlobalScopeProxy.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698