| OLD | NEW |
| 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 Loading... |
| 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 |
| OLD | NEW |