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

Side by Side Diff: Source/core/loader/appcache/ApplicationCacheHost.h

Issue 638503003: Replace FINAL and OVERRIDE with their C++11 counterparts in Source/core/loader (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/loader/appcache/ApplicationCache.h ('k') | no next file » | 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) 2009, Google Inc. All rights reserved. 2 * Copyright (c) 2009, 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 25 matching lines...) Expand all
36 #include "public/platform/WebApplicationCacheHostClient.h" 36 #include "public/platform/WebApplicationCacheHostClient.h"
37 #include "wtf/OwnPtr.h" 37 #include "wtf/OwnPtr.h"
38 #include "wtf/Vector.h" 38 #include "wtf/Vector.h"
39 39
40 namespace blink { 40 namespace blink {
41 class ApplicationCache; 41 class ApplicationCache;
42 class DocumentLoader; 42 class DocumentLoader;
43 class ResourceRequest; 43 class ResourceRequest;
44 class ResourceResponse; 44 class ResourceResponse;
45 45
46 class ApplicationCacheHost FINAL : public NoBaseWillBeGarbageCollectedFinali zed<ApplicationCacheHost>, public WebApplicationCacheHostClient { 46 class ApplicationCacheHost final : public NoBaseWillBeGarbageCollectedFinali zed<ApplicationCacheHost>, public WebApplicationCacheHostClient {
47 WTF_MAKE_NONCOPYABLE(ApplicationCacheHost); 47 WTF_MAKE_NONCOPYABLE(ApplicationCacheHost);
48 public: 48 public:
49 static PassOwnPtrWillBeRawPtr<ApplicationCacheHost> create(DocumentLoade r* loader) 49 static PassOwnPtrWillBeRawPtr<ApplicationCacheHost> create(DocumentLoade r* loader)
50 { 50 {
51 return adoptPtrWillBeNoop(new ApplicationCacheHost(loader)); 51 return adoptPtrWillBeNoop(new ApplicationCacheHost(loader));
52 } 52 }
53 virtual ~ApplicationCacheHost(); 53 virtual ~ApplicationCacheHost();
54 54
55 void dispose(); 55 void dispose();
56 56
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
130 130
131 void fillResourceList(ResourceInfoList*); 131 void fillResourceList(ResourceInfoList*);
132 CacheInfo applicationCacheInfo(); 132 CacheInfo applicationCacheInfo();
133 133
134 void trace(Visitor*); 134 void trace(Visitor*);
135 135
136 private: 136 private:
137 explicit ApplicationCacheHost(DocumentLoader*); 137 explicit ApplicationCacheHost(DocumentLoader*);
138 138
139 // WebApplicationCacheHostClient implementation 139 // WebApplicationCacheHostClient implementation
140 virtual void didChangeCacheAssociation() OVERRIDE FINAL; 140 virtual void didChangeCacheAssociation() override final;
141 virtual void notifyEventListener(WebApplicationCacheHost::EventID) OVERR IDE FINAL; 141 virtual void notifyEventListener(WebApplicationCacheHost::EventID) overr ide final;
142 virtual void notifyProgressEventListener(const WebURL&, int progressTota l, int progressDone) OVERRIDE FINAL; 142 virtual void notifyProgressEventListener(const WebURL&, int progressTota l, int progressDone) override final;
143 virtual void notifyErrorEventListener(WebApplicationCacheHost::ErrorReas on, const WebURL&, int status, const WebString& message) OVERRIDE FINAL; 143 virtual void notifyErrorEventListener(WebApplicationCacheHost::ErrorReas on, const WebURL&, int status, const WebString& message) override final;
144 144
145 bool isApplicationCacheEnabled(); 145 bool isApplicationCacheEnabled();
146 DocumentLoader* documentLoader() const { return m_documentLoader; } 146 DocumentLoader* documentLoader() const { return m_documentLoader; }
147 147
148 struct DeferredEvent { 148 struct DeferredEvent {
149 EventID eventID; 149 EventID eventID;
150 int progressTotal; 150 int progressTotal;
151 int progressDone; 151 int progressDone;
152 WebApplicationCacheHost::ErrorReason errorReason; 152 WebApplicationCacheHost::ErrorReason errorReason;
153 String errorURL; 153 String errorURL;
(...skipping 17 matching lines...) Expand all
171 Vector<DeferredEvent> m_deferredEvents; 171 Vector<DeferredEvent> m_deferredEvents;
172 172
173 void dispatchDOMEvent(EventID, int progressTotal, int progressDone, WebA pplicationCacheHost::ErrorReason, const String& errorURL, int errorStatus, const String& errorMessage); 173 void dispatchDOMEvent(EventID, int progressTotal, int progressDone, WebA pplicationCacheHost::ErrorReason, const String& errorURL, int errorStatus, const String& errorMessage);
174 174
175 OwnPtr<WebApplicationCacheHost> m_host; 175 OwnPtr<WebApplicationCacheHost> m_host;
176 }; 176 };
177 177
178 } // namespace blink 178 } // namespace blink
179 179
180 #endif // ApplicationCacheHost_h 180 #endif // ApplicationCacheHost_h
OLDNEW
« no previous file with comments | « Source/core/loader/appcache/ApplicationCache.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698