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

Side by Side Diff: third_party/WebKit/Source/core/inspector/InspectorApplicationCacheAgent.h

Issue 1434383002: Oilpan: move InspectedFrames to the heap. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix incorrect OwnPtr<> use Created 5 years, 1 month 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2010 Apple Inc. All rights reserved. 2 * Copyright (C) 2010 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 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
59 void updateApplicationCacheStatus(LocalFrame*); 59 void updateApplicationCacheStatus(LocalFrame*);
60 void networkStateChanged(LocalFrame*, bool online); 60 void networkStateChanged(LocalFrame*, bool online);
61 61
62 // ApplicationCache API for InspectorFrontend 62 // ApplicationCache API for InspectorFrontend
63 void enable(ErrorString*) override; 63 void enable(ErrorString*) override;
64 void getFramesWithManifests(ErrorString*, RefPtr<TypeBuilder::Array<TypeBuil der::ApplicationCache::FrameWithManifest>>& result) override; 64 void getFramesWithManifests(ErrorString*, RefPtr<TypeBuilder::Array<TypeBuil der::ApplicationCache::FrameWithManifest>>& result) override;
65 void getManifestForFrame(ErrorString*, const String& frameId, String* manife stURL) override; 65 void getManifestForFrame(ErrorString*, const String& frameId, String* manife stURL) override;
66 void getApplicationCacheForFrame(ErrorString*, const String& frameId, RefPtr <TypeBuilder::ApplicationCache::ApplicationCache>&) override; 66 void getApplicationCacheForFrame(ErrorString*, const String& frameId, RefPtr <TypeBuilder::ApplicationCache::ApplicationCache>&) override;
67 67
68 private: 68 private:
69 InspectorApplicationCacheAgent(InspectedFrames*); 69 explicit InspectorApplicationCacheAgent(InspectedFrames*);
70
70 PassRefPtr<TypeBuilder::ApplicationCache::ApplicationCache> buildObjectForAp plicationCache(const ApplicationCacheHost::ResourceInfoList&, const ApplicationC acheHost::CacheInfo&); 71 PassRefPtr<TypeBuilder::ApplicationCache::ApplicationCache> buildObjectForAp plicationCache(const ApplicationCacheHost::ResourceInfoList&, const ApplicationC acheHost::CacheInfo&);
71 PassRefPtr<TypeBuilder::Array<TypeBuilder::ApplicationCache::ApplicationCach eResource> > buildArrayForApplicationCacheResources(const ApplicationCacheHost:: ResourceInfoList&); 72 PassRefPtr<TypeBuilder::Array<TypeBuilder::ApplicationCache::ApplicationCach eResource> > buildArrayForApplicationCacheResources(const ApplicationCacheHost:: ResourceInfoList&);
72 PassRefPtr<TypeBuilder::ApplicationCache::ApplicationCacheResource> buildObj ectForApplicationCacheResource(const ApplicationCacheHost::ResourceInfo&); 73 PassRefPtr<TypeBuilder::ApplicationCache::ApplicationCacheResource> buildObj ectForApplicationCacheResource(const ApplicationCacheHost::ResourceInfo&);
73 74
74 DocumentLoader* assertFrameWithDocumentLoader(ErrorString*, String frameId); 75 DocumentLoader* assertFrameWithDocumentLoader(ErrorString*, String frameId);
75 76
76 InspectedFrames* m_inspectedFrames; 77 RawPtrWillBeMember<InspectedFrames> m_inspectedFrames;
77 }; 78 };
78 79
79 } // namespace blink 80 } // namespace blink
80 81
81 #endif // InspectorApplicationCacheAgent_h 82 #endif // InspectorApplicationCacheAgent_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698