| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2008 Nikolas Zimmermann <zimmermann@kde.org> | 2 * Copyright (C) 2008 Nikolas Zimmermann <zimmermann@kde.org> |
| 3 * Copyright (C) 2013 Google Inc. All rights reserved. | 3 * Copyright (C) 2013 Google Inc. All rights reserved. |
| 4 * | 4 * |
| 5 * This library is free software; you can redistribute it and/or | 5 * This library is free software; you can redistribute it and/or |
| 6 * modify it under the terms of the GNU Library General Public | 6 * modify it under the terms of the GNU Library General Public |
| 7 * License as published by the Free Software Foundation; either | 7 * License as published by the Free Software Foundation; either |
| 8 * version 2 of the License, or (at your option) any later version. | 8 * version 2 of the License, or (at your option) any later version. |
| 9 * | 9 * |
| 10 * This library is distributed in the hope that it will be useful, | 10 * This library is distributed in the hope that it will be useful, |
| 11 * but WITHOUT ANY WARRANTY; without even the implied warranty of | 11 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | 12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 13 * Library General Public License for more details. | 13 * Library General Public License for more details. |
| 14 * | 14 * |
| 15 * You should have received a copy of the GNU Library General Public License | 15 * You should have received a copy of the GNU Library General Public License |
| 16 * along with this library; see the file COPYING.LIB. If not, write to | 16 * along with this library; see the file COPYING.LIB. If not, write to |
| 17 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, | 17 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, |
| 18 * Boston, MA 02110-1301, USA. | 18 * Boston, MA 02110-1301, USA. |
| 19 * | 19 * |
| 20 */ | 20 */ |
| 21 #ifndef ScriptLoaderClient_h | 21 #ifndef ScriptLoaderClient_h |
| 22 #define ScriptLoaderClient_h | 22 #define ScriptLoaderClient_h |
| 23 | 23 |
| 24 #include "core/CoreExport.h" | 24 #include "core/CoreExport.h" |
| 25 #include "wtf/text/AtomicString.h" |
| 25 #include "wtf/text/WTFString.h" | 26 #include "wtf/text/WTFString.h" |
| 26 | 27 |
| 27 namespace blink { | 28 namespace blink { |
| 28 | 29 |
| 29 class CORE_EXPORT ScriptLoaderClient { | 30 class CORE_EXPORT ScriptLoaderClient { |
| 30 public: | 31 public: |
| 31 virtual ~ScriptLoaderClient() {} | 32 virtual ~ScriptLoaderClient() {} |
| 32 | 33 |
| 33 virtual void dispatchLoadEvent() = 0; | 34 virtual void dispatchLoadEvent() = 0; |
| 34 | 35 |
| 35 virtual String sourceAttributeValue() const = 0; | 36 virtual String sourceAttributeValue() const = 0; |
| 36 virtual String charsetAttributeValue() const = 0; | 37 virtual String charsetAttributeValue() const = 0; |
| 37 virtual String typeAttributeValue() const = 0; | 38 virtual String typeAttributeValue() const = 0; |
| 38 virtual String languageAttributeValue() const = 0; | 39 virtual String languageAttributeValue() const = 0; |
| 39 virtual String forAttributeValue() const = 0; | 40 virtual String forAttributeValue() const = 0; |
| 40 virtual String eventAttributeValue() const = 0; | 41 virtual String eventAttributeValue() const = 0; |
| 41 virtual bool asyncAttributeValue() const = 0; | 42 virtual bool asyncAttributeValue() const = 0; |
| 42 virtual bool deferAttributeValue() const = 0; | 43 virtual bool deferAttributeValue() const = 0; |
| 43 virtual bool hasSourceAttribute() const = 0; | 44 virtual bool hasSourceAttribute() const = 0; |
| 45 |
| 46 virtual AtomicString nonce() const = 0; |
| 47 virtual void setNonce(const String&) = 0; |
| 48 virtual void clearNonce() = 0; |
| 44 }; | 49 }; |
| 45 | 50 |
| 46 } // namespace blink | 51 } // namespace blink |
| 47 | 52 |
| 48 #endif | 53 #endif |
| OLD | NEW |