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

Side by Side Diff: Source/core/loader/LinkLoader.h

Issue 1229743005: Fix virtual/override/final usage in Source/core/{fetch,loader,streams,xmlhttprequest}/. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: rebase Created 5 years, 5 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 | Annotate | Revision Log
« no previous file with comments | « Source/core/loader/ImageLoader.h ('k') | Source/core/loader/LinkLoaderTest.cpp » ('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) 2011 Google Inc. All rights reserved. 2 * Copyright (C) 2011 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 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
45 45
46 class Document; 46 class Document;
47 class LinkRelAttribute; 47 class LinkRelAttribute;
48 class PrerenderHandle; 48 class PrerenderHandle;
49 49
50 // The LinkLoader can load link rel types icon, dns-prefetch, subresource, prefe tch and prerender. 50 // The LinkLoader can load link rel types icon, dns-prefetch, subresource, prefe tch and prerender.
51 class CORE_EXPORT LinkLoader final : public ResourceOwner<Resource, ResourceClie nt>, public PrerenderClient { 51 class CORE_EXPORT LinkLoader final : public ResourceOwner<Resource, ResourceClie nt>, public PrerenderClient {
52 DISALLOW_ALLOCATION(); 52 DISALLOW_ALLOCATION();
53 public: 53 public:
54 explicit LinkLoader(LinkLoaderClient*); 54 explicit LinkLoader(LinkLoaderClient*);
55 virtual ~LinkLoader(); 55 ~LinkLoader() override;
56 56
57 // from ResourceClient 57 // from ResourceClient
58 virtual void notifyFinished(Resource*) override; 58 void notifyFinished(Resource*) override;
59 59
60 // from PrerenderClient 60 // from PrerenderClient
61 virtual void didStartPrerender() override; 61 void didStartPrerender() override;
62 virtual void didStopPrerender() override; 62 void didStopPrerender() override;
63 virtual void didSendLoadForPrerender() override; 63 void didSendLoadForPrerender() override;
64 virtual void didSendDOMContentLoadedForPrerender() override; 64 void didSendDOMContentLoadedForPrerender() override;
65 65
66 void released(); 66 void released();
67 bool loadLink(const LinkRelAttribute&, const AtomicString& crossOriginMode, const String& type, const String& as, const KURL&, Document&); 67 bool loadLink(const LinkRelAttribute&, const AtomicString& crossOriginMode, const String& type, const String& as, const KURL&, Document&);
68 static bool loadLinkFromHeader(const String& headerValue, Document*); 68 static bool loadLinkFromHeader(const String& headerValue, Document*);
69 69
70 DECLARE_TRACE(); 70 DECLARE_TRACE();
71 71
72 private: 72 private:
73 void linkLoadTimerFired(Timer<LinkLoader>*); 73 void linkLoadTimerFired(Timer<LinkLoader>*);
74 void linkLoadingErrorTimerFired(Timer<LinkLoader>*); 74 void linkLoadingErrorTimerFired(Timer<LinkLoader>*);
75 void preloadIfNeeded(const LinkRelAttribute&, const KURL& href, Document&, c onst String& as); 75 void preloadIfNeeded(const LinkRelAttribute&, const KURL& href, Document&, c onst String& as);
76 76
77 LinkLoaderClient* m_client; 77 LinkLoaderClient* m_client;
78 78
79 Timer<LinkLoader> m_linkLoadTimer; 79 Timer<LinkLoader> m_linkLoadTimer;
80 Timer<LinkLoader> m_linkLoadingErrorTimer; 80 Timer<LinkLoader> m_linkLoadingErrorTimer;
81 81
82 OwnPtrWillBeMember<PrerenderHandle> m_prerender; 82 OwnPtrWillBeMember<PrerenderHandle> m_prerender;
83 }; 83 };
84 84
85 } 85 }
86 86
87 #endif 87 #endif
OLDNEW
« no previous file with comments | « Source/core/loader/ImageLoader.h ('k') | Source/core/loader/LinkLoaderTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698