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

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

Issue 1177983007: Cache Storage: restrict access to secure origins (Blink-side) (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: DevTools: Skip enumeration if access denied Created 5 years, 4 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 | Annotate | Revision Log
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 279 matching lines...) Expand 10 before | Expand all | Expand 10 after
290 WebDevToolsAgentImpl* agent = new WebDevToolsAgentImpl(frame, client, view-> inspectorOverlay()); 290 WebDevToolsAgentImpl* agent = new WebDevToolsAgentImpl(frame, client, view-> inspectorOverlay());
291 agent->registerAgent(InspectorRenderingAgent::create(view)); 291 agent->registerAgent(InspectorRenderingAgent::create(view));
292 agent->registerAgent(InspectorEmulationAgent::create(view)); 292 agent->registerAgent(InspectorEmulationAgent::create(view));
293 // TODO(dgozman): migrate each of the following agents to frame once module is ready. 293 // TODO(dgozman): migrate each of the following agents to frame once module is ready.
294 agent->registerAgent(InspectorDatabaseAgent::create(view->page())); 294 agent->registerAgent(InspectorDatabaseAgent::create(view->page()));
295 agent->registerAgent(DeviceOrientationInspectorAgent::create(view->page())); 295 agent->registerAgent(DeviceOrientationInspectorAgent::create(view->page()));
296 agent->registerAgent(InspectorFileSystemAgent::create(view->page())); 296 agent->registerAgent(InspectorFileSystemAgent::create(view->page()));
297 agent->registerAgent(InspectorIndexedDBAgent::create(view->page())); 297 agent->registerAgent(InspectorIndexedDBAgent::create(view->page()));
298 agent->registerAgent(InspectorAccessibilityAgent::create(view->page())); 298 agent->registerAgent(InspectorAccessibilityAgent::create(view->page()));
299 agent->registerAgent(InspectorDOMStorageAgent::create(view->page())); 299 agent->registerAgent(InspectorDOMStorageAgent::create(view->page()));
300 agent->registerAgent(InspectorCacheStorageAgent::create()); 300 agent->registerAgent(InspectorCacheStorageAgent::create(view->page()));
301 agent->layerTreeViewChanged(view->layerTreeView()); 301 agent->layerTreeViewChanged(view->layerTreeView());
302 return adoptPtrWillBeNoop(agent); 302 return adoptPtrWillBeNoop(agent);
303 } 303 }
304 304
305 WebDevToolsAgentImpl::WebDevToolsAgentImpl( 305 WebDevToolsAgentImpl::WebDevToolsAgentImpl(
306 WebLocalFrameImpl* webLocalFrameImpl, 306 WebLocalFrameImpl* webLocalFrameImpl,
307 WebDevToolsAgentClient* client, 307 WebDevToolsAgentClient* client,
308 InspectorOverlay* overlay) 308 InspectorOverlay* overlay)
309 : m_client(client) 309 : m_client(client)
310 , m_webLocalFrameImpl(webLocalFrameImpl) 310 , m_webLocalFrameImpl(webLocalFrameImpl)
(...skipping 443 matching lines...) Expand 10 before | Expand all | Expand 10 after
754 if (!InspectorBackendDispatcher::getCommandName(message, &commandName)) 754 if (!InspectorBackendDispatcher::getCommandName(message, &commandName))
755 return false; 755 return false;
756 return commandName == InspectorBackendDispatcher::commandName(InspectorBacke ndDispatcher::kDebugger_pauseCmd) 756 return commandName == InspectorBackendDispatcher::commandName(InspectorBacke ndDispatcher::kDebugger_pauseCmd)
757 || commandName == InspectorBackendDispatcher::commandName(InspectorBacke ndDispatcher::kDebugger_setBreakpointCmd) 757 || commandName == InspectorBackendDispatcher::commandName(InspectorBacke ndDispatcher::kDebugger_setBreakpointCmd)
758 || commandName == InspectorBackendDispatcher::commandName(InspectorBacke ndDispatcher::kDebugger_setBreakpointByUrlCmd) 758 || commandName == InspectorBackendDispatcher::commandName(InspectorBacke ndDispatcher::kDebugger_setBreakpointByUrlCmd)
759 || commandName == InspectorBackendDispatcher::commandName(InspectorBacke ndDispatcher::kDebugger_removeBreakpointCmd) 759 || commandName == InspectorBackendDispatcher::commandName(InspectorBacke ndDispatcher::kDebugger_removeBreakpointCmd)
760 || commandName == InspectorBackendDispatcher::commandName(InspectorBacke ndDispatcher::kDebugger_setBreakpointsActiveCmd); 760 || commandName == InspectorBackendDispatcher::commandName(InspectorBacke ndDispatcher::kDebugger_setBreakpointsActiveCmd);
761 } 761 }
762 762
763 } // namespace blink 763 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698