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

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: comments and rebase 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 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
63 #include "core/inspector/InspectorTracingAgent.h" 63 #include "core/inspector/InspectorTracingAgent.h"
64 #include "core/inspector/InspectorWorkerAgent.h" 64 #include "core/inspector/InspectorWorkerAgent.h"
65 #include "core/inspector/InstrumentingAgents.h" 65 #include "core/inspector/InstrumentingAgents.h"
66 #include "core/inspector/PageConsoleAgent.h" 66 #include "core/inspector/PageConsoleAgent.h"
67 #include "core/inspector/PageDebuggerAgent.h" 67 #include "core/inspector/PageDebuggerAgent.h"
68 #include "core/inspector/PageRuntimeAgent.h" 68 #include "core/inspector/PageRuntimeAgent.h"
69 #include "core/layout/LayoutView.h" 69 #include "core/layout/LayoutView.h"
70 #include "core/page/FocusController.h" 70 #include "core/page/FocusController.h"
71 #include "core/page/Page.h" 71 #include "core/page/Page.h"
72 #include "modules/accessibility/InspectorAccessibilityAgent.h" 72 #include "modules/accessibility/InspectorAccessibilityAgent.h"
73 #include "modules/cachestorage/InspectorCacheStorageAgent.h"
73 #include "modules/device_orientation/DeviceOrientationInspectorAgent.h" 74 #include "modules/device_orientation/DeviceOrientationInspectorAgent.h"
74 #include "modules/filesystem/InspectorFileSystemAgent.h" 75 #include "modules/filesystem/InspectorFileSystemAgent.h"
75 #include "modules/indexeddb/InspectorIndexedDBAgent.h" 76 #include "modules/indexeddb/InspectorIndexedDBAgent.h"
76 #include "modules/storage/InspectorDOMStorageAgent.h" 77 #include "modules/storage/InspectorDOMStorageAgent.h"
77 #include "modules/webdatabase/InspectorDatabaseAgent.h" 78 #include "modules/webdatabase/InspectorDatabaseAgent.h"
78 #include "platform/JSONValues.h" 79 #include "platform/JSONValues.h"
79 #include "platform/RuntimeEnabledFeatures.h" 80 #include "platform/RuntimeEnabledFeatures.h"
80 #include "platform/TraceEvent.h" 81 #include "platform/TraceEvent.h"
81 #include "platform/graphics/GraphicsContext.h" 82 #include "platform/graphics/GraphicsContext.h"
82 #include "platform/graphics/paint/DisplayItemList.h" 83 #include "platform/graphics/paint/DisplayItemList.h"
(...skipping 178 matching lines...) Expand 10 before | Expand all | Expand 10 after
261 WebDevToolsAgentImpl* agent = new WebDevToolsAgentImpl(frame, client, view-> inspectorOverlay()); 262 WebDevToolsAgentImpl* agent = new WebDevToolsAgentImpl(frame, client, view-> inspectorOverlay());
262 agent->registerAgent(InspectorRenderingAgent::create(view)); 263 agent->registerAgent(InspectorRenderingAgent::create(view));
263 agent->registerAgent(InspectorEmulationAgent::create(view)); 264 agent->registerAgent(InspectorEmulationAgent::create(view));
264 // TODO(dgozman): migrate each of the following agents to frame once module is ready. 265 // TODO(dgozman): migrate each of the following agents to frame once module is ready.
265 agent->registerAgent(InspectorDatabaseAgent::create(view->page())); 266 agent->registerAgent(InspectorDatabaseAgent::create(view->page()));
266 agent->registerAgent(DeviceOrientationInspectorAgent::create(view->page())); 267 agent->registerAgent(DeviceOrientationInspectorAgent::create(view->page()));
267 agent->registerAgent(InspectorFileSystemAgent::create(view->page())); 268 agent->registerAgent(InspectorFileSystemAgent::create(view->page()));
268 agent->registerAgent(InspectorIndexedDBAgent::create(view->page())); 269 agent->registerAgent(InspectorIndexedDBAgent::create(view->page()));
269 agent->registerAgent(InspectorAccessibilityAgent::create(view->page())); 270 agent->registerAgent(InspectorAccessibilityAgent::create(view->page()));
270 agent->registerAgent(InspectorDOMStorageAgent::create(view->page())); 271 agent->registerAgent(InspectorDOMStorageAgent::create(view->page()));
272 agent->registerAgent(InspectorCacheStorageAgent::create());
271 return adoptPtrWillBeNoop(agent); 273 return adoptPtrWillBeNoop(agent);
272 } 274 }
273 275
274 WebDevToolsAgentImpl::WebDevToolsAgentImpl( 276 WebDevToolsAgentImpl::WebDevToolsAgentImpl(
275 WebLocalFrameImpl* webLocalFrameImpl, 277 WebLocalFrameImpl* webLocalFrameImpl,
276 WebDevToolsAgentClient* client, 278 WebDevToolsAgentClient* client,
277 InspectorOverlay* overlay) 279 InspectorOverlay* overlay)
278 : m_client(client) 280 : m_client(client)
279 , m_webLocalFrameImpl(webLocalFrameImpl) 281 , m_webLocalFrameImpl(webLocalFrameImpl)
280 , m_attached(false) 282 , m_attached(false)
(...skipping 431 matching lines...) Expand 10 before | Expand all | Expand 10 after
712 if (!InspectorBackendDispatcher::getCommandName(message, &commandName)) 714 if (!InspectorBackendDispatcher::getCommandName(message, &commandName))
713 return false; 715 return false;
714 return commandName == InspectorBackendDispatcher::commandName(InspectorBacke ndDispatcher::kDebugger_pauseCmd) 716 return commandName == InspectorBackendDispatcher::commandName(InspectorBacke ndDispatcher::kDebugger_pauseCmd)
715 || commandName == InspectorBackendDispatcher::commandName(InspectorBacke ndDispatcher::kDebugger_setBreakpointCmd) 717 || commandName == InspectorBackendDispatcher::commandName(InspectorBacke ndDispatcher::kDebugger_setBreakpointCmd)
716 || commandName == InspectorBackendDispatcher::commandName(InspectorBacke ndDispatcher::kDebugger_setBreakpointByUrlCmd) 718 || commandName == InspectorBackendDispatcher::commandName(InspectorBacke ndDispatcher::kDebugger_setBreakpointByUrlCmd)
717 || commandName == InspectorBackendDispatcher::commandName(InspectorBacke ndDispatcher::kDebugger_removeBreakpointCmd) 719 || commandName == InspectorBackendDispatcher::commandName(InspectorBacke ndDispatcher::kDebugger_removeBreakpointCmd)
718 || commandName == InspectorBackendDispatcher::commandName(InspectorBacke ndDispatcher::kDebugger_setBreakpointsActiveCmd); 720 || commandName == InspectorBackendDispatcher::commandName(InspectorBacke ndDispatcher::kDebugger_setBreakpointsActiveCmd);
719 } 721 }
720 722
721 } // namespace blink 723 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698