| OLD | NEW |
| 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 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 49 , m_inspectorConsoleAgent(0) | 49 , m_inspectorConsoleAgent(0) |
| 50 , m_inspectorDOMAgent(0) | 50 , m_inspectorDOMAgent(0) |
| 51 , m_inspectorResourceAgent(0) | 51 , m_inspectorResourceAgent(0) |
| 52 , m_pageRuntimeAgent(0) | 52 , m_pageRuntimeAgent(0) |
| 53 , m_workerRuntimeAgent(0) | 53 , m_workerRuntimeAgent(0) |
| 54 , m_inspectorTimelineAgent(0) | 54 , m_inspectorTimelineAgent(0) |
| 55 , m_inspectorDOMStorageAgent(0) | 55 , m_inspectorDOMStorageAgent(0) |
| 56 #if ENABLE(SQL_DATABASE) | 56 #if ENABLE(SQL_DATABASE) |
| 57 , m_inspectorDatabaseAgent(0) | 57 , m_inspectorDatabaseAgent(0) |
| 58 #endif | 58 #endif |
| 59 #if ENABLE(FILE_SYSTEM) | |
| 60 , m_inspectorFileSystemAgent(0) | 59 , m_inspectorFileSystemAgent(0) |
| 61 #endif | |
| 62 , m_inspectorApplicationCacheAgent(0) | 60 , m_inspectorApplicationCacheAgent(0) |
| 63 , m_inspectorDebuggerAgent(0) | 61 , m_inspectorDebuggerAgent(0) |
| 64 , m_pageDebuggerAgent(0) | 62 , m_pageDebuggerAgent(0) |
| 65 , m_inspectorDOMDebuggerAgent(0) | 63 , m_inspectorDOMDebuggerAgent(0) |
| 66 , m_inspectorProfilerAgent(0) | 64 , m_inspectorProfilerAgent(0) |
| 67 #if ENABLE(WORKERS) | 65 #if ENABLE(WORKERS) |
| 68 , m_inspectorWorkerAgent(0) | 66 , m_inspectorWorkerAgent(0) |
| 69 #endif | 67 #endif |
| 70 , m_inspectorCanvasAgent(0) | 68 , m_inspectorCanvasAgent(0) |
| 71 { | 69 { |
| (...skipping 10 matching lines...) Expand all Loading... |
| 82 m_inspectorConsoleAgent = 0; | 80 m_inspectorConsoleAgent = 0; |
| 83 m_inspectorDOMAgent = 0; | 81 m_inspectorDOMAgent = 0; |
| 84 m_inspectorResourceAgent = 0; | 82 m_inspectorResourceAgent = 0; |
| 85 m_pageRuntimeAgent = 0; | 83 m_pageRuntimeAgent = 0; |
| 86 m_workerRuntimeAgent = 0; | 84 m_workerRuntimeAgent = 0; |
| 87 m_inspectorTimelineAgent = 0; | 85 m_inspectorTimelineAgent = 0; |
| 88 m_inspectorDOMStorageAgent = 0; | 86 m_inspectorDOMStorageAgent = 0; |
| 89 #if ENABLE(SQL_DATABASE) | 87 #if ENABLE(SQL_DATABASE) |
| 90 m_inspectorDatabaseAgent = 0; | 88 m_inspectorDatabaseAgent = 0; |
| 91 #endif | 89 #endif |
| 92 #if ENABLE(FILE_SYSTEM) | |
| 93 m_inspectorFileSystemAgent = 0; | 90 m_inspectorFileSystemAgent = 0; |
| 94 #endif | |
| 95 m_inspectorApplicationCacheAgent = 0; | 91 m_inspectorApplicationCacheAgent = 0; |
| 96 m_inspectorDebuggerAgent = 0; | 92 m_inspectorDebuggerAgent = 0; |
| 97 m_pageDebuggerAgent = 0; | 93 m_pageDebuggerAgent = 0; |
| 98 m_inspectorDOMDebuggerAgent = 0; | 94 m_inspectorDOMDebuggerAgent = 0; |
| 99 m_inspectorProfilerAgent = 0; | 95 m_inspectorProfilerAgent = 0; |
| 100 #if ENABLE(WORKERS) | 96 #if ENABLE(WORKERS) |
| 101 m_inspectorWorkerAgent = 0; | 97 m_inspectorWorkerAgent = 0; |
| 102 #endif | 98 #endif |
| 103 m_inspectorCanvasAgent = 0; | 99 m_inspectorCanvasAgent = 0; |
| 104 } | 100 } |
| 105 | 101 |
| 106 InstrumentingAgents* instrumentationForPage(Page* page) | 102 InstrumentingAgents* instrumentationForPage(Page* page) |
| 107 { | 103 { |
| 108 ASSERT(isMainThread()); | 104 ASSERT(isMainThread()); |
| 109 if (InspectorController* controller = page->inspectorController()) | 105 if (InspectorController* controller = page->inspectorController()) |
| 110 return controller->m_instrumentingAgents.get(); | 106 return controller->m_instrumentingAgents.get(); |
| 111 return 0; | 107 return 0; |
| 112 } | 108 } |
| 113 | 109 |
| 114 #if ENABLE(WORKERS) | 110 #if ENABLE(WORKERS) |
| 115 InstrumentingAgents* instrumentationForWorkerContext(WorkerContext* workerContex
t) | 111 InstrumentingAgents* instrumentationForWorkerContext(WorkerContext* workerContex
t) |
| 116 { | 112 { |
| 117 if (WorkerInspectorController* controller = workerContext->workerInspectorCo
ntroller()) | 113 if (WorkerInspectorController* controller = workerContext->workerInspectorCo
ntroller()) |
| 118 return controller->m_instrumentingAgents.get(); | 114 return controller->m_instrumentingAgents.get(); |
| 119 return 0; | 115 return 0; |
| 120 } | 116 } |
| 121 #endif | 117 #endif |
| 122 | 118 |
| 123 } // namespace WebCore | 119 } // namespace WebCore |
| 124 | |
| OLD | NEW |