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

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

Issue 208083003: Oilpan: move ApplicationCache to the oilpan heap. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Use transition type version of adoptRef..Collected() Created 6 years, 9 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/frame/DOMWindow.h ('k') | Source/core/loader/appcache/ApplicationCache.idl » ('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) 2008, 2009 Apple Inc. All Rights Reserved. 2 * Copyright (C) 2008, 2009 Apple 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 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 13 matching lines...) Expand all
24 */ 24 */
25 25
26 #ifndef ApplicationCache_h 26 #ifndef ApplicationCache_h
27 #define ApplicationCache_h 27 #define ApplicationCache_h
28 28
29 #include "bindings/v8/ScriptWrappable.h" 29 #include "bindings/v8/ScriptWrappable.h"
30 #include "core/events/EventTarget.h" 30 #include "core/events/EventTarget.h"
31 #include "core/events/ThreadLocalEventNames.h" 31 #include "core/events/ThreadLocalEventNames.h"
32 #include "core/loader/appcache/ApplicationCacheHost.h" 32 #include "core/loader/appcache/ApplicationCacheHost.h"
33 #include "core/frame/DOMWindowProperty.h" 33 #include "core/frame/DOMWindowProperty.h"
34 #include "heap/Handle.h"
34 #include "wtf/Forward.h" 35 #include "wtf/Forward.h"
35 #include "wtf/PassRefPtr.h" 36 #include "wtf/PassRefPtr.h"
36 #include "wtf/RefCounted.h" 37 #include "wtf/RefCounted.h"
37 38
38 namespace WebCore { 39 namespace WebCore {
39 40
40 class ExceptionState; 41 class ExceptionState;
41 class LocalFrame; 42 class LocalFrame;
42 class KURL; 43 class KURL;
43 44
44 class ApplicationCache FINAL : public ScriptWrappable, public RefCounted<Applica tionCache>, public EventTargetWithInlineData, public DOMWindowProperty { 45 class ApplicationCache FINAL : public RefCountedWillBeRefCountedGarbageCollected <ApplicationCache>, public ScriptWrappable, public EventTargetWithInlineData, pu blic DOMWindowProperty {
45 REFCOUNTED_EVENT_TARGET(ApplicationCache); 46 DEFINE_EVENT_TARGET_REFCOUNTING(RefCountedWillBeRefCountedGarbageCollected<A pplicationCache>);
46 public: 47 public:
47 static PassRefPtr<ApplicationCache> create(LocalFrame* frame) { return adopt Ref(new ApplicationCache(frame)); } 48 static PassRefPtrWillBeRawPtr<ApplicationCache> create(LocalFrame* frame)
49 {
50 return adoptRefWillBeRefCountedGarbageCollected(new ApplicationCache(fra me));
51 }
48 virtual ~ApplicationCache() { ASSERT(!m_frame); } 52 virtual ~ApplicationCache() { ASSERT(!m_frame); }
haraken 2014/03/21 14:41:20 Just to confirm: DOMWindowProperty has LocalFrame*
49 53
50 virtual void willDestroyGlobalObjectInFrame() OVERRIDE; 54 virtual void willDestroyGlobalObjectInFrame() OVERRIDE;
51 55
52 unsigned short status() const; 56 unsigned short status() const;
53 void update(ExceptionState&); 57 void update(ExceptionState&);
54 void swapCache(ExceptionState&); 58 void swapCache(ExceptionState&);
55 void abort(); 59 void abort();
56 60
57 // Explicitly named attribute event listener helpers 61 // Explicitly named attribute event listener helpers
58 62
59 DEFINE_ATTRIBUTE_EVENT_LISTENER(checking); 63 DEFINE_ATTRIBUTE_EVENT_LISTENER(checking);
60 DEFINE_ATTRIBUTE_EVENT_LISTENER(error); 64 DEFINE_ATTRIBUTE_EVENT_LISTENER(error);
61 DEFINE_ATTRIBUTE_EVENT_LISTENER(noupdate); 65 DEFINE_ATTRIBUTE_EVENT_LISTENER(noupdate);
62 DEFINE_ATTRIBUTE_EVENT_LISTENER(downloading); 66 DEFINE_ATTRIBUTE_EVENT_LISTENER(downloading);
63 DEFINE_ATTRIBUTE_EVENT_LISTENER(progress); 67 DEFINE_ATTRIBUTE_EVENT_LISTENER(progress);
64 DEFINE_ATTRIBUTE_EVENT_LISTENER(updateready); 68 DEFINE_ATTRIBUTE_EVENT_LISTENER(updateready);
65 DEFINE_ATTRIBUTE_EVENT_LISTENER(cached); 69 DEFINE_ATTRIBUTE_EVENT_LISTENER(cached);
66 DEFINE_ATTRIBUTE_EVENT_LISTENER(obsolete); 70 DEFINE_ATTRIBUTE_EVENT_LISTENER(obsolete);
67 71
68 virtual const AtomicString& interfaceName() const OVERRIDE; 72 virtual const AtomicString& interfaceName() const OVERRIDE;
69 virtual ExecutionContext* executionContext() const OVERRIDE; 73 virtual ExecutionContext* executionContext() const OVERRIDE;
70 74
71 static const AtomicString& toEventType(ApplicationCacheHost::EventID); 75 static const AtomicString& toEventType(ApplicationCacheHost::EventID);
72 76
77 void trace(Visitor*) { }
78
73 private: 79 private:
74 explicit ApplicationCache(LocalFrame*); 80 explicit ApplicationCache(LocalFrame*);
75 81
76 ApplicationCacheHost* applicationCacheHost() const; 82 ApplicationCacheHost* applicationCacheHost() const;
77 }; 83 };
78 84
79 } // namespace WebCore 85 } // namespace WebCore
80 86
81 #endif // ApplicationCache_h 87 #endif // ApplicationCache_h
OLDNEW
« no previous file with comments | « Source/core/frame/DOMWindow.h ('k') | Source/core/loader/appcache/ApplicationCache.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698