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

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

Issue 638553002: Replace FINAL and OVERRIDE with their C++11 counterparts in Source/core/inspector (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Fixed Nits Created 6 years, 2 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
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 22 matching lines...) Expand all
33 33
34 namespace blink { 34 namespace blink {
35 35
36 class LocalFrame; 36 class LocalFrame;
37 class InspectorFrontend; 37 class InspectorFrontend;
38 class InspectorPageAgent; 38 class InspectorPageAgent;
39 class InstrumentingAgents; 39 class InstrumentingAgents;
40 40
41 typedef String ErrorString; 41 typedef String ErrorString;
42 42
43 class InspectorApplicationCacheAgent FINAL : public InspectorBaseAgent<Inspector ApplicationCacheAgent>, public InspectorBackendDispatcher::ApplicationCacheComma ndHandler { 43 class InspectorApplicationCacheAgent final : public InspectorBaseAgent<Inspector ApplicationCacheAgent>, public InspectorBackendDispatcher::ApplicationCacheComma ndHandler {
44 WTF_MAKE_NONCOPYABLE(InspectorApplicationCacheAgent); 44 WTF_MAKE_NONCOPYABLE(InspectorApplicationCacheAgent);
45 WTF_MAKE_FAST_ALLOCATED_WILL_BE_REMOVED; 45 WTF_MAKE_FAST_ALLOCATED_WILL_BE_REMOVED;
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 virtual ~InspectorApplicationCacheAgent() { }
52 virtual void trace(Visitor*) OVERRIDE; 52 virtual void trace(Visitor*) override;
53 53
54 // InspectorBaseAgent 54 // InspectorBaseAgent
55 virtual void setFrontend(InspectorFrontend*) OVERRIDE; 55 virtual void setFrontend(InspectorFrontend*) override;
56 virtual void clearFrontend() OVERRIDE; 56 virtual void clearFrontend() override;
57 virtual void restore() OVERRIDE; 57 virtual void restore() override;
58 58
59 // InspectorInstrumentation API 59 // InspectorInstrumentation API
60 void updateApplicationCacheStatus(LocalFrame*); 60 void updateApplicationCacheStatus(LocalFrame*);
61 void networkStateChanged(bool online); 61 void networkStateChanged(bool online);
62 62
63 // ApplicationCache API for InspectorFrontend 63 // ApplicationCache API for InspectorFrontend
64 virtual void enable(ErrorString*) OVERRIDE; 64 virtual void enable(ErrorString*) override;
65 virtual void getFramesWithManifests(ErrorString*, RefPtr<TypeBuilder::Array< TypeBuilder::ApplicationCache::FrameWithManifest> >& result) OVERRIDE; 65 virtual void getFramesWithManifests(ErrorString*, RefPtr<TypeBuilder::Array< TypeBuilder::ApplicationCache::FrameWithManifest> >& result) override;
66 virtual void getManifestForFrame(ErrorString*, const String& frameId, String * manifestURL) OVERRIDE; 66 virtual void getManifestForFrame(ErrorString*, const String& frameId, String * manifestURL) override;
67 virtual void getApplicationCacheForFrame(ErrorString*, const String& frameId , RefPtr<TypeBuilder::ApplicationCache::ApplicationCache>&) OVERRIDE; 67 virtual void getApplicationCacheForFrame(ErrorString*, const String& frameId , RefPtr<TypeBuilder::ApplicationCache::ApplicationCache>&) override;
68 68
69 private: 69 private:
70 InspectorApplicationCacheAgent(InspectorPageAgent*); 70 InspectorApplicationCacheAgent(InspectorPageAgent*);
71 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&);
72 PassRefPtr<TypeBuilder::Array<TypeBuilder::ApplicationCache::ApplicationCach eResource> > buildArrayForApplicationCacheResources(const ApplicationCacheHost:: ResourceInfoList&); 72 PassRefPtr<TypeBuilder::Array<TypeBuilder::ApplicationCache::ApplicationCach eResource> > buildArrayForApplicationCacheResources(const ApplicationCacheHost:: ResourceInfoList&);
73 PassRefPtr<TypeBuilder::ApplicationCache::ApplicationCacheResource> buildObj ectForApplicationCacheResource(const ApplicationCacheHost::ResourceInfo&); 73 PassRefPtr<TypeBuilder::ApplicationCache::ApplicationCacheResource> buildObj ectForApplicationCacheResource(const ApplicationCacheHost::ResourceInfo&);
74 74
75 DocumentLoader* assertFrameWithDocumentLoader(ErrorString*, String frameId); 75 DocumentLoader* assertFrameWithDocumentLoader(ErrorString*, String frameId);
76 76
77 RawPtrWillBeMember<InspectorPageAgent> m_pageAgent; 77 RawPtrWillBeMember<InspectorPageAgent> m_pageAgent;
78 InspectorFrontend::ApplicationCache* m_frontend; 78 InspectorFrontend::ApplicationCache* m_frontend;
79 }; 79 };
80 80
81 } // namespace blink 81 } // namespace blink
82 82
83 #endif // InspectorApplicationCacheAgent_h 83 #endif // InspectorApplicationCacheAgent_h
OLDNEW
« no previous file with comments | « Source/core/inspector/InjectedScriptCanvasModule.h ('k') | Source/core/inspector/InspectorBaseAgent.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698