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

Side by Side Diff: Source/web/WebSharedWorkerImpl.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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2009 Google Inc. All rights reserved. 2 * Copyright (C) 2009 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 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
68 , public WebSharedWorker 68 , public WebSharedWorker
69 , public WebDevToolsAgentClient { 69 , public WebDevToolsAgentClient {
70 public: 70 public:
71 explicit WebSharedWorkerImpl(WebSharedWorkerClient*); 71 explicit WebSharedWorkerImpl(WebSharedWorkerClient*);
72 72
73 // WorkerReportingProxy methods: 73 // WorkerReportingProxy methods:
74 virtual void reportException( 74 virtual void reportException(
75 const WTF::String&, int, int, const WTF::String&) override; 75 const WTF::String&, int, int, const WTF::String&) override;
76 virtual void reportConsoleMessage(PassRefPtrWillBeRawPtr<ConsoleMessage>) ov erride; 76 virtual void reportConsoleMessage(PassRefPtrWillBeRawPtr<ConsoleMessage>) ov erride;
77 virtual void postMessageToPageInspector(const WTF::String&) override; 77 virtual void postMessageToPageInspector(const WTF::String&) override;
78 virtual void didEvaluateWorkerScript(bool success) override { };
78 virtual void workerGlobalScopeStarted(WorkerGlobalScope*) override; 79 virtual void workerGlobalScopeStarted(WorkerGlobalScope*) override;
79 virtual void workerGlobalScopeClosed() override; 80 virtual void workerGlobalScopeClosed() override;
80 virtual void workerThreadTerminated() override; 81 virtual void workerThreadTerminated() override;
81 virtual void willDestroyWorkerGlobalScope() override { } 82 virtual void willDestroyWorkerGlobalScope() override { }
82 83
83 // WorkerLoaderProxy methods: 84 // WorkerLoaderProxy methods:
84 virtual void postTaskToLoader(PassOwnPtr<ExecutionContextTask>) override; 85 virtual void postTaskToLoader(PassOwnPtr<ExecutionContextTask>) override;
85 virtual bool postTaskToWorkerGlobalScope(PassOwnPtr<ExecutionContextTask>) o verride; 86 virtual bool postTaskToWorkerGlobalScope(PassOwnPtr<ExecutionContextTask>) o verride;
86 87
87 // WebFrameClient methods to support resource loading thru the 'shadow page' . 88 // WebFrameClient methods to support resource loading thru the 'shadow page' .
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
157 OwnPtr<Loader> m_mainScriptLoader; 158 OwnPtr<Loader> m_mainScriptLoader;
158 WebURL m_url; 159 WebURL m_url;
159 WebString m_name; 160 WebString m_name;
160 WebString m_contentSecurityPolicy; 161 WebString m_contentSecurityPolicy;
161 WebContentSecurityPolicyType m_policyType; 162 WebContentSecurityPolicyType m_policyType;
162 }; 163 };
163 164
164 } // namespace blink 165 } // namespace blink
165 166
166 #endif 167 #endif
OLDNEW
« no previous file with comments | « Source/web/ServiceWorkerGlobalScopeProxy.cpp ('k') | public/web/WebServiceWorkerContextClient.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698