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

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

Issue 571003002: Dispose ApplicationCacheHost on DocumentLoader finalization. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 3 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
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 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
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();
56
55 // The Status numeric values are specified in the HTML5 spec. 57 // The Status numeric values are specified in the HTML5 spec.
56 enum Status { 58 enum Status {
57 UNCACHED = 0, 59 UNCACHED = 0,
58 IDLE = 1, 60 IDLE = 1,
59 CHECKING = 2, 61 CHECKING = 2,
60 DOWNLOADING = 3, 62 DOWNLOADING = 3,
61 UPDATEREADY = 4, 63 UPDATEREADY = 4,
62 OBSOLETE = 5 64 OBSOLETE = 5
63 }; 65 };
64 66
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after
169 Vector<DeferredEvent> m_deferredEvents; 171 Vector<DeferredEvent> m_deferredEvents;
170 172
171 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);
172 174
173 OwnPtr<WebApplicationCacheHost> m_host; 175 OwnPtr<WebApplicationCacheHost> m_host;
174 }; 176 };
175 177
176 } // namespace blink 178 } // namespace blink
177 179
178 #endif // ApplicationCacheHost_h 180 #endif // ApplicationCacheHost_h
OLDNEW
« no previous file with comments | « Source/core/loader/DocumentLoader.cpp ('k') | Source/core/loader/appcache/ApplicationCacheHost.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698