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

Side by Side Diff: Source/core/workers/WorkerScriptLoaderClient.h

Issue 1190493002: move processContentSecurityPolicy to WorkerScriptLoader (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: (rebase) Created 5 years, 6 months 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 | Annotate | Revision Log
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2009 Apple Inc. All Rights Reserved. 2 * Copyright (C) 2009 Apple Inc. All Rights Reserved.
3 * Copyright (C) 2009 Google Inc. All Rights Reserved. 3 * Copyright (C) 2009 Google Inc. All Rights Reserved.
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions 6 * modification, are permitted provided that the following conditions
7 * are met: 7 * are met:
8 * 1. Redistributions of source code must retain the above copyright 8 * 1. 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 * 2. Redistributions in binary form must reproduce the above copyright 10 * 2. Redistributions in binary form must reproduce the above copyright
(...skipping 26 matching lines...) Expand all
37 class ResourceResponse; 37 class ResourceResponse;
38 38
39 class CORE_EXPORT WorkerScriptLoaderClient { 39 class CORE_EXPORT WorkerScriptLoaderClient {
40 public: 40 public:
41 virtual void didReceiveResponse(unsigned long /*identifier*/, const Resource Response&) { } 41 virtual void didReceiveResponse(unsigned long /*identifier*/, const Resource Response&) { }
42 42
43 // FIXME: notifyFinished() is not currently guaranteed to be invoked if used from worker context and the worker shuts down in the middle of an operation. 43 // FIXME: notifyFinished() is not currently guaranteed to be invoked if used from worker context and the worker shuts down in the middle of an operation.
44 // This will cause leaks when we support nested workers. 44 // This will cause leaks when we support nested workers.
45 virtual void notifyFinished() { } 45 virtual void notifyFinished() { }
46 46
47 PassRefPtr<ContentSecurityPolicy> contentSecurityPolicy();
48
49 protected: 47 protected:
50 virtual ~WorkerScriptLoaderClient(); 48 virtual ~WorkerScriptLoaderClient() { }
51
52 void processContentSecurityPolicy(const ResourceResponse&);
53 void setContentSecurityPolicy(PassRefPtr<ContentSecurityPolicy>);
54
55 private:
56 RefPtr<ContentSecurityPolicy> m_contentSecurityPolicy;
57 }; 49 };
58 50
59 } // namespace blink 51 } // namespace blink
60 52
61 #endif // WorkerScriptLoaderClient_h 53 #endif // WorkerScriptLoaderClient_h
OLDNEW
« no previous file with comments | « Source/core/workers/WorkerScriptLoader.cpp ('k') | Source/core/workers/WorkerScriptLoaderClient.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698