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

Side by Side Diff: Source/web/WebDevToolsAgentImpl.cpp

Issue 1044203004: [Storage] Cache storage inspection on all the frames! (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 8 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-2011 Google Inc. All rights reserved. 2 * Copyright (C) 2010-2011 Google 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 are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * 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 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
67 #include "core/inspector/PageConsoleAgent.h" 67 #include "core/inspector/PageConsoleAgent.h"
68 #include "core/inspector/PageDebuggerAgent.h" 68 #include "core/inspector/PageDebuggerAgent.h"
69 #include "core/inspector/PageRuntimeAgent.h" 69 #include "core/inspector/PageRuntimeAgent.h"
70 #include "core/layout/LayoutView.h" 70 #include "core/layout/LayoutView.h"
71 #include "core/page/FocusController.h" 71 #include "core/page/FocusController.h"
72 #include "core/page/Page.h" 72 #include "core/page/Page.h"
73 #include "modules/accessibility/InspectorAccessibilityAgent.h" 73 #include "modules/accessibility/InspectorAccessibilityAgent.h"
74 #include "modules/device_orientation/DeviceOrientationInspectorAgent.h" 74 #include "modules/device_orientation/DeviceOrientationInspectorAgent.h"
75 #include "modules/filesystem/InspectorFileSystemAgent.h" 75 #include "modules/filesystem/InspectorFileSystemAgent.h"
76 #include "modules/indexeddb/InspectorIndexedDBAgent.h" 76 #include "modules/indexeddb/InspectorIndexedDBAgent.h"
77 #include "modules/serviceworkers/InspectorServiceWorkerCacheAgent.h"
77 #include "modules/storage/InspectorDOMStorageAgent.h" 78 #include "modules/storage/InspectorDOMStorageAgent.h"
78 #include "modules/webdatabase/InspectorDatabaseAgent.h" 79 #include "modules/webdatabase/InspectorDatabaseAgent.h"
79 #include "platform/JSONValues.h" 80 #include "platform/JSONValues.h"
80 #include "platform/RuntimeEnabledFeatures.h" 81 #include "platform/RuntimeEnabledFeatures.h"
81 #include "platform/TraceEvent.h" 82 #include "platform/TraceEvent.h"
82 #include "platform/graphics/GraphicsContext.h" 83 #include "platform/graphics/GraphicsContext.h"
83 #include "platform/graphics/paint/DisplayItemList.h" 84 #include "platform/graphics/paint/DisplayItemList.h"
84 #include "public/platform/Platform.h" 85 #include "public/platform/Platform.h"
85 #include "public/platform/WebRect.h" 86 #include "public/platform/WebRect.h"
86 #include "public/platform/WebString.h" 87 #include "public/platform/WebString.h"
(...skipping 209 matching lines...) Expand 10 before | Expand all | Expand 10 after
296 WebDevToolsAgentImpl* agent = new WebDevToolsAgentImpl(frame, client, view-> inspectorOverlay(), adoptPtr(new InspectorInputClient(view))); 297 WebDevToolsAgentImpl* agent = new WebDevToolsAgentImpl(frame, client, view-> inspectorOverlay(), adoptPtr(new InspectorInputClient(view)));
297 agent->registerAgent(InspectorRenderingAgent::create(view)); 298 agent->registerAgent(InspectorRenderingAgent::create(view));
298 agent->registerAgent(InspectorEmulationAgent::create(view)); 299 agent->registerAgent(InspectorEmulationAgent::create(view));
299 // TODO(dgozman): migrate each of the following agents to frame once module is ready. 300 // TODO(dgozman): migrate each of the following agents to frame once module is ready.
300 agent->registerAgent(InspectorDatabaseAgent::create(view->page())); 301 agent->registerAgent(InspectorDatabaseAgent::create(view->page()));
301 agent->registerAgent(DeviceOrientationInspectorAgent::create(view->page())); 302 agent->registerAgent(DeviceOrientationInspectorAgent::create(view->page()));
302 agent->registerAgent(InspectorFileSystemAgent::create(view->page())); 303 agent->registerAgent(InspectorFileSystemAgent::create(view->page()));
303 agent->registerAgent(InspectorIndexedDBAgent::create(view->page())); 304 agent->registerAgent(InspectorIndexedDBAgent::create(view->page()));
304 agent->registerAgent(InspectorAccessibilityAgent::create(view->page())); 305 agent->registerAgent(InspectorAccessibilityAgent::create(view->page()));
305 agent->registerAgent(InspectorDOMStorageAgent::create(view->page())); 306 agent->registerAgent(InspectorDOMStorageAgent::create(view->page()));
307 agent->registerAgent(InspectorServiceWorkerCacheAgent::create(view->page())) ;
306 return adoptPtrWillBeNoop(agent); 308 return adoptPtrWillBeNoop(agent);
307 } 309 }
308 310
309 WebDevToolsAgentImpl::WebDevToolsAgentImpl( 311 WebDevToolsAgentImpl::WebDevToolsAgentImpl(
310 WebLocalFrameImpl* webLocalFrameImpl, 312 WebLocalFrameImpl* webLocalFrameImpl,
311 WebDevToolsAgentClient* client, 313 WebDevToolsAgentClient* client,
312 InspectorOverlay* overlay, 314 InspectorOverlay* overlay,
313 PassOwnPtr<InspectorInputAgent::Client> inputClient) 315 PassOwnPtr<InspectorInputAgent::Client> inputClient)
314 : m_client(client) 316 : m_client(client)
315 , m_webLocalFrameImpl(webLocalFrameImpl) 317 , m_webLocalFrameImpl(webLocalFrameImpl)
(...skipping 437 matching lines...) Expand 10 before | Expand all | Expand 10 after
753 if (!InspectorBackendDispatcher::getCommandName(message, &commandName)) 755 if (!InspectorBackendDispatcher::getCommandName(message, &commandName))
754 return false; 756 return false;
755 return commandName == InspectorBackendDispatcher::commandName(InspectorBacke ndDispatcher::kDebugger_pauseCmd) 757 return commandName == InspectorBackendDispatcher::commandName(InspectorBacke ndDispatcher::kDebugger_pauseCmd)
756 || commandName == InspectorBackendDispatcher::commandName(InspectorBacke ndDispatcher::kDebugger_setBreakpointCmd) 758 || commandName == InspectorBackendDispatcher::commandName(InspectorBacke ndDispatcher::kDebugger_setBreakpointCmd)
757 || commandName == InspectorBackendDispatcher::commandName(InspectorBacke ndDispatcher::kDebugger_setBreakpointByUrlCmd) 759 || commandName == InspectorBackendDispatcher::commandName(InspectorBacke ndDispatcher::kDebugger_setBreakpointByUrlCmd)
758 || commandName == InspectorBackendDispatcher::commandName(InspectorBacke ndDispatcher::kDebugger_removeBreakpointCmd) 760 || commandName == InspectorBackendDispatcher::commandName(InspectorBacke ndDispatcher::kDebugger_removeBreakpointCmd)
759 || commandName == InspectorBackendDispatcher::commandName(InspectorBacke ndDispatcher::kDebugger_setBreakpointsActiveCmd); 761 || commandName == InspectorBackendDispatcher::commandName(InspectorBacke ndDispatcher::kDebugger_setBreakpointsActiveCmd);
760 } 762 }
761 763
762 } // namespace blink 764 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698