OLD | NEW |
1 /* | 1 /* |
2 Copyright (C) 1998 Lars Knoll (knoll@mpi-hd.mpg.de) | 2 Copyright (C) 1998 Lars Knoll (knoll@mpi-hd.mpg.de) |
3 Copyright (C) 2001 Dirk Mueller <mueller@kde.org> | 3 Copyright (C) 2001 Dirk Mueller <mueller@kde.org> |
4 Copyright (C) 2006 Samuel Weinig (sam.weinig@gmail.com) | 4 Copyright (C) 2006 Samuel Weinig (sam.weinig@gmail.com) |
5 Copyright (C) 2004, 2005, 2006, 2007, 2008 Apple Inc. All rights reserved. | 5 Copyright (C) 2004, 2005, 2006, 2007, 2008 Apple Inc. All rights reserved. |
6 | 6 |
7 This library is free software; you can redistribute it and/or | 7 This library is free software; you can redistribute it and/or |
8 modify it under the terms of the GNU Library General Public | 8 modify it under the terms of the GNU Library General Public |
9 License as published by the Free Software Foundation; either | 9 License as published by the Free Software Foundation; either |
10 version 2 of the License, or (at your option) any later version. | 10 version 2 of the License, or (at your option) any later version. |
(...skipping 15 matching lines...) Expand all Loading... |
26 #ifndef ScriptResource_h | 26 #ifndef ScriptResource_h |
27 #define ScriptResource_h | 27 #define ScriptResource_h |
28 | 28 |
29 #include "core/fetch/ResourcePtr.h" | 29 #include "core/fetch/ResourcePtr.h" |
30 | 30 |
31 namespace WebCore { | 31 namespace WebCore { |
32 | 32 |
33 class ResourceFetcher; | 33 class ResourceFetcher; |
34 class TextResourceDecoder; | 34 class TextResourceDecoder; |
35 | 35 |
36 class ScriptResource : public Resource { | 36 class ScriptResource FINAL : public Resource { |
37 public: | 37 public: |
38 typedef ResourceClient ClientType; | 38 typedef ResourceClient ClientType; |
39 | 39 |
40 ScriptResource(const ResourceRequest&, const String& charset); | 40 ScriptResource(const ResourceRequest&, const String& charset); |
41 virtual ~ScriptResource(); | 41 virtual ~ScriptResource(); |
42 | 42 |
43 const String& script(); | 43 const String& script(); |
44 | 44 |
45 virtual void setEncoding(const String&); | 45 virtual void setEncoding(const String&) OVERRIDE; |
46 virtual String encoding() const; | 46 virtual String encoding() const OVERRIDE; |
47 AtomicString mimeType() const; | 47 AtomicString mimeType() const; |
48 | 48 |
49 bool mimeTypeAllowedByNosniff() const; | 49 bool mimeTypeAllowedByNosniff() const; |
50 | 50 |
51 private: | 51 private: |
52 AtomicString m_script; | 52 AtomicString m_script; |
53 OwnPtr<TextResourceDecoder> m_decoder; | 53 OwnPtr<TextResourceDecoder> m_decoder; |
54 }; | 54 }; |
55 | 55 |
56 DEFINE_RESOURCE_TYPE_CASTS(Script); | 56 DEFINE_RESOURCE_TYPE_CASTS(Script); |
57 | 57 |
58 } | 58 } |
59 | 59 |
60 #endif | 60 #endif |
OLD | NEW |