Changeset 78234 in webkit
- Timestamp:
- Feb 10, 2011 9:43:48 AM (13 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 3 deleted
- 17 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/CMakeLists.txt
r78194 r78234 1031 1031 inspector/InspectorDatabaseResource.cpp 1032 1032 inspector/InspectorDebuggerAgent.cpp 1033 inspector/InspectorFileSystemAgent.cpp1034 1033 inspector/InspectorFrontendClientLocal.cpp 1035 1034 inspector/InspectorFrontendHost.cpp -
trunk/Source/WebCore/ChangeLog
r78232 r78234 1 2011-02-09 Pavel Feldman <pfeldman@chromium.org> 2 3 Reviewed by Yury Semikhatsky. 4 5 Web Inspector: Remove FileSystem support from the inspector. 6 https://bugs.webkit.org/show_bug.cgi?id=50695 7 8 * CMakeLists.txt: 9 * GNUmakefile.am: 10 * WebCore.gypi: 11 * WebCore.pro: 12 * WebCore.vcproj/WebCore.vcproj: 13 * WebCore.xcodeproj/project.pbxproj: 14 * inspector/Inspector.idl: 15 * inspector/InspectorApplicationCacheAgent.cpp: 16 (WebCore::InspectorApplicationCacheAgent::InspectorApplicationCacheAgent): 17 (WebCore::InspectorApplicationCacheAgent::getApplicationCaches): 18 * inspector/InspectorApplicationCacheAgent.h: 19 * inspector/InspectorFileSystemAgent.cpp: Removed. 20 * inspector/InspectorFileSystemAgent.h: Removed. 21 * inspector/InspectorInstrumentation.cpp: 22 (WebCore::InspectorInstrumentation::identifierForInitialRequestImpl): 23 (WebCore::InspectorInstrumentation::willSendRequestImpl): 24 (WebCore::InspectorInstrumentation::markResourceAsCachedImpl): 25 (WebCore::InspectorInstrumentation::didLoadResourceFromMemoryCacheImpl): 26 (WebCore::InspectorInstrumentation::didReceiveResourceResponseImpl): 27 (WebCore::InspectorInstrumentation::didReceiveContentLengthImpl): 28 (WebCore::InspectorInstrumentation::didFinishLoadingImpl): 29 (WebCore::InspectorInstrumentation::didFailLoadingImpl): 30 (WebCore::InspectorInstrumentation::resourceRetrievedByXMLHttpRequestImpl): 31 (WebCore::InspectorInstrumentation::scriptImportedImpl): 32 (WebCore::InspectorInstrumentation::networkStateChangedImpl): 33 (WebCore::InspectorInstrumentation::updateApplicationCacheStatusImpl): 34 (WebCore::InspectorInstrumentation::retrieveResourceAgent): 35 * inspector/front-end/FileSystemView.js: Removed. 36 * inspector/front-end/WebKit.qrc: 37 * inspector/front-end/inspector.html: 38 1 39 2011-02-10 Sheriff Bot <webkit.review.bot@gmail.com> 2 40 -
trunk/Source/WebCore/GNUmakefile.am
r78194 r78234 1988 1988 Source/WebCore/inspector/InspectorDOMStorageResource.cpp \ 1989 1989 Source/WebCore/inspector/InspectorDOMStorageResource.h \ 1990 Source/WebCore/inspector/InspectorFileSystemAgent.cpp \1991 Source/WebCore/inspector/InspectorFileSystemAgent.h \1992 1990 Source/WebCore/inspector/InspectorFrontendClient.h \ 1993 1991 Source/WebCore/inspector/InspectorFrontendClientLocal.cpp \ -
trunk/Source/WebCore/WebCore.gypi
r78194 r78234 2046 2046 'inspector/InspectorDOMStorageResource.cpp', 2047 2047 'inspector/InspectorDOMStorageResource.h', 2048 'inspector/InspectorFileSystemAgent.cpp',2049 'inspector/InspectorFileSystemAgent.h',2050 2048 'inspector/InspectorFrontendClient.h', 2051 2049 'inspector/InspectorFrontendHost.cpp', … … 4697 4695 'inspector/front-end/ExtensionRegistryStub.js', 4698 4696 'inspector/front-end/ExtensionServer.js', 4699 'inspector/front-end/FileSystemView.js',4700 4697 'inspector/front-end/FontView.js', 4701 4698 'inspector/front-end/GoToLineDialog.js', -
trunk/Source/WebCore/WebCore.pro
r78194 r78234 1061 1061 inspector/InspectorDOMStorageAgent.cpp \ 1062 1062 inspector/InspectorDOMStorageResource.cpp \ 1063 inspector/InspectorFileSystemAgent.cpp \1064 1063 inspector/InspectorFrontendClientLocal.cpp \ 1065 1064 inspector/InspectorFrontendHost.cpp \ -
trunk/Source/WebCore/WebCore.vcproj/WebCore.vcproj
r78194 r78234 65455 65455 </File> 65456 65456 <File 65457 RelativePath="..\inspector\InspectorFileSystemAgent.cpp"65458 >65459 </File>65460 <File65461 RelativePath="..\inspector\InspectorFileSystemAgent.h"65462 >65463 </File>65464 <File65465 65457 RelativePath="..\inspector\InspectorFrontendClient.h" 65466 65458 > … … 65771 65763 <File 65772 65764 RelativePath="..\inspector\front-end\ExtensionServer.js" 65773 >65774 </File>65775 <File65776 RelativePath="..\inspector\front-end\FileSystemView.js"65777 65765 > 65778 65766 </File> -
trunk/Source/WebCore/WebCore.xcodeproj/project.pbxproj
r78194 r78234 861 861 37F818FE0D657606005E1F05 /* WebCoreURLResponse.mm in Sources */ = {isa = PBXBuildFile; fileRef = 37F818FC0D657606005E1F05 /* WebCoreURLResponse.mm */; }; 862 862 37FD4298118368460093C029 /* TreeDepthLimit.h in Headers */ = {isa = PBXBuildFile; fileRef = 37FD4297118368460093C029 /* TreeDepthLimit.h */; }; 863 3888F6EE128C9889000CA8E0 /* InspectorFileSystemAgent.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 3888F6EC128C9889000CA8E0 /* InspectorFileSystemAgent.cpp */; };864 3888F6EF128C9889000CA8E0 /* InspectorFileSystemAgent.h in Headers */ = {isa = PBXBuildFile; fileRef = 3888F6ED128C9889000CA8E0 /* InspectorFileSystemAgent.h */; };865 863 3AC648B2129E146500C3EB25 /* EditingBoundary.h in Headers */ = {isa = PBXBuildFile; fileRef = 3AC648B1129E146500C3EB25 /* EditingBoundary.h */; settings = {ATTRIBUTES = (Private, ); }; }; 866 864 41002CCD0F66EDEF009E660D /* ScriptFunctionCall.h in Headers */ = {isa = PBXBuildFile; fileRef = 41002CCB0F66EDEF009E660D /* ScriptFunctionCall.h */; }; … … 7226 7224 37FC96DA1104ED71003E1FAD /* TrailingFloatsRootInlineBox.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = TrailingFloatsRootInlineBox.h; sourceTree = "<group>"; }; 7227 7225 37FD4297118368460093C029 /* TreeDepthLimit.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = TreeDepthLimit.h; sourceTree = "<group>"; }; 7228 3888F6EC128C9889000CA8E0 /* InspectorFileSystemAgent.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = InspectorFileSystemAgent.cpp; sourceTree = "<group>"; };7229 3888F6ED128C9889000CA8E0 /* InspectorFileSystemAgent.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = InspectorFileSystemAgent.h; sourceTree = "<group>"; };7230 7226 3AC648B1129E146500C3EB25 /* EditingBoundary.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = EditingBoundary.h; sourceTree = "<group>"; }; 7231 7227 41002CCB0F66EDEF009E660D /* ScriptFunctionCall.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = ScriptFunctionCall.h; sourceTree = "<group>"; }; … … 13012 13008 41F061730F5F00AC00A07EAC /* InspectorDOMStorageResource.cpp */, 13013 13009 41F061720F5F00AC00A07EAC /* InspectorDOMStorageResource.h */, 13014 3888F6EC128C9889000CA8E0 /* InspectorFileSystemAgent.cpp */,13015 3888F6ED128C9889000CA8E0 /* InspectorFileSystemAgent.h */,13016 13010 F344C7121125B82C00F26EEE /* InspectorFrontendClient.h */, 13017 13011 F344C75711294FF600F26EEE /* InspectorFrontendClientLocal.cpp */, … … 20927 20921 7A74ECBB101839A600BF939E /* InspectorDOMStorageAgent.h in Headers */, 20928 20922 41F061740F5F00AC00A07EAC /* InspectorDOMStorageResource.h in Headers */, 20929 3888F6EF128C9889000CA8E0 /* InspectorFileSystemAgent.h in Headers */,20930 20923 F344C7141125B82C00F26EEE /* InspectorFrontendClient.h in Headers */, 20931 20924 F344C75311294D9D00F26EEE /* InspectorFrontendClientLocal.h in Headers */, … … 23660 23653 7A74ECBA101839A600BF939E /* InspectorDOMStorageAgent.cpp in Sources */, 23661 23654 41F061750F5F00AC00A07EAC /* InspectorDOMStorageResource.cpp in Sources */, 23662 3888F6EE128C9889000CA8E0 /* InspectorFileSystemAgent.cpp in Sources */,23663 23655 4F4F5FFB11CBD2E100A186BF /* InspectorFrontend.cpp in Sources */, 23664 23656 F344C75811294FF600F26EEE /* InspectorFrontendClientLocal.cpp in Sources */, -
trunk/Source/WebCore/inspector/Inspector.idl
r78212 r78234 152 152 #endif 153 153 154 #if defined(ENABLE_FILE_SYSTEM) && ENABLE_FILE_SYSTEM155 interface [Conditional=INSPECTOR] FileSystem {156 void getFileSystemPathAsync(in unsigned int type, in String origin);157 void revealFolderInOS(in String path);158 159 [notify] void didGetFileSystemPath(out String root, out int type, out String origin);160 [notify] void didGetFileSystemError(out int type, out String origin);161 [notify] void didGetFileSystemDisabled();162 };163 #endif164 165 154 interface [Conditional=INSPECTOR] DOM { 166 155 void getChildNodes(in long nodeId); -
trunk/Source/WebCore/inspector/InspectorAgent.cpp
r78056 r78234 121 121 #endif 122 122 123 #if ENABLE(FILE_SYSTEM)124 #include "InspectorFileSystemAgent.h"125 #endif126 127 123 using namespace std; 128 124 … … 404 400 405 401 #if ENABLE(OFFLINE_WEB_APPLICATIONS) 406 m_applicationCacheAgent = new InspectorApplicationCacheAgent(this, m_frontend); 407 #endif 408 409 #if ENABLE(FILE_SYSTEM) 410 m_fileSystemAgent = InspectorFileSystemAgent::create(this, m_frontend); 402 m_applicationCacheAgent = new InspectorApplicationCacheAgent(m_inspectedPage->mainFrame()->loader()->documentLoader(), m_frontend); 411 403 #endif 412 404 } … … 440 432 #endif 441 433 442 #if ENABLE(FILE_SYSTEM)443 if (m_fileSystemAgent)444 m_fileSystemAgent->stop();445 m_fileSystemAgent.clear();446 #endif447 434 stopTimelineProfiler(); 448 435 } … … 545 532 if (m_resourceAgent) 546 533 m_resourceAgent->didCommitLoad(loader); 547 534 548 535 ASSERT(m_inspectedPage); 549 536 … … 554 541 m_injectedScriptHost->discardInjectedScripts(); 555 542 m_consoleAgent->reset(); 543 544 #if ENABLE(OFFLINE_WEB_APPLICATIONS) 545 if (m_applicationCacheAgent) 546 m_applicationCacheAgent->didCommitLoad(loader); 547 #endif 556 548 557 549 #if ENABLE(JAVASCRIPT_DEBUGGER) -
trunk/Source/WebCore/inspector/InspectorAgent.h
r78056 r78234 95 95 #endif 96 96 97 #if ENABLE(FILE_SYSTEM)98 class InspectorFileSystemAgent;99 #endif100 101 97 #if ENABLE(WEB_SOCKETS) 102 98 class WebSocketHandshakeRequest; … … 153 149 #if ENABLE(DOM_STORAGE) 154 150 InspectorDOMStorageAgent* domStorageAgent() { return m_domStorageAgent.get(); } 155 #endif156 #if ENABLE(FILE_SYSTEM)157 InspectorFileSystemAgent* fileSystemAgent() { return m_fileSystemAgent.get(); }158 151 #endif 159 152 #if ENABLE(JAVASCRIPT_DEBUGGER) … … 296 289 #endif 297 290 298 #if ENABLE(FILE_SYSTEM)299 RefPtr<InspectorFileSystemAgent> m_fileSystemAgent;300 #endif301 302 291 RefPtr<Node> m_highlightedNode; 303 292 RefPtr<Node> m_nodeToFocus; -
trunk/Source/WebCore/inspector/InspectorApplicationCacheAgent.cpp
r76459 r78234 42 42 namespace WebCore { 43 43 44 InspectorApplicationCacheAgent::InspectorApplicationCacheAgent( InspectorAgent* inspectorAgent, InspectorFrontend* frontend)45 : m_ inspectorAgent(inspectorAgent)44 InspectorApplicationCacheAgent::InspectorApplicationCacheAgent(DocumentLoader* documentLoader, InspectorFrontend* frontend) 45 : m_documentLoader(documentLoader) 46 46 , m_frontend(frontend) 47 47 { 48 } 49 50 void InspectorApplicationCacheAgent::didCommitLoad(DocumentLoader* documentLoader) 51 { 52 m_documentLoader = documentLoader; 48 53 } 49 54 … … 62 67 void InspectorApplicationCacheAgent::getApplicationCaches(RefPtr<InspectorValue>* applicationCaches) 63 68 { 64 DocumentLoader* documentLoader = m_inspectorAgent->inspectedPage()->mainFrame()->loader()->documentLoader(); 65 if (documentLoader) { 66 ApplicationCacheHost* host = documentLoader->applicationCacheHost(); 69 if (m_documentLoader) { 70 ApplicationCacheHost* host = m_documentLoader->applicationCacheHost(); 67 71 ApplicationCacheHost::CacheInfo info = host->applicationCacheInfo(); 68 72 -
trunk/Source/WebCore/inspector/InspectorApplicationCacheAgent.h
r76459 r78234 34 34 namespace WebCore { 35 35 36 class DocumentLoader; 36 37 class Frame; 37 38 class InspectorArray; … … 45 46 WTF_MAKE_NONCOPYABLE(InspectorApplicationCacheAgent); WTF_MAKE_FAST_ALLOCATED; 46 47 public: 47 InspectorApplicationCacheAgent( InspectorAgent*, InspectorFrontend*);48 InspectorApplicationCacheAgent(DocumentLoader*, InspectorFrontend*); 48 49 ~InspectorApplicationCacheAgent() { } 50 51 void didCommitLoad(DocumentLoader*); 49 52 50 53 // Backend to Frontend … … 60 63 PassRefPtr<InspectorObject> buildObjectForApplicationCacheResource(const ApplicationCacheHost::ResourceInfo&); 61 64 62 InspectorAgent* m_inspectorAgent;65 DocumentLoader* m_documentLoader; 63 66 InspectorFrontend* m_frontend; 64 67 }; -
trunk/Source/WebCore/inspector/InspectorInstrumentation.cpp
r77950 r78234 373 373 } 374 374 375 void InspectorInstrumentation::identifierForInitialRequestImpl(InspectorAgent* i c, unsigned long identifier, DocumentLoader* loader, const ResourceRequest& request)376 { 377 if (!i c->enabled())375 void InspectorInstrumentation::identifierForInitialRequestImpl(InspectorAgent* inspectorAgent, unsigned long identifier, DocumentLoader* loader, const ResourceRequest& request) 376 { 377 if (!inspectorAgent->enabled()) 378 378 return; 379 379 380 if (InspectorResourceAgent* resourceAgent = retrieveResourceAgent(i c))380 if (InspectorResourceAgent* resourceAgent = retrieveResourceAgent(inspectorAgent)) 381 381 resourceAgent->identifierForInitialRequest(identifier, request.url(), loader); 382 382 } … … 387 387 } 388 388 389 void InspectorInstrumentation::willSendRequestImpl(InspectorAgent* i c, unsigned long identifier, ResourceRequest& request, const ResourceResponse& redirectResponse)390 { 391 if (InspectorTimelineAgent* timelineAgent = retrieveTimelineAgent(i c))389 void InspectorInstrumentation::willSendRequestImpl(InspectorAgent* inspectorAgent, unsigned long identifier, ResourceRequest& request, const ResourceResponse& redirectResponse) 390 { 391 if (InspectorTimelineAgent* timelineAgent = retrieveTimelineAgent(inspectorAgent)) 392 392 timelineAgent->willSendResourceRequest(identifier, request); 393 if (InspectorResourceAgent* resourceAgent = retrieveResourceAgent(i c))393 if (InspectorResourceAgent* resourceAgent = retrieveResourceAgent(inspectorAgent)) 394 394 resourceAgent->willSendRequest(identifier, request, redirectResponse); 395 395 } 396 396 397 void InspectorInstrumentation::markResourceAsCachedImpl(InspectorAgent* i c, unsigned long identifier)398 { 399 if (InspectorResourceAgent* resourceAgent = retrieveResourceAgent(i c))397 void InspectorInstrumentation::markResourceAsCachedImpl(InspectorAgent* inspectorAgent, unsigned long identifier) 398 { 399 if (InspectorResourceAgent* resourceAgent = retrieveResourceAgent(inspectorAgent)) 400 400 resourceAgent->markResourceAsCached(identifier); 401 401 } 402 402 403 void InspectorInstrumentation::didLoadResourceFromMemoryCacheImpl(InspectorAgent* i c, DocumentLoader* loader, const CachedResource* cachedResource)404 { 405 if (!i c->enabled())403 void InspectorInstrumentation::didLoadResourceFromMemoryCacheImpl(InspectorAgent* inspectorAgent, DocumentLoader* loader, const CachedResource* cachedResource) 404 { 405 if (!inspectorAgent->enabled()) 406 406 return; 407 if (InspectorResourceAgent* resourceAgent = retrieveResourceAgent(i c))407 if (InspectorResourceAgent* resourceAgent = retrieveResourceAgent(inspectorAgent)) 408 408 resourceAgent->didLoadResourceFromMemoryCache(loader, cachedResource); 409 409 } … … 439 439 void InspectorInstrumentation::didReceiveResourceResponseImpl(const InspectorInstrumentationCookie& cookie, unsigned long identifier, DocumentLoader* loader, const ResourceResponse& response) 440 440 { 441 InspectorAgent* i c= cookie.first;442 if (InspectorResourceAgent* resourceAgent = retrieveResourceAgent(i c))441 InspectorAgent* inspectorAgent = cookie.first; 442 if (InspectorResourceAgent* resourceAgent = retrieveResourceAgent(inspectorAgent)) 443 443 resourceAgent->didReceiveResponse(identifier, loader, response); 444 i c->consoleAgent()->didReceiveResponse(identifier, response);444 inspectorAgent->consoleAgent()->didReceiveResponse(identifier, response); 445 445 if (InspectorTimelineAgent* timelineAgent = retrieveTimelineAgent(cookie)) 446 446 timelineAgent->didReceiveResourceResponse(); 447 447 } 448 448 449 void InspectorInstrumentation::didReceiveContentLengthImpl(InspectorAgent* i c, unsigned long identifier, int lengthReceived)450 { 451 if (InspectorResourceAgent* resourceAgent = retrieveResourceAgent(i c))449 void InspectorInstrumentation::didReceiveContentLengthImpl(InspectorAgent* inspectorAgent, unsigned long identifier, int lengthReceived) 450 { 451 if (InspectorResourceAgent* resourceAgent = retrieveResourceAgent(inspectorAgent)) 452 452 resourceAgent->didReceiveContentLength(identifier, lengthReceived); 453 453 } 454 454 455 void InspectorInstrumentation::didFinishLoadingImpl(InspectorAgent* i c, unsigned long identifier, double finishTime)456 { 457 if (InspectorTimelineAgent* timelineAgent = retrieveTimelineAgent(i c))455 void InspectorInstrumentation::didFinishLoadingImpl(InspectorAgent* inspectorAgent, unsigned long identifier, double finishTime) 456 { 457 if (InspectorTimelineAgent* timelineAgent = retrieveTimelineAgent(inspectorAgent)) 458 458 timelineAgent->didFinishLoadingResource(identifier, false, finishTime); 459 if (InspectorResourceAgent* resourceAgent = retrieveResourceAgent(i c))459 if (InspectorResourceAgent* resourceAgent = retrieveResourceAgent(inspectorAgent)) 460 460 resourceAgent->didFinishLoading(identifier, finishTime); 461 461 } 462 462 463 void InspectorInstrumentation::didFailLoadingImpl(InspectorAgent* i c, unsigned long identifier, const ResourceError& error)464 { 465 i c->consoleAgent()->didFailLoading(identifier, error);466 if (InspectorTimelineAgent* timelineAgent = retrieveTimelineAgent(i c))463 void InspectorInstrumentation::didFailLoadingImpl(InspectorAgent* inspectorAgent, unsigned long identifier, const ResourceError& error) 464 { 465 inspectorAgent->consoleAgent()->didFailLoading(identifier, error); 466 if (InspectorTimelineAgent* timelineAgent = retrieveTimelineAgent(inspectorAgent)) 467 467 timelineAgent->didFinishLoadingResource(identifier, true, 0); 468 if (InspectorResourceAgent* resourceAgent = retrieveResourceAgent(i c))468 if (InspectorResourceAgent* resourceAgent = retrieveResourceAgent(inspectorAgent)) 469 469 resourceAgent->didFailLoading(identifier, error); 470 470 } 471 471 472 void InspectorInstrumentation::resourceRetrievedByXMLHttpRequestImpl(InspectorAgent* i c, unsigned long identifier, const String& sourceString, const String& url, const String& sendURL, unsigned sendLineNumber)473 { 474 i c->consoleAgent()->resourceRetrievedByXMLHttpRequest(url, sendURL, sendLineNumber);475 if (InspectorResourceAgent* resourceAgent = retrieveResourceAgent(i c))472 void InspectorInstrumentation::resourceRetrievedByXMLHttpRequestImpl(InspectorAgent* inspectorAgent, unsigned long identifier, const String& sourceString, const String& url, const String& sendURL, unsigned sendLineNumber) 473 { 474 inspectorAgent->consoleAgent()->resourceRetrievedByXMLHttpRequest(url, sendURL, sendLineNumber); 475 if (InspectorResourceAgent* resourceAgent = retrieveResourceAgent(inspectorAgent)) 476 476 resourceAgent->setInitialContent(identifier, sourceString, "XHR"); 477 477 } 478 478 479 void InspectorInstrumentation::scriptImportedImpl(InspectorAgent* i c, unsigned long identifier, const String& sourceString)480 { 481 if (InspectorResourceAgent* resourceAgent = retrieveResourceAgent(i c))479 void InspectorInstrumentation::scriptImportedImpl(InspectorAgent* inspectorAgent, unsigned long identifier, const String& sourceString) 480 { 481 if (InspectorResourceAgent* resourceAgent = retrieveResourceAgent(inspectorAgent)) 482 482 resourceAgent->setInitialContent(identifier, sourceString, "Script"); 483 483 } … … 632 632 633 633 #if ENABLE(OFFLINE_WEB_APPLICATIONS) 634 void InspectorInstrumentation::networkStateChangedImpl(InspectorAgent* i c)635 { 636 if (InspectorApplicationCacheAgent* applicationCacheAgent = i c->applicationCacheAgent())634 void InspectorInstrumentation::networkStateChangedImpl(InspectorAgent* inspectorAgent) 635 { 636 if (InspectorApplicationCacheAgent* applicationCacheAgent = inspectorAgent->applicationCacheAgent()) 637 637 applicationCacheAgent->networkStateChanged(); 638 638 } 639 639 640 void InspectorInstrumentation::updateApplicationCacheStatusImpl(InspectorAgent* i c, Frame* frame)641 { 642 if (InspectorApplicationCacheAgent* applicationCacheAgent = i c->applicationCacheAgent())640 void InspectorInstrumentation::updateApplicationCacheStatusImpl(InspectorAgent* inspectorAgent, Frame* frame) 641 { 642 if (InspectorApplicationCacheAgent* applicationCacheAgent = inspectorAgent->applicationCacheAgent()) 643 643 applicationCacheAgent->updateApplicationCacheStatus(frame); 644 644 } … … 679 679 } 680 680 681 InspectorResourceAgent* InspectorInstrumentation::retrieveResourceAgent(InspectorAgent* i c)682 { 683 return i c->resourceAgent();681 InspectorResourceAgent* InspectorInstrumentation::retrieveResourceAgent(InspectorAgent* inspectorAgent) 682 { 683 return inspectorAgent->resourceAgent(); 684 684 } 685 685 -
trunk/Source/WebCore/inspector/front-end/ResourcesPanel.js
r77480 r78234 57 57 this.sidebarTree.appendChild(this.applicationCacheListTreeElement); 58 58 59 if (Preferences.fileSystemEnabled) {60 this.fileSystemListTreeElement = new WebInspector.StorageCategoryTreeElement(this, WebInspector.UIString("File System"), "FileSystem", "file-system-storage-tree-item");61 this.sidebarTree.appendChild(this.fileSystemListTreeElement);62 this.fileSystemListTreeElement.expand();63 }64 65 59 this.storageViews = document.createElement("div"); 66 60 this.storageViews.id = "storage-views"; … … 155 149 156 150 this._cookieViews = {}; 157 this._fileSystemView = null;158 151 159 152 this._applicationCacheView = null; … … 165 158 this.cookieListTreeElement.removeChildren(); 166 159 this.applicationCacheListTreeElement.removeChildren(); 167 if (Preferences.fileSystemEnabled)168 this.fileSystemListTreeElement.removeChildren();169 160 this.storageViews.removeChildren(); 170 161 … … 299 290 var applicationCacheTreeElement = new WebInspector.ApplicationCacheTreeElement(this, domain); 300 291 this.applicationCacheListTreeElement.appendChild(applicationCacheTreeElement); 301 }302 303 if (Preferences.fileSystemEnabled) {304 // FIXME: This should match the SecurityOrigin::toString(), add a test for this.305 var securityOrigin = parsedURL.scheme + "://" + parsedURL.host + (parsedURL.port ? (":" + parsedURL.port) : "");306 if (!this._origins[securityOrigin]) {307 this._origins[securityOrigin] = true;308 var fileSystemTreeElement = new WebInspector.FileSystemTreeElement(this, securityOrigin);309 this.fileSystemListTreeElement.appendChild(fileSystemTreeElement);310 }311 292 } 312 293 }, … … 490 471 }, 491 472 492 showFileSystem: function(treeElement, origin)493 {494 this._fileSystemView = new WebInspector.FileSystemView(treeElement, origin);495 this._innerShowView(this._fileSystemView);496 },497 498 473 showCategoryView: function(categoryName) 499 474 { … … 642 617 if (this._applicationCacheView && this._applicationCacheView === this.visibleView) 643 618 this._applicationCacheView.updateStatus(status); 644 },645 646 updateFileSystemPath: function(root, type, origin)647 {648 if (this._fileSystemView && this._fileSystemView === this.visibleView)649 this._fileSystemView.updateFileSystemPath(root, type, origin);650 },651 652 updateFileSystemError: function(type, origin)653 {654 if (this._fileSystemView && this._fileSystemView === this.visibleView)655 this._fileSystemView.updateFileSystemError(type, origin);656 },657 658 setFileSystemDisabled: function()659 {660 if (this._fileSystemView && this._fileSystemView === this.visibleView)661 this._fileSystemView.setFileSystemDisabled();662 619 }, 663 620 … … 1284 1241 WebInspector.ResourceRevisionTreeElement.prototype.__proto__ = WebInspector.BaseStorageTreeElement.prototype; 1285 1242 1286 WebInspector.FileSystemTreeElement = function(storagePanel, origin)1287 {1288 WebInspector.BaseStorageTreeElement.call(this, storagePanel, null, origin, "file-system-storage-tree-item");1289 this._origin = origin;1290 }1291 1292 WebInspector.FileSystemTreeElement.prototype = {1293 get itemURL()1294 {1295 return "file-system://" + encodeURI(this._origin);1296 },1297 1298 onselect: function()1299 {1300 WebInspector.BaseStorageTreeElement.prototype.onselect.call(this);1301 this._storagePanel.showFileSystem(this, this._origin);1302 }1303 }1304 1305 WebInspector.FileSystemTreeElement.prototype.__proto__ = WebInspector.BaseStorageTreeElement.prototype;1306 1307 1243 WebInspector.StorageCategoryView = function() 1308 1244 { -
trunk/Source/WebCore/inspector/front-end/Settings.js
r77489 r78234 46 46 nativeInstrumentationEnabled: false, 47 47 resourceExportEnabled: false, 48 fileSystemEnabled: false,49 48 useDataURLForResourceImageIcons: true, 50 49 showTimingTab: false, -
trunk/Source/WebCore/inspector/front-end/WebKit.qrc
r77810 r78234 45 45 <file>ExtensionRegistryStub.js</file> 46 46 <file>ExtensionServer.js</file> 47 <file>FileSystemView.js</file>48 47 <file>FontView.js</file> 49 48 <file>GoToLineDialog.js</file> -
trunk/Source/WebCore/inspector/front-end/inspector.html
r77810 r78234 73 73 <script type="text/javascript" src="CookieItemsView.js"></script> 74 74 <script type="text/javascript" src="ApplicationCacheItemsView.js"></script> 75 <script type="text/javascript" src="FileSystemView.js"></script>76 75 <script type="text/javascript" src="Script.js"></script> 77 76 <script type="text/javascript" src="Breakpoint.js"></script>
Note: See TracChangeset
for help on using the changeset viewer.