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

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

Issue 884753003: Fix template angle bracket syntax in inspector (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Some more fixes Created 5 years, 10 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 * Copyright (C) 2010 Google Inc. All rights reserved. 3 * Copyright (C) 2010 Google Inc. All rights reserved.
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions 6 * modification, are permitted provided that the following conditions
7 * are met: 7 * are met:
8 * 1. Redistributions of source code must retain the above copyright 8 * 1. Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * 2. Redistributions in binary form must reproduce the above copyright 10 * 2. Redistributions in binary form must reproduce the above copyright
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after
88 88
89 String manifestURL = info.m_manifest.string(); 89 String manifestURL = info.m_manifest.string();
90 m_frontend->applicationCacheStatusUpdated(m_pageAgent->frameId(frame), manif estURL, static_cast<int>(status)); 90 m_frontend->applicationCacheStatusUpdated(m_pageAgent->frameId(frame), manif estURL, static_cast<int>(status));
91 } 91 }
92 92
93 void InspectorApplicationCacheAgent::networkStateChanged(bool online) 93 void InspectorApplicationCacheAgent::networkStateChanged(bool online)
94 { 94 {
95 m_frontend->networkStateUpdated(online); 95 m_frontend->networkStateUpdated(online);
96 } 96 }
97 97
98 void InspectorApplicationCacheAgent::getFramesWithManifests(ErrorString*, RefPtr <TypeBuilder::Array<TypeBuilder::ApplicationCache::FrameWithManifest> >& result) 98 void InspectorApplicationCacheAgent::getFramesWithManifests(ErrorString*, RefPtr <TypeBuilder::Array<TypeBuilder::ApplicationCache::FrameWithManifest>>& result)
99 { 99 {
100 result = TypeBuilder::Array<TypeBuilder::ApplicationCache::FrameWithManifest >::create(); 100 result = TypeBuilder::Array<TypeBuilder::ApplicationCache::FrameWithManifest >::create();
101 101
102 LocalFrame* mainFrame = m_pageAgent->mainFrame(); 102 LocalFrame* mainFrame = m_pageAgent->mainFrame();
103 for (Frame* frame = mainFrame; frame; frame = frame->tree().traverseNext(mai nFrame)) { 103 for (Frame* frame = mainFrame; frame; frame = frame->tree().traverseNext(mai nFrame)) {
104 if (!frame->isLocalFrame()) 104 if (!frame->isLocalFrame())
105 continue; 105 continue;
106 DocumentLoader* documentLoader = toLocalFrame(frame)->loader().documentL oader(); 106 DocumentLoader* documentLoader = toLocalFrame(frame)->loader().documentL oader();
107 if (!documentLoader) 107 if (!documentLoader)
108 continue; 108 continue;
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
158 { 158 {
159 return TypeBuilder::ApplicationCache::ApplicationCache::create() 159 return TypeBuilder::ApplicationCache::ApplicationCache::create()
160 .setManifestURL(applicationCacheInfo.m_manifest.string()) 160 .setManifestURL(applicationCacheInfo.m_manifest.string())
161 .setSize(applicationCacheInfo.m_size) 161 .setSize(applicationCacheInfo.m_size)
162 .setCreationTime(applicationCacheInfo.m_creationTime) 162 .setCreationTime(applicationCacheInfo.m_creationTime)
163 .setUpdateTime(applicationCacheInfo.m_updateTime) 163 .setUpdateTime(applicationCacheInfo.m_updateTime)
164 .setResources(buildArrayForApplicationCacheResources(applicationCacheRes ources)) 164 .setResources(buildArrayForApplicationCacheResources(applicationCacheRes ources))
165 .release(); 165 .release();
166 } 166 }
167 167
168 PassRefPtr<TypeBuilder::Array<TypeBuilder::ApplicationCache::ApplicationCacheRes ource> > InspectorApplicationCacheAgent::buildArrayForApplicationCacheResources( const ApplicationCacheHost::ResourceInfoList& applicationCacheResources) 168 PassRefPtr<TypeBuilder::Array<TypeBuilder::ApplicationCache::ApplicationCacheRes ource>> InspectorApplicationCacheAgent::buildArrayForApplicationCacheResources(c onst ApplicationCacheHost::ResourceInfoList& applicationCacheResources)
169 { 169 {
170 RefPtr<TypeBuilder::Array<TypeBuilder::ApplicationCache::ApplicationCacheRes ource> > resources = TypeBuilder::Array<TypeBuilder::ApplicationCache::Applicati onCacheResource>::create(); 170 RefPtr<TypeBuilder::Array<TypeBuilder::ApplicationCache::ApplicationCacheRes ource>> resources = TypeBuilder::Array<TypeBuilder::ApplicationCache::Applicatio nCacheResource>::create();
171 171
172 ApplicationCacheHost::ResourceInfoList::const_iterator end = applicationCach eResources.end(); 172 ApplicationCacheHost::ResourceInfoList::const_iterator end = applicationCach eResources.end();
173 ApplicationCacheHost::ResourceInfoList::const_iterator it = applicationCache Resources.begin(); 173 ApplicationCacheHost::ResourceInfoList::const_iterator it = applicationCache Resources.begin();
174 for (int i = 0; it != end; ++it, i++) 174 for (int i = 0; it != end; ++it, i++)
175 resources->addItem(buildObjectForApplicationCacheResource(*it)); 175 resources->addItem(buildObjectForApplicationCacheResource(*it));
176 176
177 return resources; 177 return resources;
178 } 178 }
179 179
180 PassRefPtr<TypeBuilder::ApplicationCache::ApplicationCacheResource> InspectorApp licationCacheAgent::buildObjectForApplicationCacheResource(const ApplicationCach eHost::ResourceInfo& resourceInfo) 180 PassRefPtr<TypeBuilder::ApplicationCache::ApplicationCacheResource> InspectorApp licationCacheAgent::buildObjectForApplicationCacheResource(const ApplicationCach eHost::ResourceInfo& resourceInfo)
(...skipping 22 matching lines...) Expand all
203 } 203 }
204 204
205 void InspectorApplicationCacheAgent::trace(Visitor* visitor) 205 void InspectorApplicationCacheAgent::trace(Visitor* visitor)
206 { 206 {
207 visitor->trace(m_pageAgent); 207 visitor->trace(m_pageAgent);
208 InspectorBaseAgent::trace(visitor); 208 InspectorBaseAgent::trace(visitor);
209 } 209 }
210 210
211 } // namespace blink 211 } // namespace blink
212 212
OLDNEW
« no previous file with comments | « Source/core/inspector/InspectorApplicationCacheAgent.h ('k') | Source/core/inspector/InspectorBaseAgent.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698