OLD | NEW |
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 30 matching lines...) Expand all Loading... |
41 typedef String ErrorString; | 41 typedef String ErrorString; |
42 | 42 |
43 class CORE_EXPORT InspectorApplicationCacheAgent final : public InspectorBaseAge
nt<InspectorApplicationCacheAgent, InspectorFrontend::ApplicationCache>, public
InspectorBackendDispatcher::ApplicationCacheCommandHandler { | 43 class CORE_EXPORT InspectorApplicationCacheAgent final : public InspectorBaseAge
nt<InspectorApplicationCacheAgent, InspectorFrontend::ApplicationCache>, public
InspectorBackendDispatcher::ApplicationCacheCommandHandler { |
44 WTF_MAKE_NONCOPYABLE(InspectorApplicationCacheAgent); | 44 WTF_MAKE_NONCOPYABLE(InspectorApplicationCacheAgent); |
45 WTF_MAKE_FAST_ALLOCATED_WILL_BE_REMOVED(InspectorApplicationCacheAgent); | 45 WTF_MAKE_FAST_ALLOCATED_WILL_BE_REMOVED(InspectorApplicationCacheAgent); |
46 public: | 46 public: |
47 static PassOwnPtrWillBeRawPtr<InspectorApplicationCacheAgent> create(Inspect
orPageAgent* pageAgent) | 47 static PassOwnPtrWillBeRawPtr<InspectorApplicationCacheAgent> create(Inspect
orPageAgent* pageAgent) |
48 { | 48 { |
49 return adoptPtrWillBeNoop(new InspectorApplicationCacheAgent(pageAgent))
; | 49 return adoptPtrWillBeNoop(new InspectorApplicationCacheAgent(pageAgent))
; |
50 } | 50 } |
51 virtual ~InspectorApplicationCacheAgent() { } | 51 ~InspectorApplicationCacheAgent() override { } |
52 DECLARE_VIRTUAL_TRACE(); | 52 DECLARE_VIRTUAL_TRACE(); |
53 | 53 |
54 // InspectorBaseAgent | 54 // InspectorBaseAgent |
55 void restore() override; | 55 void restore() override; |
56 void disable(ErrorString*) override; | 56 void disable(ErrorString*) override; |
57 | 57 |
58 // InspectorInstrumentation API | 58 // InspectorInstrumentation API |
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 virtual void enable(ErrorString*) override; | 63 void enable(ErrorString*) override; |
64 virtual void getFramesWithManifests(ErrorString*, RefPtr<TypeBuilder::Array<
TypeBuilder::ApplicationCache::FrameWithManifest> >& result) override; | 64 void getFramesWithManifests(ErrorString*, RefPtr<TypeBuilder::Array<TypeBuil
der::ApplicationCache::FrameWithManifest>>& result) override; |
65 virtual void getManifestForFrame(ErrorString*, const String& frameId, String
* manifestURL) override; | 65 void getManifestForFrame(ErrorString*, const String& frameId, String* manife
stURL) override; |
66 virtual 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(InspectorPageAgent*); | 69 InspectorApplicationCacheAgent(InspectorPageAgent*); |
70 PassRefPtr<TypeBuilder::ApplicationCache::ApplicationCache> buildObjectForAp
plicationCache(const ApplicationCacheHost::ResourceInfoList&, const ApplicationC
acheHost::CacheInfo&); | 70 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&); | 71 PassRefPtr<TypeBuilder::Array<TypeBuilder::ApplicationCache::ApplicationCach
eResource> > buildArrayForApplicationCacheResources(const ApplicationCacheHost::
ResourceInfoList&); |
72 PassRefPtr<TypeBuilder::ApplicationCache::ApplicationCacheResource> buildObj
ectForApplicationCacheResource(const ApplicationCacheHost::ResourceInfo&); | 72 PassRefPtr<TypeBuilder::ApplicationCache::ApplicationCacheResource> buildObj
ectForApplicationCacheResource(const ApplicationCacheHost::ResourceInfo&); |
73 | 73 |
74 DocumentLoader* assertFrameWithDocumentLoader(ErrorString*, String frameId); | 74 DocumentLoader* assertFrameWithDocumentLoader(ErrorString*, String frameId); |
75 | 75 |
76 RawPtrWillBeMember<InspectorPageAgent> m_pageAgent; | 76 RawPtrWillBeMember<InspectorPageAgent> m_pageAgent; |
77 }; | 77 }; |
78 | 78 |
79 } // namespace blink | 79 } // namespace blink |
80 | 80 |
81 #endif // InspectorApplicationCacheAgent_h | 81 #endif // InspectorApplicationCacheAgent_h |
OLD | NEW |