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

Side by Side Diff: Source/core/html/imports/HTMLImportChild.h

Issue 635793002: Replace FINAL and OVERRIDE with their C++11 counterparts in Source/core/html (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/html/ime/InputMethodContext.h ('k') | Source/core/html/imports/HTMLImportLoader.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) 2013 Google Inc. All rights reserved. 2 * Copyright (C) 2013 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * 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 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
42 class HTMLImportLoader; 42 class HTMLImportLoader;
43 class HTMLImportChildClient; 43 class HTMLImportChildClient;
44 class HTMLLinkElement; 44 class HTMLLinkElement;
45 45
46 // 46 //
47 // An import tree node subclas to encapsulate imported document 47 // An import tree node subclas to encapsulate imported document
48 // lifecycle. This class is owned by HTMLImportsController. The actual loading 48 // lifecycle. This class is owned by HTMLImportsController. The actual loading
49 // is done by HTMLImportLoader, which can be shared among multiple 49 // is done by HTMLImportLoader, which can be shared among multiple
50 // HTMLImportChild of same link URL. 50 // HTMLImportChild of same link URL.
51 // 51 //
52 class HTMLImportChild FINAL : public HTMLImport { 52 class HTMLImportChild final : public HTMLImport {
53 public: 53 public:
54 HTMLImportChild(const KURL&, HTMLImportLoader*, SyncMode); 54 HTMLImportChild(const KURL&, HTMLImportLoader*, SyncMode);
55 virtual ~HTMLImportChild(); 55 virtual ~HTMLImportChild();
56 56
57 HTMLLinkElement* link() const; 57 HTMLLinkElement* link() const;
58 const KURL& url() const { return m_url; } 58 const KURL& url() const { return m_url; }
59 59
60 void ownerInserted(); 60 void ownerInserted();
61 void didShareLoader(); 61 void didShareLoader();
62 void didStartLoading(); 62 void didStartLoading();
63 #if !ENABLE(OILPAN) 63 #if !ENABLE(OILPAN)
64 void importDestroyed(); 64 void importDestroyed();
65 WeakPtr<HTMLImportChild> weakPtr() { return m_weakFactory.createWeakPtr(); } 65 WeakPtr<HTMLImportChild> weakPtr() { return m_weakFactory.createWeakPtr(); }
66 #endif 66 #endif
67 67
68 // HTMLImport 68 // HTMLImport
69 virtual Document* document() const OVERRIDE; 69 virtual Document* document() const override;
70 virtual bool isDone() const OVERRIDE; 70 virtual bool isDone() const override;
71 virtual HTMLImportLoader* loader() const OVERRIDE; 71 virtual HTMLImportLoader* loader() const override;
72 virtual void stateWillChange() OVERRIDE; 72 virtual void stateWillChange() override;
73 virtual void stateDidChange() OVERRIDE; 73 virtual void stateDidChange() override;
74 virtual void trace(Visitor*) OVERRIDE; 74 virtual void trace(Visitor*) override;
75 75
76 #if !defined(NDEBUG) 76 #if !defined(NDEBUG)
77 virtual void showThis() OVERRIDE; 77 virtual void showThis() override;
78 #endif 78 #endif
79 79
80 void setClient(HTMLImportChildClient*); 80 void setClient(HTMLImportChildClient*);
81 #if !ENABLE(OILPAN) 81 #if !ENABLE(OILPAN)
82 void clearClient(); 82 void clearClient();
83 #endif 83 #endif
84 84
85 void didFinishLoading(); 85 void didFinishLoading();
86 void didFinishUpgradingCustomElements(); 86 void didFinishUpgradingCustomElements();
87 void normalize(); 87 void normalize();
(...skipping 15 matching lines...) Expand all
103 103
104 inline HTMLImportChild* toHTMLImportChild(HTMLImport* import) 104 inline HTMLImportChild* toHTMLImportChild(HTMLImport* import)
105 { 105 {
106 ASSERT(!import || !import->isRoot()); 106 ASSERT(!import || !import->isRoot());
107 return static_cast<HTMLImportChild*>(import); 107 return static_cast<HTMLImportChild*>(import);
108 } 108 }
109 109
110 } // namespace blink 110 } // namespace blink
111 111
112 #endif // HTMLImportChild_h 112 #endif // HTMLImportChild_h
OLDNEW
« no previous file with comments | « Source/core/html/ime/InputMethodContext.h ('k') | Source/core/html/imports/HTMLImportLoader.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698