| 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 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 50 virtual ~InspectorApplicationCacheAgent() { } | 50 virtual ~InspectorApplicationCacheAgent() { } |
| 51 virtual void trace(Visitor*) override; | 51 virtual void trace(Visitor*) override; |
| 52 | 52 |
| 53 // InspectorBaseAgent | 53 // InspectorBaseAgent |
| 54 virtual void setFrontend(InspectorFrontend*) override; | 54 virtual void setFrontend(InspectorFrontend*) override; |
| 55 virtual void clearFrontend() override; | 55 virtual void clearFrontend() override; |
| 56 virtual void restore() override; | 56 virtual void restore() 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(bool online); |
| 61 | 61 |
| 62 // ApplicationCache API for InspectorFrontend | 62 // ApplicationCache API for InspectorFrontend |
| 63 virtual void enable(ErrorString*) override; | 63 virtual void enable(ErrorString*) override; |
| 64 virtual void getFramesWithManifests(ErrorString*, RefPtr<TypeBuilder::Array<
TypeBuilder::ApplicationCache::FrameWithManifest> >& result) override; | 64 virtual void getFramesWithManifests(ErrorString*, RefPtr<TypeBuilder::Array<
TypeBuilder::ApplicationCache::FrameWithManifest> >& result) override; |
| 65 virtual void getManifestForFrame(ErrorString*, const String& frameId, String
* manifestURL) override; | 65 virtual void getManifestForFrame(ErrorString*, const String& frameId, String
* manifestURL) override; |
| 66 virtual void getApplicationCacheForFrame(ErrorString*, const String& frameId
, RefPtr<TypeBuilder::ApplicationCache::ApplicationCache>&) override; | 66 virtual 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 InspectorFrontend::ApplicationCache* m_frontend; | 77 InspectorFrontend::ApplicationCache* m_frontend; |
| 78 }; | 78 }; |
| 79 | 79 |
| 80 } // namespace blink | 80 } // namespace blink |
| 81 | 81 |
| 82 #endif // InspectorApplicationCacheAgent_h | 82 #endif // InspectorApplicationCacheAgent_h |
| OLD | NEW |