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

Side by Side Diff: Source/WebCore/inspector/InspectorInstrumentation.cpp

Issue 13774005: Remove the ENABLE_SQL_DATABASE compile-time flag. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: python Created 7 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 | Annotate | Revision Log
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2011 Google Inc. All rights reserved. 2 * Copyright (C) 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 869 matching lines...) Expand 10 before | Expand all | Expand 10 after
880 880
881 Frame* mainFrame = page->mainFrame(); 881 Frame* mainFrame = page->mainFrame();
882 if (loader->frame() == mainFrame) { 882 if (loader->frame() == mainFrame) {
883 if (InspectorConsoleAgent* consoleAgent = instrumentingAgents->inspector ConsoleAgent()) 883 if (InspectorConsoleAgent* consoleAgent = instrumentingAgents->inspector ConsoleAgent())
884 consoleAgent->reset(); 884 consoleAgent->reset();
885 885
886 if (InspectorResourceAgent* resourceAgent = instrumentingAgents->inspect orResourceAgent()) 886 if (InspectorResourceAgent* resourceAgent = instrumentingAgents->inspect orResourceAgent())
887 resourceAgent->mainFrameNavigated(loader); 887 resourceAgent->mainFrameNavigated(loader);
888 if (InspectorCSSAgent* cssAgent = instrumentingAgents->inspectorCSSAgent ()) 888 if (InspectorCSSAgent* cssAgent = instrumentingAgents->inspectorCSSAgent ())
889 cssAgent->reset(); 889 cssAgent->reset();
890 #if ENABLE(SQL_DATABASE)
891 if (InspectorDatabaseAgent* databaseAgent = instrumentingAgents->inspect orDatabaseAgent()) 890 if (InspectorDatabaseAgent* databaseAgent = instrumentingAgents->inspect orDatabaseAgent())
892 databaseAgent->clearResources(); 891 databaseAgent->clearResources();
893 #endif
894 if (InspectorDOMAgent* domAgent = instrumentingAgents->inspectorDOMAgent ()) 892 if (InspectorDOMAgent* domAgent = instrumentingAgents->inspectorDOMAgent ())
895 domAgent->setDocument(mainFrame->document()); 893 domAgent->setDocument(mainFrame->document());
896 #if USE(ACCELERATED_COMPOSITING) 894 #if USE(ACCELERATED_COMPOSITING)
897 if (InspectorLayerTreeAgent* layerTreeAgent = instrumentingAgents->inspe ctorLayerTreeAgent()) 895 if (InspectorLayerTreeAgent* layerTreeAgent = instrumentingAgents->inspe ctorLayerTreeAgent())
898 layerTreeAgent->reset(); 896 layerTreeAgent->reset();
899 #endif 897 #endif
900 inspectorAgent->didCommitLoad(); 898 inspectorAgent->didCommitLoad();
901 } 899 }
902 if (InspectorCanvasAgent* canvasAgent = instrumentingAgents->inspectorCanvas Agent()) 900 if (InspectorCanvasAgent* canvasAgent = instrumentingAgents->inspectorCanvas Agent())
903 canvasAgent->frameNavigated(loader->frame()); 901 canvasAgent->frameNavigated(loader->frame());
(...skipping 157 matching lines...) Expand 10 before | Expand all | Expand 10 after
1061 return ""; 1059 return "";
1062 } 1060 }
1063 1061
1064 bool InspectorInstrumentation::profilerEnabledImpl(InstrumentingAgents* instrume ntingAgents) 1062 bool InspectorInstrumentation::profilerEnabledImpl(InstrumentingAgents* instrume ntingAgents)
1065 { 1063 {
1066 if (InspectorProfilerAgent* profilerAgent = instrumentingAgents->inspectorPr ofilerAgent()) 1064 if (InspectorProfilerAgent* profilerAgent = instrumentingAgents->inspectorPr ofilerAgent())
1067 return profilerAgent->enabled(); 1065 return profilerAgent->enabled();
1068 return false; 1066 return false;
1069 } 1067 }
1070 1068
1071 #if ENABLE(SQL_DATABASE)
1072 void InspectorInstrumentation::didOpenDatabaseImpl(InstrumentingAgents* instrume ntingAgents, PassRefPtr<Database> database, const String& domain, const String& name, const String& version) 1069 void InspectorInstrumentation::didOpenDatabaseImpl(InstrumentingAgents* instrume ntingAgents, PassRefPtr<Database> database, const String& domain, const String& name, const String& version)
1073 { 1070 {
1074 InspectorAgent* inspectorAgent = instrumentingAgents->inspectorAgent(); 1071 InspectorAgent* inspectorAgent = instrumentingAgents->inspectorAgent();
1075 if (!inspectorAgent) 1072 if (!inspectorAgent)
1076 return; 1073 return;
1077 if (InspectorDatabaseAgent* dbAgent = instrumentingAgents->inspectorDatabase Agent()) 1074 if (InspectorDatabaseAgent* dbAgent = instrumentingAgents->inspectorDatabase Agent())
1078 dbAgent->didOpenDatabase(database, domain, name, version); 1075 dbAgent->didOpenDatabase(database, domain, name, version);
1079 } 1076 }
1080 #endif
1081 1077
1082 void InspectorInstrumentation::didDispatchDOMStorageEventImpl(InstrumentingAgent s* instrumentingAgents, const String& key, const String& oldValue, const String& newValue, StorageType storageType, SecurityOrigin* securityOrigin, Page* page) 1078 void InspectorInstrumentation::didDispatchDOMStorageEventImpl(InstrumentingAgent s* instrumentingAgents, const String& key, const String& oldValue, const String& newValue, StorageType storageType, SecurityOrigin* securityOrigin, Page* page)
1083 { 1079 {
1084 if (InspectorDOMStorageAgent* domStorageAgent = instrumentingAgents->inspect orDOMStorageAgent()) 1080 if (InspectorDOMStorageAgent* domStorageAgent = instrumentingAgents->inspect orDOMStorageAgent())
1085 domStorageAgent->didDispatchDOMStorageEvent(key, oldValue, newValue, sto rageType, securityOrigin, page); 1081 domStorageAgent->didDispatchDOMStorageEvent(key, oldValue, newValue, sto rageType, securityOrigin, page);
1086 } 1082 }
1087 1083
1088 #if ENABLE(WORKERS) 1084 #if ENABLE(WORKERS)
1089 bool InspectorInstrumentation::shouldPauseDedicatedWorkerOnStartImpl(Instrumenti ngAgents* instrumentingAgents) 1085 bool InspectorInstrumentation::shouldPauseDedicatedWorkerOnStartImpl(Instrumenti ngAgents* instrumentingAgents)
1090 { 1086 {
(...skipping 261 matching lines...) Expand 10 before | Expand all | Expand 10 after
1352 const char BeginFrame[] = "BeginFrame"; 1348 const char BeginFrame[] = "BeginFrame";
1353 }; 1349 };
1354 1350
1355 namespace InstrumentationEventArguments { 1351 namespace InstrumentationEventArguments {
1356 const char LayerId[] = "layerId"; 1352 const char LayerId[] = "layerId";
1357 const char PageId[] = "pageId"; 1353 const char PageId[] = "pageId";
1358 }; 1354 };
1359 1355
1360 } // namespace WebCore 1356 } // namespace WebCore
1361 1357
OLDNEW
« no previous file with comments | « Source/WebCore/inspector/InspectorInstrumentation.h ('k') | Source/WebCore/inspector/InstrumentingAgents.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698