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

Side by Side Diff: Source/core/fetch/ScriptResource.h

Issue 631223002: Replace FINAL and OVERRIDE with their C++11 counterparts in Source/core/[fetch|fileapi] (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 2 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
« no previous file with comments | « Source/core/fetch/ResourceLoaderSet.h ('k') | Source/core/fetch/StyleSheetResourceClient.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
OLDNEW
« no previous file with comments | « Source/core/fetch/ResourceLoaderSet.h ('k') | Source/core/fetch/StyleSheetResourceClient.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698