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

Side by Side Diff: Source/core/inspector/InspectorResourceContentLoader.h

Issue 527183002: Oilpan: Prepare moving InspectorResourceContentLoader to Oilpan (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 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef InspectorResourceContentLoader_h 5 #ifndef InspectorResourceContentLoader_h
6 #define InspectorResourceContentLoader_h 6 #define InspectorResourceContentLoader_h
7 7
8 #include "core/fetch/ResourcePtr.h" 8 #include "core/fetch/ResourcePtr.h"
9 #include "wtf/HashSet.h" 9 #include "wtf/HashSet.h"
10 #include "wtf/Noncopyable.h" 10 #include "wtf/Noncopyable.h"
11 #include "wtf/Vector.h" 11 #include "wtf/Vector.h"
12 12
13 namespace blink { 13 namespace blink {
14 14
15 class Page; 15 class Page;
16 class Resource; 16 class Resource;
17 class VoidCallback; 17 class VoidCallback;
18 18
19 // FIXME: Oilpan: Move InspectorResourceContentLoader to the heap. 19 class InspectorResourceContentLoader FINAL : public NoBaseWillBeGarbageCollected Finalized<InspectorResourceContentLoader> {
20 class InspectorResourceContentLoader FINAL {
21 WTF_MAKE_NONCOPYABLE(InspectorResourceContentLoader); 20 WTF_MAKE_NONCOPYABLE(InspectorResourceContentLoader);
22 WTF_MAKE_FAST_ALLOCATED; 21 WTF_MAKE_FAST_ALLOCATED_WILL_BE_REMOVED;
23 public: 22 public:
24 explicit InspectorResourceContentLoader(Page*); 23 explicit InspectorResourceContentLoader(Page*);
25 void ensureResourcesContentLoaded(PassOwnPtrWillBeRawPtr<VoidCallback>); 24 void ensureResourcesContentLoaded(PassOwnPtrWillBeRawPtr<VoidCallback>);
26 ~InspectorResourceContentLoader(); 25 ~InspectorResourceContentLoader();
26 void trace(Visitor*);
27 void dispose();
27 bool hasFinished(); 28 bool hasFinished();
28 void stop(); 29 void stop();
29 30
30 private: 31 private:
31 class ResourceClient; 32 class ResourceClient;
32 33
33 void resourceFinished(ResourceClient*); 34 void resourceFinished(ResourceClient*);
34 void checkDone(); 35 void checkDone();
35 void start(); 36 void start();
36 37
37 WillBePersistentHeapVector<OwnPtrWillBeMember<VoidCallback> > m_callbacks; 38 WillBeHeapVector<OwnPtrWillBeMember<VoidCallback> > m_callbacks;
38 bool m_allRequestsStarted; 39 bool m_allRequestsStarted;
39 bool m_started; 40 bool m_started;
40 Page* m_page; 41 RawPtrWillBeMember<Page> m_page;
41 HashSet<ResourceClient*> m_pendingResourceClients; 42 HashSet<ResourceClient*> m_pendingResourceClients;
42 Vector<ResourcePtr<Resource> > m_resources; 43 Vector<ResourcePtr<Resource> > m_resources;
43 44
44 friend class ResourceClient; 45 friend class ResourceClient;
45 }; 46 };
46 47
47 } // namespace blink 48 } // namespace blink
48 49
49 50
50 #endif // !defined(InspectorResourceContentLoader_h) 51 #endif // !defined(InspectorResourceContentLoader_h)
OLDNEW
« no previous file with comments | « Source/core/inspector/InspectorPageAgent.cpp ('k') | Source/core/inspector/InspectorResourceContentLoader.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698