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 19 matching lines...) Expand all Loading... |
30 #include "core/fetch/TextResource.h" | 30 #include "core/fetch/TextResource.h" |
31 | 31 |
32 namespace blink { | 32 namespace blink { |
33 | 33 |
34 class ScriptResource; | 34 class ScriptResource; |
35 | 35 |
36 class ScriptResourceClient : public ResourceClient { | 36 class ScriptResourceClient : public ResourceClient { |
37 public: | 37 public: |
38 virtual ~ScriptResourceClient() { } | 38 virtual ~ScriptResourceClient() { } |
39 static ResourceClientType expectedType() { return ScriptType; } | 39 static ResourceClientType expectedType() { return ScriptType; } |
40 virtual ResourceClientType resourceClientType() const OVERRIDE FINAL { retur
n expectedType(); } | 40 virtual ResourceClientType resourceClientType() const override final { retur
n expectedType(); } |
41 | 41 |
42 virtual void notifyAppendData(ScriptResource* resource) { } | 42 virtual void notifyAppendData(ScriptResource* resource) { } |
43 }; | 43 }; |
44 | 44 |
45 class ScriptResource FINAL : public TextResource { | 45 class ScriptResource final : public TextResource { |
46 public: | 46 public: |
47 typedef ScriptResourceClient ClientType; | 47 typedef ScriptResourceClient ClientType; |
48 | 48 |
49 ScriptResource(const ResourceRequest&, const String& charset); | 49 ScriptResource(const ResourceRequest&, const String& charset); |
50 virtual ~ScriptResource(); | 50 virtual ~ScriptResource(); |
51 | 51 |
52 virtual void didAddClient(ResourceClient*) OVERRIDE; | 52 virtual void didAddClient(ResourceClient*) override; |
53 virtual void appendData(const char*, unsigned) OVERRIDE; | 53 virtual void appendData(const char*, unsigned) override; |
54 | 54 |
55 const String& script(); | 55 const String& script(); |
56 | 56 |
57 AtomicString mimeType() const; | 57 AtomicString mimeType() const; |
58 | 58 |
59 bool mimeTypeAllowedByNosniff() const; | 59 bool mimeTypeAllowedByNosniff() const; |
60 | 60 |
61 private: | 61 private: |
62 AtomicString m_script; | 62 AtomicString m_script; |
63 }; | 63 }; |
64 | 64 |
65 DEFINE_RESOURCE_TYPE_CASTS(Script); | 65 DEFINE_RESOURCE_TYPE_CASTS(Script); |
66 | 66 |
67 } | 67 } |
68 | 68 |
69 #endif | 69 #endif |
OLD | NEW |