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

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

Issue 13646003: DevTools: Remove ENABLE(INSPECTOR) and ENABLE(JAVASCRIPT_DEBUGGER) from the code. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: comments addressed 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) 2010 Google Inc. All rights reserved. 2 * Copyright (C) 2010 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 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
89 class StyleResolver; 89 class StyleResolver;
90 class StyleRule; 90 class StyleRule;
91 class ThreadableLoaderClient; 91 class ThreadableLoaderClient;
92 class WorkerContext; 92 class WorkerContext;
93 class WorkerContextProxy; 93 class WorkerContextProxy;
94 class XMLHttpRequest; 94 class XMLHttpRequest;
95 95
96 #define FAST_RETURN_IF_NO_FRONTENDS(value) if (!hasFrontends()) return value; 96 #define FAST_RETURN_IF_NO_FRONTENDS(value) if (!hasFrontends()) return value;
97 97
98 class InspectorInstrumentationCookie { 98 class InspectorInstrumentationCookie {
99 #if ENABLE(INSPECTOR)
100 public: 99 public:
101 InspectorInstrumentationCookie(); 100 InspectorInstrumentationCookie();
102 InspectorInstrumentationCookie(InstrumentingAgents*, int); 101 InspectorInstrumentationCookie(InstrumentingAgents*, int);
103 InspectorInstrumentationCookie(const InspectorInstrumentationCookie&); 102 InspectorInstrumentationCookie(const InspectorInstrumentationCookie&);
104 InspectorInstrumentationCookie& operator=(const InspectorInstrumentationCook ie&); 103 InspectorInstrumentationCookie& operator=(const InspectorInstrumentationCook ie&);
105 ~InspectorInstrumentationCookie(); 104 ~InspectorInstrumentationCookie();
106 105
107 private: 106 private:
108 friend class InspectorInstrumentation; 107 friend class InspectorInstrumentation;
109 InstrumentingAgents* instrumentingAgents() const { return m_instrumentingAge nts.get(); } 108 InstrumentingAgents* instrumentingAgents() const { return m_instrumentingAge nts.get(); }
110 bool isValid() const { return !!m_instrumentingAgents; } 109 bool isValid() const { return !!m_instrumentingAgents; }
111 bool hasMatchingTimelineAgentId(int id) const { return m_timelineAgentId == id; } 110 bool hasMatchingTimelineAgentId(int id) const { return m_timelineAgentId == id; }
112 111
113 RefPtr<InstrumentingAgents> m_instrumentingAgents; 112 RefPtr<InstrumentingAgents> m_instrumentingAgents;
114 int m_timelineAgentId; 113 int m_timelineAgentId;
115 #endif
116 }; 114 };
117 115
118 class InspectorInstrumentation { 116 class InspectorInstrumentation {
119 public: 117 public:
120 static void didClearWindowObjectInWorld(Frame*, DOMWrapperWorld*); 118 static void didClearWindowObjectInWorld(Frame*, DOMWrapperWorld*);
121 static bool isDebuggerPaused(Frame*); 119 static bool isDebuggerPaused(Frame*);
122 120
123 static void willInsertDOMNode(Document*, Node* parent); 121 static void willInsertDOMNode(Document*, Node* parent);
124 static void didInsertDOMNode(Document*, Node*); 122 static void didInsertDOMNode(Document*, Node*);
125 static void willRemoveDOMNode(Document*, Node*); 123 static void willRemoveDOMNode(Document*, Node*);
(...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after
241 static void consoleCount(Page*, ScriptState*, PassRefPtr<ScriptArguments>); 239 static void consoleCount(Page*, ScriptState*, PassRefPtr<ScriptArguments>);
242 static void startConsoleTiming(Frame*, const String& title); 240 static void startConsoleTiming(Frame*, const String& title);
243 static void stopConsoleTiming(Frame*, const String& title, PassRefPtr<Script CallStack>); 241 static void stopConsoleTiming(Frame*, const String& title, PassRefPtr<Script CallStack>);
244 static void consoleTimeStamp(Frame*, PassRefPtr<ScriptArguments>); 242 static void consoleTimeStamp(Frame*, PassRefPtr<ScriptArguments>);
245 243
246 static void didRequestAnimationFrame(Document*, int callbackId); 244 static void didRequestAnimationFrame(Document*, int callbackId);
247 static void didCancelAnimationFrame(Document*, int callbackId); 245 static void didCancelAnimationFrame(Document*, int callbackId);
248 static InspectorInstrumentationCookie willFireAnimationFrame(Document*, int callbackId); 246 static InspectorInstrumentationCookie willFireAnimationFrame(Document*, int callbackId);
249 static void didFireAnimationFrame(const InspectorInstrumentationCookie&); 247 static void didFireAnimationFrame(const InspectorInstrumentationCookie&);
250 248
251 #if ENABLE(JAVASCRIPT_DEBUGGER)
252 static void addStartProfilingMessageToConsole(Page*, const String& title, un signed lineNumber, const String& sourceURL); 249 static void addStartProfilingMessageToConsole(Page*, const String& title, un signed lineNumber, const String& sourceURL);
253 static void addProfile(Page*, RefPtr<ScriptProfile>, PassRefPtr<ScriptCallSt ack>); 250 static void addProfile(Page*, RefPtr<ScriptProfile>, PassRefPtr<ScriptCallSt ack>);
254 static String getCurrentUserInitiatedProfileName(Page*, bool incrementProfil eNumber); 251 static String getCurrentUserInitiatedProfileName(Page*, bool incrementProfil eNumber);
255 static bool profilerEnabled(Page*); 252 static bool profilerEnabled(Page*);
256 #endif
257 253
258 #if ENABLE(SQL_DATABASE) 254 #if ENABLE(SQL_DATABASE)
259 static void didOpenDatabase(ScriptExecutionContext*, PassRefPtr<Database>, c onst String& domain, const String& name, const String& version); 255 static void didOpenDatabase(ScriptExecutionContext*, PassRefPtr<Database>, c onst String& domain, const String& name, const String& version);
260 #endif 256 #endif
261 257
262 static void didDispatchDOMStorageEvent(const String& key, const String& oldV alue, const String& newValue, StorageType, SecurityOrigin*, Page*); 258 static void didDispatchDOMStorageEvent(const String& key, const String& oldV alue, const String& newValue, StorageType, SecurityOrigin*, Page*);
263 259
264 #if ENABLE(WORKERS) 260 #if ENABLE(WORKERS)
265 static bool shouldPauseDedicatedWorkerOnStart(ScriptExecutionContext*); 261 static bool shouldPauseDedicatedWorkerOnStart(ScriptExecutionContext*);
266 static void didStartWorkerContext(ScriptExecutionContext*, WorkerContextProx y*, const KURL&); 262 static void didStartWorkerContext(ScriptExecutionContext*, WorkerContextProx y*, const KURL&);
(...skipping 12 matching lines...) Expand all
279 #endif 275 #endif
280 276
281 static ScriptObject wrapCanvas2DRenderingContextForInstrumentation(Document* , const ScriptObject&); 277 static ScriptObject wrapCanvas2DRenderingContextForInstrumentation(Document* , const ScriptObject&);
282 #if ENABLE(WEBGL) 278 #if ENABLE(WEBGL)
283 static ScriptObject wrapWebGLRenderingContextForInstrumentation(Document*, c onst ScriptObject&); 279 static ScriptObject wrapWebGLRenderingContextForInstrumentation(Document*, c onst ScriptObject&);
284 #endif 280 #endif
285 281
286 static void networkStateChanged(Page*); 282 static void networkStateChanged(Page*);
287 static void updateApplicationCacheStatus(Frame*); 283 static void updateApplicationCacheStatus(Frame*);
288 284
289 #if ENABLE(INSPECTOR)
290 static void frontendCreated() { s_frontendCounter += 1; } 285 static void frontendCreated() { s_frontendCounter += 1; }
291 static void frontendDeleted() { s_frontendCounter -= 1; } 286 static void frontendDeleted() { s_frontendCounter -= 1; }
292 static bool hasFrontends() { return s_frontendCounter; } 287 static bool hasFrontends() { return s_frontendCounter; }
293 static bool canvasAgentEnabled(ScriptExecutionContext*); 288 static bool canvasAgentEnabled(ScriptExecutionContext*);
294 static bool consoleAgentEnabled(ScriptExecutionContext*); 289 static bool consoleAgentEnabled(ScriptExecutionContext*);
295 static bool timelineAgentEnabled(ScriptExecutionContext*); 290 static bool timelineAgentEnabled(ScriptExecutionContext*);
296 static bool collectingHTMLParseErrors(Page*); 291 static bool collectingHTMLParseErrors(Page*);
297 #else
298 static bool hasFrontends() { return false; }
299 static bool canvasAgentEnabled(ScriptExecutionContext*) { return false; }
300 static bool consoleAgentEnabled(ScriptExecutionContext*) { return false; }
301 static bool runtimeAgentEnabled(Frame*) { return false; }
302 static bool timelineAgentEnabled(ScriptExecutionContext*) { return false; }
303 static bool collectingHTMLParseErrors(Page*) { return false; }
304 #endif
305 292
306 #if ENABLE(GEOLOCATION) 293 #if ENABLE(GEOLOCATION)
307 static GeolocationPosition* overrideGeolocationPosition(Page*, GeolocationPo sition*); 294 static GeolocationPosition* overrideGeolocationPosition(Page*, GeolocationPo sition*);
308 #endif 295 #endif
309 296
310 static void registerInstrumentingAgents(InstrumentingAgents*); 297 static void registerInstrumentingAgents(InstrumentingAgents*);
311 static void unregisterInstrumentingAgents(InstrumentingAgents*); 298 static void unregisterInstrumentingAgents(InstrumentingAgents*);
312 299
313 static DeviceOrientationData* overrideDeviceOrientation(Page*, DeviceOrienta tionData*); 300 static DeviceOrientationData* overrideDeviceOrientation(Page*, DeviceOrienta tionData*);
314 301
315 #if USE(ACCELERATED_COMPOSITING) 302 #if USE(ACCELERATED_COMPOSITING)
316 static void layerTreeDidChange(Page*); 303 static void layerTreeDidChange(Page*);
317 static void renderLayerDestroyed(Page*, const RenderLayer*); 304 static void renderLayerDestroyed(Page*, const RenderLayer*);
318 static void pseudoElementDestroyed(Page*, PseudoElement*); 305 static void pseudoElementDestroyed(Page*, PseudoElement*);
319 #endif 306 #endif
320 307
321 private: 308 private:
322 #if ENABLE(INSPECTOR)
323 static void didClearWindowObjectInWorldImpl(InstrumentingAgents*, Frame*, DO MWrapperWorld*); 309 static void didClearWindowObjectInWorldImpl(InstrumentingAgents*, Frame*, DO MWrapperWorld*);
324 static bool isDebuggerPausedImpl(InstrumentingAgents*); 310 static bool isDebuggerPausedImpl(InstrumentingAgents*);
325 311
326 static void willInsertDOMNodeImpl(InstrumentingAgents*, Node* parent); 312 static void willInsertDOMNodeImpl(InstrumentingAgents*, Node* parent);
327 static void didInsertDOMNodeImpl(InstrumentingAgents*, Node*); 313 static void didInsertDOMNodeImpl(InstrumentingAgents*, Node*);
328 static void willRemoveDOMNodeImpl(InstrumentingAgents*, Node*); 314 static void willRemoveDOMNodeImpl(InstrumentingAgents*, Node*);
329 static void didRemoveDOMNodeImpl(InstrumentingAgents*, Node*); 315 static void didRemoveDOMNodeImpl(InstrumentingAgents*, Node*);
330 static void willModifyDOMAttrImpl(InstrumentingAgents*, Element*, const Atom icString& oldValue, const AtomicString& newValue); 316 static void willModifyDOMAttrImpl(InstrumentingAgents*, Element*, const Atom icString& oldValue, const AtomicString& newValue);
331 static void didModifyDOMAttrImpl(InstrumentingAgents*, Element*, const Atomi cString& name, const AtomicString& value); 317 static void didModifyDOMAttrImpl(InstrumentingAgents*, Element*, const Atomi cString& name, const AtomicString& value);
332 static void didRemoveDOMAttrImpl(InstrumentingAgents*, Element*, const Atomi cString& name); 318 static void didRemoveDOMAttrImpl(InstrumentingAgents*, Element*, const Atomi cString& name);
(...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after
441 static void consoleCountImpl(InstrumentingAgents*, ScriptState*, PassRefPtr< ScriptArguments>); 427 static void consoleCountImpl(InstrumentingAgents*, ScriptState*, PassRefPtr< ScriptArguments>);
442 static void startConsoleTimingImpl(InstrumentingAgents*, Frame*, const Strin g& title); 428 static void startConsoleTimingImpl(InstrumentingAgents*, Frame*, const Strin g& title);
443 static void stopConsoleTimingImpl(InstrumentingAgents*, Frame*, const String & title, PassRefPtr<ScriptCallStack>); 429 static void stopConsoleTimingImpl(InstrumentingAgents*, Frame*, const String & title, PassRefPtr<ScriptCallStack>);
444 static void consoleTimeStampImpl(InstrumentingAgents*, Frame*, PassRefPtr<Sc riptArguments>); 430 static void consoleTimeStampImpl(InstrumentingAgents*, Frame*, PassRefPtr<Sc riptArguments>);
445 431
446 static void didRequestAnimationFrameImpl(InstrumentingAgents*, int callbackI d, Frame*); 432 static void didRequestAnimationFrameImpl(InstrumentingAgents*, int callbackI d, Frame*);
447 static void didCancelAnimationFrameImpl(InstrumentingAgents*, int callbackId , Frame*); 433 static void didCancelAnimationFrameImpl(InstrumentingAgents*, int callbackId , Frame*);
448 static InspectorInstrumentationCookie willFireAnimationFrameImpl(Instrumenti ngAgents*, int callbackId, Frame*); 434 static InspectorInstrumentationCookie willFireAnimationFrameImpl(Instrumenti ngAgents*, int callbackId, Frame*);
449 static void didFireAnimationFrameImpl(const InspectorInstrumentationCookie&) ; 435 static void didFireAnimationFrameImpl(const InspectorInstrumentationCookie&) ;
450 436
451 #if ENABLE(JAVASCRIPT_DEBUGGER)
452 static void addStartProfilingMessageToConsoleImpl(InstrumentingAgents*, cons t String& title, unsigned lineNumber, const String& sourceURL); 437 static void addStartProfilingMessageToConsoleImpl(InstrumentingAgents*, cons t String& title, unsigned lineNumber, const String& sourceURL);
453 static void addProfileImpl(InstrumentingAgents*, RefPtr<ScriptProfile>, Pass RefPtr<ScriptCallStack>); 438 static void addProfileImpl(InstrumentingAgents*, RefPtr<ScriptProfile>, Pass RefPtr<ScriptCallStack>);
454 static String getCurrentUserInitiatedProfileNameImpl(InstrumentingAgents*, b ool incrementProfileNumber); 439 static String getCurrentUserInitiatedProfileNameImpl(InstrumentingAgents*, b ool incrementProfileNumber);
455 static bool profilerEnabledImpl(InstrumentingAgents*); 440 static bool profilerEnabledImpl(InstrumentingAgents*);
456 #endif
457 441
458 #if ENABLE(SQL_DATABASE) 442 #if ENABLE(SQL_DATABASE)
459 static void didOpenDatabaseImpl(InstrumentingAgents*, PassRefPtr<Database>, const String& domain, const String& name, const String& version); 443 static void didOpenDatabaseImpl(InstrumentingAgents*, PassRefPtr<Database>, const String& domain, const String& name, const String& version);
460 #endif 444 #endif
461 445
462 static void didDispatchDOMStorageEventImpl(InstrumentingAgents*, const Strin g& key, const String& oldValue, const String& newValue, StorageType, SecurityOri gin*, Page*); 446 static void didDispatchDOMStorageEventImpl(InstrumentingAgents*, const Strin g& key, const String& oldValue, const String& newValue, StorageType, SecurityOri gin*, Page*);
463 447
464 #if ENABLE(WORKERS) 448 #if ENABLE(WORKERS)
465 static bool shouldPauseDedicatedWorkerOnStartImpl(InstrumentingAgents*); 449 static bool shouldPauseDedicatedWorkerOnStartImpl(InstrumentingAgents*);
466 static void didStartWorkerContextImpl(InstrumentingAgents*, WorkerContextPro xy*, const KURL&); 450 static void didStartWorkerContextImpl(InstrumentingAgents*, WorkerContextPro xy*, const KURL&);
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
502 486
503 static DeviceOrientationData* overrideDeviceOrientationImpl(InstrumentingAge nts*, DeviceOrientationData*); 487 static DeviceOrientationData* overrideDeviceOrientationImpl(InstrumentingAge nts*, DeviceOrientationData*);
504 488
505 #if USE(ACCELERATED_COMPOSITING) 489 #if USE(ACCELERATED_COMPOSITING)
506 static void layerTreeDidChangeImpl(InstrumentingAgents*); 490 static void layerTreeDidChangeImpl(InstrumentingAgents*);
507 static void renderLayerDestroyedImpl(InstrumentingAgents*, const RenderLayer *); 491 static void renderLayerDestroyedImpl(InstrumentingAgents*, const RenderLayer *);
508 static void pseudoElementDestroyedImpl(InstrumentingAgents*, PseudoElement*) ; 492 static void pseudoElementDestroyedImpl(InstrumentingAgents*, PseudoElement*) ;
509 #endif 493 #endif
510 494
511 static int s_frontendCounter; 495 static int s_frontendCounter;
512 #endif
513 }; 496 };
514 497
515 namespace InstrumentationEvents { 498 namespace InstrumentationEvents {
516 extern const char PaintLayer[]; 499 extern const char PaintLayer[];
517 extern const char RasterTask[]; 500 extern const char RasterTask[];
518 extern const char Paint[]; 501 extern const char Paint[];
519 extern const char Layer[]; 502 extern const char Layer[];
520 extern const char BeginFrame[]; 503 extern const char BeginFrame[];
521 }; 504 };
522 505
523 namespace InstrumentationEventArguments { 506 namespace InstrumentationEventArguments {
524 extern const char LayerId[]; 507 extern const char LayerId[];
525 extern const char PageId[]; 508 extern const char PageId[];
526 }; 509 };
527 510
528 inline void InspectorInstrumentation::didClearWindowObjectInWorld(Frame* frame, DOMWrapperWorld* world) 511 inline void InspectorInstrumentation::didClearWindowObjectInWorld(Frame* frame, DOMWrapperWorld* world)
529 { 512 {
530 #if ENABLE(INSPECTOR)
531 if (InstrumentingAgents* instrumentingAgents = instrumentingAgentsForFrame(f rame)) 513 if (InstrumentingAgents* instrumentingAgents = instrumentingAgentsForFrame(f rame))
532 didClearWindowObjectInWorldImpl(instrumentingAgents, frame, world); 514 didClearWindowObjectInWorldImpl(instrumentingAgents, frame, world);
533 #else
534 UNUSED_PARAM(frame);
535 UNUSED_PARAM(world);
536 #endif
537 } 515 }
538 516
539 inline bool InspectorInstrumentation::isDebuggerPaused(Frame* frame) 517 inline bool InspectorInstrumentation::isDebuggerPaused(Frame* frame)
540 { 518 {
541 #if ENABLE(INSPECTOR)
542 FAST_RETURN_IF_NO_FRONTENDS(false); 519 FAST_RETURN_IF_NO_FRONTENDS(false);
543 if (InstrumentingAgents* instrumentingAgents = instrumentingAgentsForFrame(f rame)) 520 if (InstrumentingAgents* instrumentingAgents = instrumentingAgentsForFrame(f rame))
544 return isDebuggerPausedImpl(instrumentingAgents); 521 return isDebuggerPausedImpl(instrumentingAgents);
545 #else
546 UNUSED_PARAM(frame);
547 #endif
548 return false; 522 return false;
549 } 523 }
550 524
551 inline void InspectorInstrumentation::willInsertDOMNode(Document* document, Node * parent) 525 inline void InspectorInstrumentation::willInsertDOMNode(Document* document, Node * parent)
552 { 526 {
553 #if ENABLE(INSPECTOR)
554 FAST_RETURN_IF_NO_FRONTENDS(void()); 527 FAST_RETURN_IF_NO_FRONTENDS(void());
555 if (InstrumentingAgents* instrumentingAgents = instrumentingAgentsForDocumen t(document)) 528 if (InstrumentingAgents* instrumentingAgents = instrumentingAgentsForDocumen t(document))
556 willInsertDOMNodeImpl(instrumentingAgents, parent); 529 willInsertDOMNodeImpl(instrumentingAgents, parent);
557 #else
558 UNUSED_PARAM(document);
559 UNUSED_PARAM(parent);
560 #endif
561 } 530 }
562 531
563 inline void InspectorInstrumentation::didInsertDOMNode(Document* document, Node* node) 532 inline void InspectorInstrumentation::didInsertDOMNode(Document* document, Node* node)
564 { 533 {
565 #if ENABLE(INSPECTOR)
566 FAST_RETURN_IF_NO_FRONTENDS(void()); 534 FAST_RETURN_IF_NO_FRONTENDS(void());
567 if (InstrumentingAgents* instrumentingAgents = instrumentingAgentsForDocumen t(document)) 535 if (InstrumentingAgents* instrumentingAgents = instrumentingAgentsForDocumen t(document))
568 didInsertDOMNodeImpl(instrumentingAgents, node); 536 didInsertDOMNodeImpl(instrumentingAgents, node);
569 #else
570 UNUSED_PARAM(document);
571 UNUSED_PARAM(node);
572 #endif
573 } 537 }
574 538
575 inline void InspectorInstrumentation::willRemoveDOMNode(Document* document, Node * node) 539 inline void InspectorInstrumentation::willRemoveDOMNode(Document* document, Node * node)
576 { 540 {
577 #if ENABLE(INSPECTOR)
578 FAST_RETURN_IF_NO_FRONTENDS(void()); 541 FAST_RETURN_IF_NO_FRONTENDS(void());
579 if (InstrumentingAgents* instrumentingAgents = instrumentingAgentsForDocumen t(document)) { 542 if (InstrumentingAgents* instrumentingAgents = instrumentingAgentsForDocumen t(document)) {
580 willRemoveDOMNodeImpl(instrumentingAgents, node); 543 willRemoveDOMNodeImpl(instrumentingAgents, node);
581 didRemoveDOMNodeImpl(instrumentingAgents, node); 544 didRemoveDOMNodeImpl(instrumentingAgents, node);
582 } 545 }
583 #else
584 UNUSED_PARAM(document);
585 UNUSED_PARAM(node);
586 #endif
587 } 546 }
588 547
589 inline void InspectorInstrumentation::willModifyDOMAttr(Document* document, Elem ent* element, const AtomicString& oldValue, const AtomicString& newValue) 548 inline void InspectorInstrumentation::willModifyDOMAttr(Document* document, Elem ent* element, const AtomicString& oldValue, const AtomicString& newValue)
590 { 549 {
591 #if ENABLE(INSPECTOR)
592 FAST_RETURN_IF_NO_FRONTENDS(void()); 550 FAST_RETURN_IF_NO_FRONTENDS(void());
593 if (InstrumentingAgents* instrumentingAgents = instrumentingAgentsForDocumen t(document)) 551 if (InstrumentingAgents* instrumentingAgents = instrumentingAgentsForDocumen t(document))
594 willModifyDOMAttrImpl(instrumentingAgents, element, oldValue, newValue); 552 willModifyDOMAttrImpl(instrumentingAgents, element, oldValue, newValue);
595 #else
596 UNUSED_PARAM(document);
597 UNUSED_PARAM(element);
598 UNUSED_PARAM(oldValue);
599 UNUSED_PARAM(newValue);
600 #endif
601 } 553 }
602 554
603 inline void InspectorInstrumentation::didModifyDOMAttr(Document* document, Eleme nt* element, const AtomicString& name, const AtomicString& value) 555 inline void InspectorInstrumentation::didModifyDOMAttr(Document* document, Eleme nt* element, const AtomicString& name, const AtomicString& value)
604 { 556 {
605 #if ENABLE(INSPECTOR)
606 FAST_RETURN_IF_NO_FRONTENDS(void()); 557 FAST_RETURN_IF_NO_FRONTENDS(void());
607 if (InstrumentingAgents* instrumentingAgents = instrumentingAgentsForDocumen t(document)) 558 if (InstrumentingAgents* instrumentingAgents = instrumentingAgentsForDocumen t(document))
608 didModifyDOMAttrImpl(instrumentingAgents, element, name, value); 559 didModifyDOMAttrImpl(instrumentingAgents, element, name, value);
609 #else
610 UNUSED_PARAM(document);
611 UNUSED_PARAM(element);
612 UNUSED_PARAM(name);
613 UNUSED_PARAM(value);
614 #endif
615 } 560 }
616 561
617 inline void InspectorInstrumentation::didRemoveDOMAttr(Document* document, Eleme nt* element, const AtomicString& name) 562 inline void InspectorInstrumentation::didRemoveDOMAttr(Document* document, Eleme nt* element, const AtomicString& name)
618 { 563 {
619 #if ENABLE(INSPECTOR)
620 FAST_RETURN_IF_NO_FRONTENDS(void()); 564 FAST_RETURN_IF_NO_FRONTENDS(void());
621 if (InstrumentingAgents* instrumentingAgents = instrumentingAgentsForDocumen t(document)) 565 if (InstrumentingAgents* instrumentingAgents = instrumentingAgentsForDocumen t(document))
622 didRemoveDOMAttrImpl(instrumentingAgents, element, name); 566 didRemoveDOMAttrImpl(instrumentingAgents, element, name);
623 #else
624 UNUSED_PARAM(document);
625 UNUSED_PARAM(element);
626 UNUSED_PARAM(name);
627 #endif
628 } 567 }
629 568
630 inline void InspectorInstrumentation::didInvalidateStyleAttr(Document* document, Node* node) 569 inline void InspectorInstrumentation::didInvalidateStyleAttr(Document* document, Node* node)
631 { 570 {
632 #if ENABLE(INSPECTOR)
633 FAST_RETURN_IF_NO_FRONTENDS(void()); 571 FAST_RETURN_IF_NO_FRONTENDS(void());
634 if (InstrumentingAgents* instrumentingAgents = instrumentingAgentsForDocumen t(document)) 572 if (InstrumentingAgents* instrumentingAgents = instrumentingAgentsForDocumen t(document))
635 didInvalidateStyleAttrImpl(instrumentingAgents, node); 573 didInvalidateStyleAttrImpl(instrumentingAgents, node);
636 #else
637 UNUSED_PARAM(document);
638 UNUSED_PARAM(node);
639 #endif
640 } 574 }
641 575
642 inline void InspectorInstrumentation::frameWindowDiscarded(Frame* frame, DOMWind ow* domWindow) 576 inline void InspectorInstrumentation::frameWindowDiscarded(Frame* frame, DOMWind ow* domWindow)
643 { 577 {
644 #if ENABLE(INSPECTOR)
645 if (InstrumentingAgents* instrumentingAgents = instrumentingAgentsForFrame(f rame)) 578 if (InstrumentingAgents* instrumentingAgents = instrumentingAgentsForFrame(f rame))
646 frameWindowDiscardedImpl(instrumentingAgents, domWindow); 579 frameWindowDiscardedImpl(instrumentingAgents, domWindow);
647 #else
648 UNUSED_PARAM(frame);
649 UNUSED_PARAM(domWindow);
650 #endif
651 } 580 }
652 581
653 inline void InspectorInstrumentation::mediaQueryResultChanged(Document* document ) 582 inline void InspectorInstrumentation::mediaQueryResultChanged(Document* document )
654 { 583 {
655 #if ENABLE(INSPECTOR)
656 FAST_RETURN_IF_NO_FRONTENDS(void()); 584 FAST_RETURN_IF_NO_FRONTENDS(void());
657 if (InstrumentingAgents* instrumentingAgents = instrumentingAgentsForDocumen t(document)) 585 if (InstrumentingAgents* instrumentingAgents = instrumentingAgentsForDocumen t(document))
658 mediaQueryResultChangedImpl(instrumentingAgents); 586 mediaQueryResultChangedImpl(instrumentingAgents);
659 #else
660 UNUSED_PARAM(document);
661 #endif
662 } 587 }
663 588
664 inline void InspectorInstrumentation::didPushShadowRoot(Element* host, ShadowRoo t* root) 589 inline void InspectorInstrumentation::didPushShadowRoot(Element* host, ShadowRoo t* root)
665 { 590 {
666 #if ENABLE(INSPECTOR)
667 FAST_RETURN_IF_NO_FRONTENDS(void()); 591 FAST_RETURN_IF_NO_FRONTENDS(void());
668 if (InstrumentingAgents* instrumentingAgents = instrumentingAgentsForDocumen t(host->ownerDocument())) 592 if (InstrumentingAgents* instrumentingAgents = instrumentingAgentsForDocumen t(host->ownerDocument()))
669 didPushShadowRootImpl(instrumentingAgents, host, root); 593 didPushShadowRootImpl(instrumentingAgents, host, root);
670 #else
671 UNUSED_PARAM(host);
672 UNUSED_PARAM(root);
673 #endif
674 } 594 }
675 595
676 inline void InspectorInstrumentation::willPopShadowRoot(Element* host, ShadowRoo t* root) 596 inline void InspectorInstrumentation::willPopShadowRoot(Element* host, ShadowRoo t* root)
677 { 597 {
678 #if ENABLE(INSPECTOR)
679 FAST_RETURN_IF_NO_FRONTENDS(void()); 598 FAST_RETURN_IF_NO_FRONTENDS(void());
680 if (InstrumentingAgents* instrumentingAgents = instrumentingAgentsForDocumen t(host->ownerDocument())) 599 if (InstrumentingAgents* instrumentingAgents = instrumentingAgentsForDocumen t(host->ownerDocument()))
681 willPopShadowRootImpl(instrumentingAgents, host, root); 600 willPopShadowRootImpl(instrumentingAgents, host, root);
682 #else
683 UNUSED_PARAM(host);
684 UNUSED_PARAM(root);
685 #endif
686 } 601 }
687 602
688 inline void InspectorInstrumentation::didCreateNamedFlow(Document* document, Web KitNamedFlow* namedFlow) 603 inline void InspectorInstrumentation::didCreateNamedFlow(Document* document, Web KitNamedFlow* namedFlow)
689 { 604 {
690 #if ENABLE(INSPECTOR)
691 FAST_RETURN_IF_NO_FRONTENDS(void()); 605 FAST_RETURN_IF_NO_FRONTENDS(void());
692 if (InstrumentingAgents* instrumentingAgents = instrumentingAgentsForDocumen t(document)) 606 if (InstrumentingAgents* instrumentingAgents = instrumentingAgentsForDocumen t(document))
693 didCreateNamedFlowImpl(instrumentingAgents, document, namedFlow); 607 didCreateNamedFlowImpl(instrumentingAgents, document, namedFlow);
694 #else
695 UNUSED_PARAM(document);
696 UNUSED_PARAM(namedFlow);
697 #endif
698 } 608 }
699 609
700 inline void InspectorInstrumentation::willRemoveNamedFlow(Document* document, We bKitNamedFlow* namedFlow) 610 inline void InspectorInstrumentation::willRemoveNamedFlow(Document* document, We bKitNamedFlow* namedFlow)
701 { 611 {
702 #if ENABLE(INSPECTOR)
703 FAST_RETURN_IF_NO_FRONTENDS(void()); 612 FAST_RETURN_IF_NO_FRONTENDS(void());
704 if (InstrumentingAgents* instrumentingAgents = instrumentingAgentsForDocumen t(document)) 613 if (InstrumentingAgents* instrumentingAgents = instrumentingAgentsForDocumen t(document))
705 willRemoveNamedFlowImpl(instrumentingAgents, document, namedFlow); 614 willRemoveNamedFlowImpl(instrumentingAgents, document, namedFlow);
706 #else
707 UNUSED_PARAM(document);
708 UNUSED_PARAM(namedFlow);
709 #endif
710 } 615 }
711 616
712 inline void InspectorInstrumentation::didUpdateRegionLayout(Document* document, WebKitNamedFlow* namedFlow) 617 inline void InspectorInstrumentation::didUpdateRegionLayout(Document* document, WebKitNamedFlow* namedFlow)
713 { 618 {
714 #if ENABLE(INSPECTOR)
715 FAST_RETURN_IF_NO_FRONTENDS(void()); 619 FAST_RETURN_IF_NO_FRONTENDS(void());
716 if (InstrumentingAgents* instrumentingAgents = instrumentingAgentsForDocumen t(document)) 620 if (InstrumentingAgents* instrumentingAgents = instrumentingAgentsForDocumen t(document))
717 didUpdateRegionLayoutImpl(instrumentingAgents, document, namedFlow); 621 didUpdateRegionLayoutImpl(instrumentingAgents, document, namedFlow);
718 #else
719 UNUSED_PARAM(document);
720 UNUSED_PARAM(namedFlow);
721 #endif
722 } 622 }
723 623
724 inline void InspectorInstrumentation::mouseDidMoveOverElement(Page* page, const HitTestResult& result, unsigned modifierFlags) 624 inline void InspectorInstrumentation::mouseDidMoveOverElement(Page* page, const HitTestResult& result, unsigned modifierFlags)
725 { 625 {
726 #if ENABLE(INSPECTOR)
727 FAST_RETURN_IF_NO_FRONTENDS(void()); 626 FAST_RETURN_IF_NO_FRONTENDS(void());
728 if (InstrumentingAgents* instrumentingAgents = instrumentingAgentsForPage(pa ge)) 627 if (InstrumentingAgents* instrumentingAgents = instrumentingAgentsForPage(pa ge))
729 mouseDidMoveOverElementImpl(instrumentingAgents, result, modifierFlags); 628 mouseDidMoveOverElementImpl(instrumentingAgents, result, modifierFlags);
730 #else
731 UNUSED_PARAM(page);
732 UNUSED_PARAM(result);
733 UNUSED_PARAM(modifierFlags);
734 #endif
735 } 629 }
736 630
737 inline bool InspectorInstrumentation::handleTouchEvent(Page* page, Node* node) 631 inline bool InspectorInstrumentation::handleTouchEvent(Page* page, Node* node)
738 { 632 {
739 #if ENABLE(INSPECTOR)
740 FAST_RETURN_IF_NO_FRONTENDS(false); 633 FAST_RETURN_IF_NO_FRONTENDS(false);
741 if (InstrumentingAgents* instrumentingAgents = instrumentingAgentsForPage(pa ge)) 634 if (InstrumentingAgents* instrumentingAgents = instrumentingAgentsForPage(pa ge))
742 return handleTouchEventImpl(instrumentingAgents, node); 635 return handleTouchEventImpl(instrumentingAgents, node);
743 #else
744 UNUSED_PARAM(page);
745 UNUSED_PARAM(node);
746 #endif
747 return false; 636 return false;
748 } 637 }
749 638
750 inline bool InspectorInstrumentation::handleMousePress(Page* page) 639 inline bool InspectorInstrumentation::handleMousePress(Page* page)
751 { 640 {
752 #if ENABLE(INSPECTOR)
753 FAST_RETURN_IF_NO_FRONTENDS(false); 641 FAST_RETURN_IF_NO_FRONTENDS(false);
754 if (InstrumentingAgents* instrumentingAgents = instrumentingAgentsForPage(pa ge)) 642 if (InstrumentingAgents* instrumentingAgents = instrumentingAgentsForPage(pa ge))
755 return handleMousePressImpl(instrumentingAgents); 643 return handleMousePressImpl(instrumentingAgents);
756 #else
757 UNUSED_PARAM(page);
758 #endif
759 return false; 644 return false;
760 } 645 }
761 646
762 inline bool InspectorInstrumentation::forcePseudoState(Element* element, CSSSele ctor::PseudoType pseudoState) 647 inline bool InspectorInstrumentation::forcePseudoState(Element* element, CSSSele ctor::PseudoType pseudoState)
763 { 648 {
764 #if ENABLE(INSPECTOR)
765 FAST_RETURN_IF_NO_FRONTENDS(false); 649 FAST_RETURN_IF_NO_FRONTENDS(false);
766 if (InstrumentingAgents* instrumentingAgents = instrumentingAgentsForDocumen t(element->document())) 650 if (InstrumentingAgents* instrumentingAgents = instrumentingAgentsForDocumen t(element->document()))
767 return forcePseudoStateImpl(instrumentingAgents, element, pseudoState); 651 return forcePseudoStateImpl(instrumentingAgents, element, pseudoState);
768 #else
769 UNUSED_PARAM(element);
770 UNUSED_PARAM(pseudoState);
771 #endif
772 return false; 652 return false;
773 } 653 }
774 654
775 inline void InspectorInstrumentation::characterDataModified(Document* document, CharacterData* characterData) 655 inline void InspectorInstrumentation::characterDataModified(Document* document, CharacterData* characterData)
776 { 656 {
777 #if ENABLE(INSPECTOR)
778 FAST_RETURN_IF_NO_FRONTENDS(void()); 657 FAST_RETURN_IF_NO_FRONTENDS(void());
779 if (InstrumentingAgents* instrumentingAgents = instrumentingAgentsForDocumen t(document)) 658 if (InstrumentingAgents* instrumentingAgents = instrumentingAgentsForDocumen t(document))
780 characterDataModifiedImpl(instrumentingAgents, characterData); 659 characterDataModifiedImpl(instrumentingAgents, characterData);
781 #else
782 UNUSED_PARAM(document);
783 UNUSED_PARAM(characterData);
784 #endif
785 } 660 }
786 661
787 inline void InspectorInstrumentation::willSendXMLHttpRequest(ScriptExecutionCont ext* context, const String& url) 662 inline void InspectorInstrumentation::willSendXMLHttpRequest(ScriptExecutionCont ext* context, const String& url)
788 { 663 {
789 #if ENABLE(INSPECTOR)
790 FAST_RETURN_IF_NO_FRONTENDS(void()); 664 FAST_RETURN_IF_NO_FRONTENDS(void());
791 if (InstrumentingAgents* instrumentingAgents = instrumentingAgentsForContext (context)) 665 if (InstrumentingAgents* instrumentingAgents = instrumentingAgentsForContext (context))
792 willSendXMLHttpRequestImpl(instrumentingAgents, url); 666 willSendXMLHttpRequestImpl(instrumentingAgents, url);
793 #else
794 UNUSED_PARAM(context);
795 UNUSED_PARAM(url);
796 #endif
797 } 667 }
798 668
799 inline void InspectorInstrumentation::didScheduleResourceRequest(Document* docum ent, const String& url) 669 inline void InspectorInstrumentation::didScheduleResourceRequest(Document* docum ent, const String& url)
800 { 670 {
801 #if ENABLE(INSPECTOR)
802 FAST_RETURN_IF_NO_FRONTENDS(void()); 671 FAST_RETURN_IF_NO_FRONTENDS(void());
803 if (InstrumentingAgents* instrumentingAgents = instrumentingAgentsForDocumen t(document)) 672 if (InstrumentingAgents* instrumentingAgents = instrumentingAgentsForDocumen t(document))
804 didScheduleResourceRequestImpl(instrumentingAgents, url, document->frame ()); 673 didScheduleResourceRequestImpl(instrumentingAgents, url, document->frame ());
805 #else
806 UNUSED_PARAM(document);
807 UNUSED_PARAM(url);
808 #endif
809 } 674 }
810 675
811 inline void InspectorInstrumentation::didInstallTimer(ScriptExecutionContext* co ntext, int timerId, int timeout, bool singleShot) 676 inline void InspectorInstrumentation::didInstallTimer(ScriptExecutionContext* co ntext, int timerId, int timeout, bool singleShot)
812 { 677 {
813 #if ENABLE(INSPECTOR)
814 FAST_RETURN_IF_NO_FRONTENDS(void()); 678 FAST_RETURN_IF_NO_FRONTENDS(void());
815 if (InstrumentingAgents* instrumentingAgents = instrumentingAgentsForContext (context)) 679 if (InstrumentingAgents* instrumentingAgents = instrumentingAgentsForContext (context))
816 didInstallTimerImpl(instrumentingAgents, timerId, timeout, singleShot, c ontext); 680 didInstallTimerImpl(instrumentingAgents, timerId, timeout, singleShot, c ontext);
817 #else
818 UNUSED_PARAM(context);
819 UNUSED_PARAM(timerId);
820 UNUSED_PARAM(timeout);
821 UNUSED_PARAM(singleShot);
822 #endif
823 } 681 }
824 682
825 inline void InspectorInstrumentation::didRemoveTimer(ScriptExecutionContext* con text, int timerId) 683 inline void InspectorInstrumentation::didRemoveTimer(ScriptExecutionContext* con text, int timerId)
826 { 684 {
827 #if ENABLE(INSPECTOR)
828 FAST_RETURN_IF_NO_FRONTENDS(void()); 685 FAST_RETURN_IF_NO_FRONTENDS(void());
829 if (InstrumentingAgents* instrumentingAgents = instrumentingAgentsForContext (context)) 686 if (InstrumentingAgents* instrumentingAgents = instrumentingAgentsForContext (context))
830 didRemoveTimerImpl(instrumentingAgents, timerId, context); 687 didRemoveTimerImpl(instrumentingAgents, timerId, context);
831 #else
832 UNUSED_PARAM(context);
833 UNUSED_PARAM(timerId);
834 #endif
835 } 688 }
836 689
837 inline InspectorInstrumentationCookie InspectorInstrumentation::willCallFunction (ScriptExecutionContext* context, const String& scriptName, int scriptLine) 690 inline InspectorInstrumentationCookie InspectorInstrumentation::willCallFunction (ScriptExecutionContext* context, const String& scriptName, int scriptLine)
838 { 691 {
839 #if ENABLE(INSPECTOR)
840 FAST_RETURN_IF_NO_FRONTENDS(InspectorInstrumentationCookie()); 692 FAST_RETURN_IF_NO_FRONTENDS(InspectorInstrumentationCookie());
841 if (InstrumentingAgents* instrumentingAgents = instrumentingAgentsForContext (context)) 693 if (InstrumentingAgents* instrumentingAgents = instrumentingAgentsForContext (context))
842 return willCallFunctionImpl(instrumentingAgents, scriptName, scriptLine, context); 694 return willCallFunctionImpl(instrumentingAgents, scriptName, scriptLine, context);
843 #else
844 UNUSED_PARAM(context);
845 UNUSED_PARAM(scriptName);
846 UNUSED_PARAM(scriptLine);
847 #endif
848 return InspectorInstrumentationCookie(); 695 return InspectorInstrumentationCookie();
849 } 696 }
850 697
851 698
852 inline void InspectorInstrumentation::didCallFunction(const InspectorInstrumenta tionCookie& cookie) 699 inline void InspectorInstrumentation::didCallFunction(const InspectorInstrumenta tionCookie& cookie)
853 { 700 {
854 #if ENABLE(INSPECTOR)
855 FAST_RETURN_IF_NO_FRONTENDS(void()); 701 FAST_RETURN_IF_NO_FRONTENDS(void());
856 if (cookie.isValid()) 702 if (cookie.isValid())
857 didCallFunctionImpl(cookie); 703 didCallFunctionImpl(cookie);
858 #else
859 UNUSED_PARAM(cookie);
860 #endif
861 } 704 }
862 705
863 inline InspectorInstrumentationCookie InspectorInstrumentation::willDispatchXHRR eadyStateChangeEvent(ScriptExecutionContext* context, XMLHttpRequest* request) 706 inline InspectorInstrumentationCookie InspectorInstrumentation::willDispatchXHRR eadyStateChangeEvent(ScriptExecutionContext* context, XMLHttpRequest* request)
864 { 707 {
865 #if ENABLE(INSPECTOR)
866 FAST_RETURN_IF_NO_FRONTENDS(InspectorInstrumentationCookie()); 708 FAST_RETURN_IF_NO_FRONTENDS(InspectorInstrumentationCookie());
867 if (InstrumentingAgents* instrumentingAgents = instrumentingAgentsForContext (context)) 709 if (InstrumentingAgents* instrumentingAgents = instrumentingAgentsForContext (context))
868 return willDispatchXHRReadyStateChangeEventImpl(instrumentingAgents, req uest, context); 710 return willDispatchXHRReadyStateChangeEventImpl(instrumentingAgents, req uest, context);
869 #else
870 UNUSED_PARAM(context);
871 UNUSED_PARAM(request);
872 #endif
873 return InspectorInstrumentationCookie(); 711 return InspectorInstrumentationCookie();
874 } 712 }
875 713
876 inline void InspectorInstrumentation::didDispatchXHRReadyStateChangeEvent(const InspectorInstrumentationCookie& cookie) 714 inline void InspectorInstrumentation::didDispatchXHRReadyStateChangeEvent(const InspectorInstrumentationCookie& cookie)
877 { 715 {
878 #if ENABLE(INSPECTOR)
879 FAST_RETURN_IF_NO_FRONTENDS(void()); 716 FAST_RETURN_IF_NO_FRONTENDS(void());
880 if (cookie.isValid()) 717 if (cookie.isValid())
881 didDispatchXHRReadyStateChangeEventImpl(cookie); 718 didDispatchXHRReadyStateChangeEventImpl(cookie);
882 #else
883 UNUSED_PARAM(cookie);
884 #endif
885 } 719 }
886 720
887 inline InspectorInstrumentationCookie InspectorInstrumentation::willDispatchEven t(Document* document, const Event& event, DOMWindow* window, Node* node, const E ventPath& eventPath) 721 inline InspectorInstrumentationCookie InspectorInstrumentation::willDispatchEven t(Document* document, const Event& event, DOMWindow* window, Node* node, const E ventPath& eventPath)
888 { 722 {
889 #if ENABLE(INSPECTOR)
890 FAST_RETURN_IF_NO_FRONTENDS(InspectorInstrumentationCookie()); 723 FAST_RETURN_IF_NO_FRONTENDS(InspectorInstrumentationCookie());
891 if (InstrumentingAgents* instrumentingAgents = instrumentingAgentsForDocumen t(document)) 724 if (InstrumentingAgents* instrumentingAgents = instrumentingAgentsForDocumen t(document))
892 return willDispatchEventImpl(instrumentingAgents, event, window, node, e ventPath, document); 725 return willDispatchEventImpl(instrumentingAgents, event, window, node, e ventPath, document);
893 #else
894 UNUSED_PARAM(document);
895 UNUSED_PARAM(event);
896 UNUSED_PARAM(window);
897 UNUSED_PARAM(node);
898 UNUSED_PARAM(eventPath);
899 #endif
900 return InspectorInstrumentationCookie(); 726 return InspectorInstrumentationCookie();
901 } 727 }
902 728
903 inline void InspectorInstrumentation::didDispatchEvent(const InspectorInstrument ationCookie& cookie) 729 inline void InspectorInstrumentation::didDispatchEvent(const InspectorInstrument ationCookie& cookie)
904 { 730 {
905 #if ENABLE(INSPECTOR)
906 FAST_RETURN_IF_NO_FRONTENDS(void()); 731 FAST_RETURN_IF_NO_FRONTENDS(void());
907 if (cookie.isValid()) 732 if (cookie.isValid())
908 didDispatchEventImpl(cookie); 733 didDispatchEventImpl(cookie);
909 #else
910 UNUSED_PARAM(cookie);
911 #endif
912 } 734 }
913 735
914 inline InspectorInstrumentationCookie InspectorInstrumentation::willHandleEvent( ScriptExecutionContext* context, Event* event) 736 inline InspectorInstrumentationCookie InspectorInstrumentation::willHandleEvent( ScriptExecutionContext* context, Event* event)
915 { 737 {
916 #if ENABLE(INSPECTOR)
917 FAST_RETURN_IF_NO_FRONTENDS(InspectorInstrumentationCookie()); 738 FAST_RETURN_IF_NO_FRONTENDS(InspectorInstrumentationCookie());
918 if (InstrumentingAgents* instrumentingAgents = instrumentingAgentsForContext (context)) 739 if (InstrumentingAgents* instrumentingAgents = instrumentingAgentsForContext (context))
919 return willHandleEventImpl(instrumentingAgents, event); 740 return willHandleEventImpl(instrumentingAgents, event);
920 #else
921 UNUSED_PARAM(context);
922 UNUSED_PARAM(event);
923 #endif
924 return InspectorInstrumentationCookie(); 741 return InspectorInstrumentationCookie();
925 } 742 }
926 743
927 inline void InspectorInstrumentation::didHandleEvent(const InspectorInstrumentat ionCookie& cookie) 744 inline void InspectorInstrumentation::didHandleEvent(const InspectorInstrumentat ionCookie& cookie)
928 { 745 {
929 #if ENABLE(INSPECTOR)
930 FAST_RETURN_IF_NO_FRONTENDS(void()); 746 FAST_RETURN_IF_NO_FRONTENDS(void());
931 if (cookie.isValid()) 747 if (cookie.isValid())
932 didHandleEventImpl(cookie); 748 didHandleEventImpl(cookie);
933 #else
934 UNUSED_PARAM(cookie);
935 #endif
936 } 749 }
937 750
938 inline InspectorInstrumentationCookie InspectorInstrumentation::willDispatchEven tOnWindow(Frame* frame, const Event& event, DOMWindow* window) 751 inline InspectorInstrumentationCookie InspectorInstrumentation::willDispatchEven tOnWindow(Frame* frame, const Event& event, DOMWindow* window)
939 { 752 {
940 #if ENABLE(INSPECTOR)
941 FAST_RETURN_IF_NO_FRONTENDS(InspectorInstrumentationCookie()); 753 FAST_RETURN_IF_NO_FRONTENDS(InspectorInstrumentationCookie());
942 if (InstrumentingAgents* instrumentingAgents = instrumentingAgentsForFrame(f rame)) 754 if (InstrumentingAgents* instrumentingAgents = instrumentingAgentsForFrame(f rame))
943 return willDispatchEventOnWindowImpl(instrumentingAgents, event, window) ; 755 return willDispatchEventOnWindowImpl(instrumentingAgents, event, window) ;
944 #else
945 UNUSED_PARAM(frame);
946 UNUSED_PARAM(event);
947 UNUSED_PARAM(window);
948 #endif
949 return InspectorInstrumentationCookie(); 756 return InspectorInstrumentationCookie();
950 } 757 }
951 758
952 inline void InspectorInstrumentation::didDispatchEventOnWindow(const InspectorIn strumentationCookie& cookie) 759 inline void InspectorInstrumentation::didDispatchEventOnWindow(const InspectorIn strumentationCookie& cookie)
953 { 760 {
954 #if ENABLE(INSPECTOR)
955 FAST_RETURN_IF_NO_FRONTENDS(void()); 761 FAST_RETURN_IF_NO_FRONTENDS(void());
956 if (cookie.isValid()) 762 if (cookie.isValid())
957 didDispatchEventOnWindowImpl(cookie); 763 didDispatchEventOnWindowImpl(cookie);
958 #else
959 UNUSED_PARAM(cookie);
960 #endif
961 } 764 }
962 765
963 inline InspectorInstrumentationCookie InspectorInstrumentation::willEvaluateScri pt(Frame* frame, const String& url, int lineNumber) 766 inline InspectorInstrumentationCookie InspectorInstrumentation::willEvaluateScri pt(Frame* frame, const String& url, int lineNumber)
964 { 767 {
965 #if ENABLE(INSPECTOR)
966 FAST_RETURN_IF_NO_FRONTENDS(InspectorInstrumentationCookie()); 768 FAST_RETURN_IF_NO_FRONTENDS(InspectorInstrumentationCookie());
967 if (InstrumentingAgents* instrumentingAgents = instrumentingAgentsForFrame(f rame)) 769 if (InstrumentingAgents* instrumentingAgents = instrumentingAgentsForFrame(f rame))
968 return willEvaluateScriptImpl(instrumentingAgents, url, lineNumber, fram e); 770 return willEvaluateScriptImpl(instrumentingAgents, url, lineNumber, fram e);
969 #else
970 UNUSED_PARAM(frame);
971 UNUSED_PARAM(url);
972 UNUSED_PARAM(lineNumber);
973 #endif
974 return InspectorInstrumentationCookie(); 771 return InspectorInstrumentationCookie();
975 } 772 }
976 773
977 inline void InspectorInstrumentation::didEvaluateScript(const InspectorInstrumen tationCookie& cookie) 774 inline void InspectorInstrumentation::didEvaluateScript(const InspectorInstrumen tationCookie& cookie)
978 { 775 {
979 #if ENABLE(INSPECTOR)
980 FAST_RETURN_IF_NO_FRONTENDS(void()); 776 FAST_RETURN_IF_NO_FRONTENDS(void());
981 if (cookie.isValid()) 777 if (cookie.isValid())
982 didEvaluateScriptImpl(cookie); 778 didEvaluateScriptImpl(cookie);
983 #else
984 UNUSED_PARAM(cookie);
985 #endif
986 } 779 }
987 780
988 inline void InspectorInstrumentation::scriptsEnabled(Page* page, bool isEnabled) 781 inline void InspectorInstrumentation::scriptsEnabled(Page* page, bool isEnabled)
989 { 782 {
990 #if ENABLE(INSPECTOR)
991 FAST_RETURN_IF_NO_FRONTENDS(void()); 783 FAST_RETURN_IF_NO_FRONTENDS(void());
992 if (InstrumentingAgents* instrumentingAgents = instrumentingAgentsForPage(pa ge)) 784 if (InstrumentingAgents* instrumentingAgents = instrumentingAgentsForPage(pa ge))
993 return scriptsEnabledImpl(instrumentingAgents, isEnabled); 785 return scriptsEnabledImpl(instrumentingAgents, isEnabled);
994 #else
995 UNUSED_PARAM(page);
996 UNUSED_PARAM(isEnabled);
997 #endif
998 } 786 }
999 787
1000 inline void InspectorInstrumentation::didCreateIsolatedContext(Frame* frame, Scr iptState* scriptState, SecurityOrigin* origin) 788 inline void InspectorInstrumentation::didCreateIsolatedContext(Frame* frame, Scr iptState* scriptState, SecurityOrigin* origin)
1001 { 789 {
1002 #if ENABLE(INSPECTOR)
1003 FAST_RETURN_IF_NO_FRONTENDS(void()); 790 FAST_RETURN_IF_NO_FRONTENDS(void());
1004 if (InstrumentingAgents* instrumentingAgents = instrumentingAgentsForFrame(f rame)) 791 if (InstrumentingAgents* instrumentingAgents = instrumentingAgentsForFrame(f rame))
1005 return didCreateIsolatedContextImpl(instrumentingAgents, frame, scriptSt ate, origin); 792 return didCreateIsolatedContextImpl(instrumentingAgents, frame, scriptSt ate, origin);
1006 #else
1007 UNUSED_PARAM(frame);
1008 UNUSED_PARAM(scriptState);
1009 UNUSED_PARAM(origin);
1010 #endif
1011 } 793 }
1012 794
1013 inline InspectorInstrumentationCookie InspectorInstrumentation::willFireTimer(Sc riptExecutionContext* context, int timerId) 795 inline InspectorInstrumentationCookie InspectorInstrumentation::willFireTimer(Sc riptExecutionContext* context, int timerId)
1014 { 796 {
1015 #if ENABLE(INSPECTOR)
1016 FAST_RETURN_IF_NO_FRONTENDS(InspectorInstrumentationCookie()); 797 FAST_RETURN_IF_NO_FRONTENDS(InspectorInstrumentationCookie());
1017 if (InstrumentingAgents* instrumentingAgents = instrumentingAgentsForContext (context)) 798 if (InstrumentingAgents* instrumentingAgents = instrumentingAgentsForContext (context))
1018 return willFireTimerImpl(instrumentingAgents, timerId, context); 799 return willFireTimerImpl(instrumentingAgents, timerId, context);
1019 #else
1020 UNUSED_PARAM(context);
1021 UNUSED_PARAM(timerId);
1022 #endif
1023 return InspectorInstrumentationCookie(); 800 return InspectorInstrumentationCookie();
1024 } 801 }
1025 802
1026 inline void InspectorInstrumentation::didFireTimer(const InspectorInstrumentatio nCookie& cookie) 803 inline void InspectorInstrumentation::didFireTimer(const InspectorInstrumentatio nCookie& cookie)
1027 { 804 {
1028 #if ENABLE(INSPECTOR)
1029 FAST_RETURN_IF_NO_FRONTENDS(void()); 805 FAST_RETURN_IF_NO_FRONTENDS(void());
1030 if (cookie.isValid()) 806 if (cookie.isValid())
1031 didFireTimerImpl(cookie); 807 didFireTimerImpl(cookie);
1032 #else
1033 UNUSED_PARAM(cookie);
1034 #endif
1035 } 808 }
1036 809
1037 inline void InspectorInstrumentation::didInvalidateLayout(Frame* frame) 810 inline void InspectorInstrumentation::didInvalidateLayout(Frame* frame)
1038 { 811 {
1039 #if ENABLE(INSPECTOR)
1040 FAST_RETURN_IF_NO_FRONTENDS(void()); 812 FAST_RETURN_IF_NO_FRONTENDS(void());
1041 if (InstrumentingAgents* instrumentingAgents = instrumentingAgentsForFrame(f rame)) 813 if (InstrumentingAgents* instrumentingAgents = instrumentingAgentsForFrame(f rame))
1042 didInvalidateLayoutImpl(instrumentingAgents, frame); 814 didInvalidateLayoutImpl(instrumentingAgents, frame);
1043 #else
1044 UNUSED_PARAM(frame);
1045 #endif
1046 } 815 }
1047 816
1048 inline InspectorInstrumentationCookie InspectorInstrumentation::willLayout(Frame * frame) 817 inline InspectorInstrumentationCookie InspectorInstrumentation::willLayout(Frame * frame)
1049 { 818 {
1050 #if ENABLE(INSPECTOR)
1051 FAST_RETURN_IF_NO_FRONTENDS(InspectorInstrumentationCookie()); 819 FAST_RETURN_IF_NO_FRONTENDS(InspectorInstrumentationCookie());
1052 if (InstrumentingAgents* instrumentingAgents = instrumentingAgentsForFrame(f rame)) 820 if (InstrumentingAgents* instrumentingAgents = instrumentingAgentsForFrame(f rame))
1053 return willLayoutImpl(instrumentingAgents, frame); 821 return willLayoutImpl(instrumentingAgents, frame);
1054 #else
1055 UNUSED_PARAM(frame);
1056 #endif
1057 return InspectorInstrumentationCookie(); 822 return InspectorInstrumentationCookie();
1058 } 823 }
1059 824
1060 inline void InspectorInstrumentation::didLayout(const InspectorInstrumentationCo okie& cookie, RenderObject* root) 825 inline void InspectorInstrumentation::didLayout(const InspectorInstrumentationCo okie& cookie, RenderObject* root)
1061 { 826 {
1062 #if ENABLE(INSPECTOR)
1063 FAST_RETURN_IF_NO_FRONTENDS(void()); 827 FAST_RETURN_IF_NO_FRONTENDS(void());
1064 if (cookie.isValid()) 828 if (cookie.isValid())
1065 didLayoutImpl(cookie, root); 829 didLayoutImpl(cookie, root);
1066 #else
1067 UNUSED_PARAM(cookie);
1068 UNUSED_PARAM(root);
1069 #endif
1070 } 830 }
1071 831
1072 inline void InspectorInstrumentation::didScroll(Page* page) 832 inline void InspectorInstrumentation::didScroll(Page* page)
1073 { 833 {
1074 #if ENABLE(INSPECTOR)
1075 FAST_RETURN_IF_NO_FRONTENDS(void()); 834 FAST_RETURN_IF_NO_FRONTENDS(void());
1076 if (InstrumentingAgents* instrumentingAgents = instrumentingAgentsForPage(pa ge)) 835 if (InstrumentingAgents* instrumentingAgents = instrumentingAgentsForPage(pa ge))
1077 didScrollImpl(instrumentingAgents); 836 didScrollImpl(instrumentingAgents);
1078 #else
1079 UNUSED_PARAM(page);
1080 #endif
1081 } 837 }
1082 838
1083 inline InspectorInstrumentationCookie InspectorInstrumentation::willDispatchXHRL oadEvent(ScriptExecutionContext* context, XMLHttpRequest* request) 839 inline InspectorInstrumentationCookie InspectorInstrumentation::willDispatchXHRL oadEvent(ScriptExecutionContext* context, XMLHttpRequest* request)
1084 { 840 {
1085 #if ENABLE(INSPECTOR)
1086 FAST_RETURN_IF_NO_FRONTENDS(InspectorInstrumentationCookie()); 841 FAST_RETURN_IF_NO_FRONTENDS(InspectorInstrumentationCookie());
1087 if (InstrumentingAgents* instrumentingAgents = instrumentingAgentsForContext (context)) 842 if (InstrumentingAgents* instrumentingAgents = instrumentingAgentsForContext (context))
1088 return willDispatchXHRLoadEventImpl(instrumentingAgents, request, contex t); 843 return willDispatchXHRLoadEventImpl(instrumentingAgents, request, contex t);
1089 #else
1090 UNUSED_PARAM(context);
1091 UNUSED_PARAM(request);
1092 #endif
1093 return InspectorInstrumentationCookie(); 844 return InspectorInstrumentationCookie();
1094 } 845 }
1095 846
1096 inline void InspectorInstrumentation::didDispatchXHRLoadEvent(const InspectorIns trumentationCookie& cookie) 847 inline void InspectorInstrumentation::didDispatchXHRLoadEvent(const InspectorIns trumentationCookie& cookie)
1097 { 848 {
1098 #if ENABLE(INSPECTOR)
1099 FAST_RETURN_IF_NO_FRONTENDS(void()); 849 FAST_RETURN_IF_NO_FRONTENDS(void());
1100 if (cookie.isValid()) 850 if (cookie.isValid())
1101 didDispatchXHRLoadEventImpl(cookie); 851 didDispatchXHRLoadEventImpl(cookie);
1102 #else
1103 UNUSED_PARAM(cookie);
1104 #endif
1105 } 852 }
1106 853
1107 inline void InspectorInstrumentation::willPaint(RenderObject* renderer) 854 inline void InspectorInstrumentation::willPaint(RenderObject* renderer)
1108 { 855 {
1109 #if ENABLE(INSPECTOR)
1110 FAST_RETURN_IF_NO_FRONTENDS(void()); 856 FAST_RETURN_IF_NO_FRONTENDS(void());
1111 if (InstrumentingAgents* instrumentingAgents = instrumentingAgentsForRendere r(renderer)) 857 if (InstrumentingAgents* instrumentingAgents = instrumentingAgentsForRendere r(renderer))
1112 return willPaintImpl(instrumentingAgents, renderer); 858 return willPaintImpl(instrumentingAgents, renderer);
1113 #else
1114 UNUSED_PARAM(renderer);
1115 #endif
1116 } 859 }
1117 860
1118 inline void InspectorInstrumentation::didPaint(RenderObject* renderer, GraphicsC ontext* context, const LayoutRect& rect) 861 inline void InspectorInstrumentation::didPaint(RenderObject* renderer, GraphicsC ontext* context, const LayoutRect& rect)
1119 { 862 {
1120 #if ENABLE(INSPECTOR)
1121 FAST_RETURN_IF_NO_FRONTENDS(void()); 863 FAST_RETURN_IF_NO_FRONTENDS(void());
1122 if (InstrumentingAgents* instrumentingAgents = instrumentingAgentsForRendere r(renderer)) 864 if (InstrumentingAgents* instrumentingAgents = instrumentingAgentsForRendere r(renderer))
1123 didPaintImpl(instrumentingAgents, renderer, context, rect); 865 didPaintImpl(instrumentingAgents, renderer, context, rect);
1124 #else
1125 UNUSED_PARAM(renderer);
1126 UNUSED_PARAM(context);
1127 UNUSED_PARAM(rect);
1128 #endif
1129 } 866 }
1130 867
1131 inline void InspectorInstrumentation::willScrollLayer(Frame* frame) 868 inline void InspectorInstrumentation::willScrollLayer(Frame* frame)
1132 { 869 {
1133 #if ENABLE(INSPECTOR)
1134 FAST_RETURN_IF_NO_FRONTENDS(void()); 870 FAST_RETURN_IF_NO_FRONTENDS(void());
1135 if (InstrumentingAgents* instrumentingAgents = instrumentingAgentsForFrame(f rame)) 871 if (InstrumentingAgents* instrumentingAgents = instrumentingAgentsForFrame(f rame))
1136 willScrollLayerImpl(instrumentingAgents, frame); 872 willScrollLayerImpl(instrumentingAgents, frame);
1137 #else
1138 UNUSED_PARAM(frame);
1139 #endif
1140 } 873 }
1141 874
1142 inline void InspectorInstrumentation::didScrollLayer(Frame* frame) 875 inline void InspectorInstrumentation::didScrollLayer(Frame* frame)
1143 { 876 {
1144 #if ENABLE(INSPECTOR)
1145 FAST_RETURN_IF_NO_FRONTENDS(void()); 877 FAST_RETURN_IF_NO_FRONTENDS(void());
1146 if (InstrumentingAgents* instrumentingAgents = instrumentingAgentsForFrame(f rame)) 878 if (InstrumentingAgents* instrumentingAgents = instrumentingAgentsForFrame(f rame))
1147 didScrollLayerImpl(instrumentingAgents); 879 didScrollLayerImpl(instrumentingAgents);
1148 #else
1149 UNUSED_PARAM(frame);
1150 #endif
1151 } 880 }
1152 881
1153 inline InspectorInstrumentationCookie InspectorInstrumentation::willRecalculateS tyle(Document* document) 882 inline InspectorInstrumentationCookie InspectorInstrumentation::willRecalculateS tyle(Document* document)
1154 { 883 {
1155 #if ENABLE(INSPECTOR)
1156 FAST_RETURN_IF_NO_FRONTENDS(InspectorInstrumentationCookie()); 884 FAST_RETURN_IF_NO_FRONTENDS(InspectorInstrumentationCookie());
1157 if (InstrumentingAgents* instrumentingAgents = instrumentingAgentsForDocumen t(document)) 885 if (InstrumentingAgents* instrumentingAgents = instrumentingAgentsForDocumen t(document))
1158 return willRecalculateStyleImpl(instrumentingAgents, document->frame()); 886 return willRecalculateStyleImpl(instrumentingAgents, document->frame());
1159 #else
1160 UNUSED_PARAM(document);
1161 #endif
1162 return InspectorInstrumentationCookie(); 887 return InspectorInstrumentationCookie();
1163 } 888 }
1164 889
1165 inline void InspectorInstrumentation::didRecalculateStyle(const InspectorInstrum entationCookie& cookie) 890 inline void InspectorInstrumentation::didRecalculateStyle(const InspectorInstrum entationCookie& cookie)
1166 { 891 {
1167 #if ENABLE(INSPECTOR)
1168 FAST_RETURN_IF_NO_FRONTENDS(void()); 892 FAST_RETURN_IF_NO_FRONTENDS(void());
1169 if (cookie.isValid()) 893 if (cookie.isValid())
1170 didRecalculateStyleImpl(cookie); 894 didRecalculateStyleImpl(cookie);
1171 #else
1172 UNUSED_PARAM(cookie);
1173 #endif
1174 } 895 }
1175 896
1176 inline void InspectorInstrumentation::didScheduleStyleRecalculation(Document* do cument) 897 inline void InspectorInstrumentation::didScheduleStyleRecalculation(Document* do cument)
1177 { 898 {
1178 #if ENABLE(INSPECTOR)
1179 FAST_RETURN_IF_NO_FRONTENDS(void()); 899 FAST_RETURN_IF_NO_FRONTENDS(void());
1180 if (InstrumentingAgents* instrumentingAgents = instrumentingAgentsForDocumen t(document)) 900 if (InstrumentingAgents* instrumentingAgents = instrumentingAgentsForDocumen t(document))
1181 didScheduleStyleRecalculationImpl(instrumentingAgents, document); 901 didScheduleStyleRecalculationImpl(instrumentingAgents, document);
1182 #else
1183 UNUSED_PARAM(document);
1184 #endif
1185 } 902 }
1186 903
1187 inline InspectorInstrumentationCookie InspectorInstrumentation::willMatchRule(Do cument* document, StyleRule* rule, InspectorCSSOMWrappers& inspectorCSSOMWrapper s, DocumentStyleSheetCollection* styleSheetCollection) 904 inline InspectorInstrumentationCookie InspectorInstrumentation::willMatchRule(Do cument* document, StyleRule* rule, InspectorCSSOMWrappers& inspectorCSSOMWrapper s, DocumentStyleSheetCollection* styleSheetCollection)
1188 { 905 {
1189 #if ENABLE(INSPECTOR)
1190 FAST_RETURN_IF_NO_FRONTENDS(InspectorInstrumentationCookie()); 906 FAST_RETURN_IF_NO_FRONTENDS(InspectorInstrumentationCookie());
1191 if (InstrumentingAgents* instrumentingAgents = instrumentingAgentsForDocumen t(document)) 907 if (InstrumentingAgents* instrumentingAgents = instrumentingAgentsForDocumen t(document))
1192 return willMatchRuleImpl(instrumentingAgents, rule, inspectorCSSOMWrappe rs, styleSheetCollection); 908 return willMatchRuleImpl(instrumentingAgents, rule, inspectorCSSOMWrappe rs, styleSheetCollection);
1193 #else
1194 UNUSED_PARAM(document);
1195 UNUSED_PARAM(rule);
1196 UNUSED_PARAM(inspectorCSSOMWrappers);
1197 UNUSED_PARAM(styleSheetCollection);
1198 #endif
1199 return InspectorInstrumentationCookie(); 909 return InspectorInstrumentationCookie();
1200 } 910 }
1201 911
1202 inline void InspectorInstrumentation::didMatchRule(const InspectorInstrumentatio nCookie& cookie, bool matched) 912 inline void InspectorInstrumentation::didMatchRule(const InspectorInstrumentatio nCookie& cookie, bool matched)
1203 { 913 {
1204 #if ENABLE(INSPECTOR)
1205 FAST_RETURN_IF_NO_FRONTENDS(void()); 914 FAST_RETURN_IF_NO_FRONTENDS(void());
1206 if (cookie.isValid()) 915 if (cookie.isValid())
1207 didMatchRuleImpl(cookie, matched); 916 didMatchRuleImpl(cookie, matched);
1208 #else
1209 UNUSED_PARAM(cookie);
1210 UNUSED_PARAM(matched);
1211 #endif
1212 } 917 }
1213 918
1214 inline InspectorInstrumentationCookie InspectorInstrumentation::willProcessRule( Document* document, StyleRule* rule, StyleResolver* styleResolver) 919 inline InspectorInstrumentationCookie InspectorInstrumentation::willProcessRule( Document* document, StyleRule* rule, StyleResolver* styleResolver)
1215 { 920 {
1216 #if ENABLE(INSPECTOR)
1217 FAST_RETURN_IF_NO_FRONTENDS(InspectorInstrumentationCookie()); 921 FAST_RETURN_IF_NO_FRONTENDS(InspectorInstrumentationCookie());
1218 if (!rule) 922 if (!rule)
1219 return InspectorInstrumentationCookie(); 923 return InspectorInstrumentationCookie();
1220 if (InstrumentingAgents* instrumentingAgents = instrumentingAgentsForDocumen t(document)) 924 if (InstrumentingAgents* instrumentingAgents = instrumentingAgentsForDocumen t(document))
1221 return willProcessRuleImpl(instrumentingAgents, rule, styleResolver); 925 return willProcessRuleImpl(instrumentingAgents, rule, styleResolver);
1222 #else
1223 UNUSED_PARAM(document);
1224 UNUSED_PARAM(rule);
1225 UNUSED_PARAM(styleResolver);
1226 #endif
1227 return InspectorInstrumentationCookie(); 926 return InspectorInstrumentationCookie();
1228 } 927 }
1229 928
1230 inline void InspectorInstrumentation::didProcessRule(const InspectorInstrumentat ionCookie& cookie) 929 inline void InspectorInstrumentation::didProcessRule(const InspectorInstrumentat ionCookie& cookie)
1231 { 930 {
1232 #if ENABLE(INSPECTOR)
1233 FAST_RETURN_IF_NO_FRONTENDS(void()); 931 FAST_RETURN_IF_NO_FRONTENDS(void());
1234 if (cookie.isValid()) 932 if (cookie.isValid())
1235 didProcessRuleImpl(cookie); 933 didProcessRuleImpl(cookie);
1236 #else
1237 UNUSED_PARAM(cookie);
1238 #endif
1239 } 934 }
1240 935
1241 inline void InspectorInstrumentation::applyUserAgentOverride(Frame* frame, Strin g* userAgent) 936 inline void InspectorInstrumentation::applyUserAgentOverride(Frame* frame, Strin g* userAgent)
1242 { 937 {
1243 #if ENABLE(INSPECTOR)
1244 FAST_RETURN_IF_NO_FRONTENDS(void()); 938 FAST_RETURN_IF_NO_FRONTENDS(void());
1245 if (InstrumentingAgents* instrumentingAgents = instrumentingAgentsForFrame(f rame)) 939 if (InstrumentingAgents* instrumentingAgents = instrumentingAgentsForFrame(f rame))
1246 applyUserAgentOverrideImpl(instrumentingAgents, userAgent); 940 applyUserAgentOverrideImpl(instrumentingAgents, userAgent);
1247 #else
1248 UNUSED_PARAM(frame);
1249 UNUSED_PARAM(userAgent);
1250 #endif
1251 } 941 }
1252 942
1253 inline void InspectorInstrumentation::applyScreenWidthOverride(Frame* frame, lon g* width) 943 inline void InspectorInstrumentation::applyScreenWidthOverride(Frame* frame, lon g* width)
1254 { 944 {
1255 #if ENABLE(INSPECTOR)
1256 FAST_RETURN_IF_NO_FRONTENDS(void()); 945 FAST_RETURN_IF_NO_FRONTENDS(void());
1257 if (InstrumentingAgents* instrumentingAgents = instrumentingAgentsForFrame(f rame)) 946 if (InstrumentingAgents* instrumentingAgents = instrumentingAgentsForFrame(f rame))
1258 applyScreenWidthOverrideImpl(instrumentingAgents, width); 947 applyScreenWidthOverrideImpl(instrumentingAgents, width);
1259 #else
1260 UNUSED_PARAM(frame);
1261 UNUSED_PARAM(width);
1262 #endif
1263 } 948 }
1264 949
1265 inline void InspectorInstrumentation::applyScreenHeightOverride(Frame* frame, lo ng* height) 950 inline void InspectorInstrumentation::applyScreenHeightOverride(Frame* frame, lo ng* height)
1266 { 951 {
1267 #if ENABLE(INSPECTOR)
1268 FAST_RETURN_IF_NO_FRONTENDS(void()); 952 FAST_RETURN_IF_NO_FRONTENDS(void());
1269 if (InstrumentingAgents* instrumentingAgents = instrumentingAgentsForFrame(f rame)) 953 if (InstrumentingAgents* instrumentingAgents = instrumentingAgentsForFrame(f rame))
1270 applyScreenHeightOverrideImpl(instrumentingAgents, height); 954 applyScreenHeightOverrideImpl(instrumentingAgents, height);
1271 #else
1272 UNUSED_PARAM(frame);
1273 UNUSED_PARAM(height);
1274 #endif
1275 } 955 }
1276 956
1277 inline bool InspectorInstrumentation::shouldApplyScreenWidthOverride(Frame* fram e) 957 inline bool InspectorInstrumentation::shouldApplyScreenWidthOverride(Frame* fram e)
1278 { 958 {
1279 #if ENABLE(INSPECTOR)
1280 FAST_RETURN_IF_NO_FRONTENDS(false); 959 FAST_RETURN_IF_NO_FRONTENDS(false);
1281 if (InstrumentingAgents* instrumentingAgents = instrumentingAgentsForFrame(f rame)) 960 if (InstrumentingAgents* instrumentingAgents = instrumentingAgentsForFrame(f rame))
1282 return shouldApplyScreenWidthOverrideImpl(instrumentingAgents); 961 return shouldApplyScreenWidthOverrideImpl(instrumentingAgents);
1283 #else
1284 UNUSED_PARAM(frame);
1285 #endif
1286 return false; 962 return false;
1287 } 963 }
1288 964
1289 inline void InspectorInstrumentation::applyEmulatedMedia(Frame* frame, String* m edia) 965 inline void InspectorInstrumentation::applyEmulatedMedia(Frame* frame, String* m edia)
1290 { 966 {
1291 #if ENABLE(INSPECTOR)
1292 FAST_RETURN_IF_NO_FRONTENDS(void()); 967 FAST_RETURN_IF_NO_FRONTENDS(void());
1293 if (InstrumentingAgents* instrumentingAgents = instrumentingAgentsForFrame(f rame)) 968 if (InstrumentingAgents* instrumentingAgents = instrumentingAgentsForFrame(f rame))
1294 applyEmulatedMediaImpl(instrumentingAgents, media); 969 applyEmulatedMediaImpl(instrumentingAgents, media);
1295 #else
1296 UNUSED_PARAM(frame);
1297 UNUSED_PARAM(media);
1298 #endif
1299 } 970 }
1300 971
1301 inline bool InspectorInstrumentation::shouldApplyScreenHeightOverride(Frame* fra me) 972 inline bool InspectorInstrumentation::shouldApplyScreenHeightOverride(Frame* fra me)
1302 { 973 {
1303 #if ENABLE(INSPECTOR)
1304 FAST_RETURN_IF_NO_FRONTENDS(false); 974 FAST_RETURN_IF_NO_FRONTENDS(false);
1305 if (InstrumentingAgents* instrumentingAgents = instrumentingAgentsForFrame(f rame)) 975 if (InstrumentingAgents* instrumentingAgents = instrumentingAgentsForFrame(f rame))
1306 return shouldApplyScreenHeightOverrideImpl(instrumentingAgents); 976 return shouldApplyScreenHeightOverrideImpl(instrumentingAgents);
1307 #else
1308 UNUSED_PARAM(frame);
1309 #endif
1310 return false; 977 return false;
1311 } 978 }
1312 979
1313 inline void InspectorInstrumentation::willSendRequest(Frame* frame, unsigned lon g identifier, DocumentLoader* loader, ResourceRequest& request, const ResourceRe sponse& redirectResponse) 980 inline void InspectorInstrumentation::willSendRequest(Frame* frame, unsigned lon g identifier, DocumentLoader* loader, ResourceRequest& request, const ResourceRe sponse& redirectResponse)
1314 { 981 {
1315 #if ENABLE(INSPECTOR)
1316 if (InstrumentingAgents* instrumentingAgents = instrumentingAgentsForFrame(f rame)) 982 if (InstrumentingAgents* instrumentingAgents = instrumentingAgentsForFrame(f rame))
1317 willSendRequestImpl(instrumentingAgents, identifier, loader, request, re directResponse); 983 willSendRequestImpl(instrumentingAgents, identifier, loader, request, re directResponse);
1318 #else
1319 UNUSED_PARAM(frame);
1320 UNUSED_PARAM(identifier);
1321 UNUSED_PARAM(loader);
1322 UNUSED_PARAM(request);
1323 UNUSED_PARAM(redirectResponse);
1324 #endif
1325 } 984 }
1326 985
1327 inline void InspectorInstrumentation::continueAfterPingLoader(Frame* frame, unsi gned long identifier, DocumentLoader* loader, ResourceRequest& request, const Re sourceResponse& response) 986 inline void InspectorInstrumentation::continueAfterPingLoader(Frame* frame, unsi gned long identifier, DocumentLoader* loader, ResourceRequest& request, const Re sourceResponse& response)
1328 { 987 {
1329 #if ENABLE(INSPECTOR)
1330 if (InstrumentingAgents* instrumentingAgents = instrumentingAgentsForFrame(f rame)) 988 if (InstrumentingAgents* instrumentingAgents = instrumentingAgentsForFrame(f rame))
1331 InspectorInstrumentation::continueAfterPingLoaderImpl(instrumentingAgent s, identifier, loader, request, response); 989 InspectorInstrumentation::continueAfterPingLoaderImpl(instrumentingAgent s, identifier, loader, request, response);
1332 #else
1333 UNUSED_PARAM(frame);
1334 UNUSED_PARAM(identifier);
1335 UNUSED_PARAM(loader);
1336 UNUSED_PARAM(request);
1337 UNUSED_PARAM(response);
1338 #endif
1339 } 990 }
1340 991
1341 inline void InspectorInstrumentation::markResourceAsCached(Page* page, unsigned long identifier) 992 inline void InspectorInstrumentation::markResourceAsCached(Page* page, unsigned long identifier)
1342 { 993 {
1343 #if ENABLE(INSPECTOR)
1344 if (InstrumentingAgents* instrumentingAgents = instrumentingAgentsForPage(pa ge)) 994 if (InstrumentingAgents* instrumentingAgents = instrumentingAgentsForPage(pa ge))
1345 markResourceAsCachedImpl(instrumentingAgents, identifier); 995 markResourceAsCachedImpl(instrumentingAgents, identifier);
1346 #else
1347 UNUSED_PARAM(page);
1348 UNUSED_PARAM(identifier);
1349 #endif
1350 } 996 }
1351 997
1352 inline void InspectorInstrumentation::didLoadResourceFromMemoryCache(Page* page, DocumentLoader* loader, CachedResource* resource) 998 inline void InspectorInstrumentation::didLoadResourceFromMemoryCache(Page* page, DocumentLoader* loader, CachedResource* resource)
1353 { 999 {
1354 #if ENABLE(INSPECTOR)
1355 if (InstrumentingAgents* instrumentingAgents = instrumentingAgentsForPage(pa ge)) 1000 if (InstrumentingAgents* instrumentingAgents = instrumentingAgentsForPage(pa ge))
1356 didLoadResourceFromMemoryCacheImpl(instrumentingAgents, loader, resource ); 1001 didLoadResourceFromMemoryCacheImpl(instrumentingAgents, loader, resource );
1357 #else
1358 UNUSED_PARAM(page);
1359 UNUSED_PARAM(loader);
1360 UNUSED_PARAM(resource);
1361 #endif
1362 } 1002 }
1363 1003
1364 inline InspectorInstrumentationCookie InspectorInstrumentation::willReceiveResou rceData(Frame* frame, unsigned long identifier, int length) 1004 inline InspectorInstrumentationCookie InspectorInstrumentation::willReceiveResou rceData(Frame* frame, unsigned long identifier, int length)
1365 { 1005 {
1366 #if ENABLE(INSPECTOR)
1367 FAST_RETURN_IF_NO_FRONTENDS(InspectorInstrumentationCookie()); 1006 FAST_RETURN_IF_NO_FRONTENDS(InspectorInstrumentationCookie());
1368 if (InstrumentingAgents* instrumentingAgents = instrumentingAgentsForFrame(f rame)) 1007 if (InstrumentingAgents* instrumentingAgents = instrumentingAgentsForFrame(f rame))
1369 return willReceiveResourceDataImpl(instrumentingAgents, identifier, fram e, length); 1008 return willReceiveResourceDataImpl(instrumentingAgents, identifier, fram e, length);
1370 #else
1371 UNUSED_PARAM(frame);
1372 UNUSED_PARAM(identifier);
1373 UNUSED_PARAM(length);
1374 #endif
1375 return InspectorInstrumentationCookie(); 1009 return InspectorInstrumentationCookie();
1376 } 1010 }
1377 1011
1378 inline void InspectorInstrumentation::didReceiveResourceData(const InspectorInst rumentationCookie& cookie) 1012 inline void InspectorInstrumentation::didReceiveResourceData(const InspectorInst rumentationCookie& cookie)
1379 { 1013 {
1380 #if ENABLE(INSPECTOR)
1381 FAST_RETURN_IF_NO_FRONTENDS(void()); 1014 FAST_RETURN_IF_NO_FRONTENDS(void());
1382 if (cookie.isValid()) 1015 if (cookie.isValid())
1383 didReceiveResourceDataImpl(cookie); 1016 didReceiveResourceDataImpl(cookie);
1384 #else
1385 UNUSED_PARAM(cookie);
1386 #endif
1387 } 1017 }
1388 1018
1389 inline InspectorInstrumentationCookie InspectorInstrumentation::willReceiveResou rceResponse(Frame* frame, unsigned long identifier, const ResourceResponse& resp onse) 1019 inline InspectorInstrumentationCookie InspectorInstrumentation::willReceiveResou rceResponse(Frame* frame, unsigned long identifier, const ResourceResponse& resp onse)
1390 { 1020 {
1391 #if ENABLE(INSPECTOR)
1392 if (InstrumentingAgents* instrumentingAgents = instrumentingAgentsForFrame(f rame)) 1021 if (InstrumentingAgents* instrumentingAgents = instrumentingAgentsForFrame(f rame))
1393 return willReceiveResourceResponseImpl(instrumentingAgents, identifier, response, frame); 1022 return willReceiveResourceResponseImpl(instrumentingAgents, identifier, response, frame);
1394 #else
1395 UNUSED_PARAM(frame);
1396 UNUSED_PARAM(identifier);
1397 UNUSED_PARAM(response);
1398 #endif
1399 return InspectorInstrumentationCookie(); 1023 return InspectorInstrumentationCookie();
1400 } 1024 }
1401 1025
1402 inline void InspectorInstrumentation::didReceiveResourceResponse(const Inspector InstrumentationCookie& cookie, unsigned long identifier, DocumentLoader* loader, const ResourceResponse& response, ResourceLoader* resourceLoader) 1026 inline void InspectorInstrumentation::didReceiveResourceResponse(const Inspector InstrumentationCookie& cookie, unsigned long identifier, DocumentLoader* loader, const ResourceResponse& response, ResourceLoader* resourceLoader)
1403 { 1027 {
1404 #if ENABLE(INSPECTOR)
1405 // Call this unconditionally so that we're able to log to console with no fr ont-end attached. 1028 // Call this unconditionally so that we're able to log to console with no fr ont-end attached.
1406 if (cookie.isValid()) 1029 if (cookie.isValid())
1407 didReceiveResourceResponseImpl(cookie, identifier, loader, response, res ourceLoader); 1030 didReceiveResourceResponseImpl(cookie, identifier, loader, response, res ourceLoader);
1408 #else
1409 UNUSED_PARAM(cookie);
1410 UNUSED_PARAM(identifier);
1411 UNUSED_PARAM(loader);
1412 UNUSED_PARAM(response);
1413 UNUSED_PARAM(resourceLoader);
1414 #endif
1415 } 1031 }
1416 1032
1417 inline void InspectorInstrumentation::continueAfterXFrameOptionsDenied(Frame* fr ame, DocumentLoader* loader, unsigned long identifier, const ResourceResponse& r ) 1033 inline void InspectorInstrumentation::continueAfterXFrameOptionsDenied(Frame* fr ame, DocumentLoader* loader, unsigned long identifier, const ResourceResponse& r )
1418 { 1034 {
1419 #if ENABLE(INSPECTOR)
1420 FAST_RETURN_IF_NO_FRONTENDS(void()); 1035 FAST_RETURN_IF_NO_FRONTENDS(void());
1421 InspectorInstrumentation::continueAfterXFrameOptionsDeniedImpl(frame, loader , identifier, r); 1036 InspectorInstrumentation::continueAfterXFrameOptionsDeniedImpl(frame, loader , identifier, r);
1422 #else
1423 UNUSED_PARAM(frame);
1424 UNUSED_PARAM(loader);
1425 UNUSED_PARAM(identifier);
1426 UNUSED_PARAM(r);
1427 #endif
1428 } 1037 }
1429 1038
1430 inline void InspectorInstrumentation::continueWithPolicyDownload(Frame* frame, D ocumentLoader* loader, unsigned long identifier, const ResourceResponse& r) 1039 inline void InspectorInstrumentation::continueWithPolicyDownload(Frame* frame, D ocumentLoader* loader, unsigned long identifier, const ResourceResponse& r)
1431 { 1040 {
1432 #if ENABLE(INSPECTOR)
1433 FAST_RETURN_IF_NO_FRONTENDS(void()); 1041 FAST_RETURN_IF_NO_FRONTENDS(void());
1434 InspectorInstrumentation::continueWithPolicyDownloadImpl(frame, loader, iden tifier, r); 1042 InspectorInstrumentation::continueWithPolicyDownloadImpl(frame, loader, iden tifier, r);
1435 #else
1436 UNUSED_PARAM(frame);
1437 UNUSED_PARAM(loader);
1438 UNUSED_PARAM(identifier);
1439 UNUSED_PARAM(r);
1440 #endif
1441 } 1043 }
1442 1044
1443 inline void InspectorInstrumentation::continueWithPolicyIgnore(Frame* frame, Doc umentLoader* loader, unsigned long identifier, const ResourceResponse& r) 1045 inline void InspectorInstrumentation::continueWithPolicyIgnore(Frame* frame, Doc umentLoader* loader, unsigned long identifier, const ResourceResponse& r)
1444 { 1046 {
1445 #if ENABLE(INSPECTOR)
1446 FAST_RETURN_IF_NO_FRONTENDS(void()); 1047 FAST_RETURN_IF_NO_FRONTENDS(void());
1447 InspectorInstrumentation::continueWithPolicyIgnoreImpl(frame, loader, identi fier, r); 1048 InspectorInstrumentation::continueWithPolicyIgnoreImpl(frame, loader, identi fier, r);
1448 #else
1449 UNUSED_PARAM(frame);
1450 UNUSED_PARAM(loader);
1451 UNUSED_PARAM(identifier);
1452 UNUSED_PARAM(r);
1453 #endif
1454 } 1049 }
1455 1050
1456 inline void InspectorInstrumentation::didReceiveData(Frame* frame, unsigned long identifier, const char* data, int dataLength, int encodedDataLength) 1051 inline void InspectorInstrumentation::didReceiveData(Frame* frame, unsigned long identifier, const char* data, int dataLength, int encodedDataLength)
1457 { 1052 {
1458 #if ENABLE(INSPECTOR)
1459 if (InstrumentingAgents* instrumentingAgents = instrumentingAgentsForFrame(f rame)) 1053 if (InstrumentingAgents* instrumentingAgents = instrumentingAgentsForFrame(f rame))
1460 didReceiveDataImpl(instrumentingAgents, identifier, data, dataLength, en codedDataLength); 1054 didReceiveDataImpl(instrumentingAgents, identifier, data, dataLength, en codedDataLength);
1461 #else
1462 UNUSED_PARAM(frame);
1463 UNUSED_PARAM(identifier);
1464 UNUSED_PARAM(data);
1465 UNUSED_PARAM(dataLength);
1466 UNUSED_PARAM(encodedDataLength);
1467 #endif
1468 } 1055 }
1469 1056
1470 inline void InspectorInstrumentation::didFinishLoading(Frame* frame, DocumentLoa der* loader, unsigned long identifier, double finishTime) 1057 inline void InspectorInstrumentation::didFinishLoading(Frame* frame, DocumentLoa der* loader, unsigned long identifier, double finishTime)
1471 { 1058 {
1472 #if ENABLE(INSPECTOR)
1473 if (InstrumentingAgents* instrumentingAgents = instrumentingAgentsForFrame(f rame)) 1059 if (InstrumentingAgents* instrumentingAgents = instrumentingAgentsForFrame(f rame))
1474 didFinishLoadingImpl(instrumentingAgents, identifier, loader, finishTime ); 1060 didFinishLoadingImpl(instrumentingAgents, identifier, loader, finishTime );
1475 #else
1476 UNUSED_PARAM(frame);
1477 UNUSED_PARAM(loader);
1478 UNUSED_PARAM(identifier);
1479 UNUSED_PARAM(finishTime);
1480 #endif
1481 } 1061 }
1482 1062
1483 inline void InspectorInstrumentation::didFailLoading(Frame* frame, DocumentLoade r* loader, unsigned long identifier, const ResourceError& error) 1063 inline void InspectorInstrumentation::didFailLoading(Frame* frame, DocumentLoade r* loader, unsigned long identifier, const ResourceError& error)
1484 { 1064 {
1485 #if ENABLE(INSPECTOR)
1486 if (InstrumentingAgents* instrumentingAgents = instrumentingAgentsForFrame(f rame)) 1065 if (InstrumentingAgents* instrumentingAgents = instrumentingAgentsForFrame(f rame))
1487 didFailLoadingImpl(instrumentingAgents, identifier, loader, error); 1066 didFailLoadingImpl(instrumentingAgents, identifier, loader, error);
1488 #else
1489 UNUSED_PARAM(frame);
1490 UNUSED_PARAM(loader);
1491 UNUSED_PARAM(identifier);
1492 UNUSED_PARAM(error);
1493 #endif
1494 } 1067 }
1495 1068
1496 inline void InspectorInstrumentation::documentThreadableLoaderStartedLoadingForC lient(ScriptExecutionContext* context, unsigned long identifier, ThreadableLoade rClient* client) 1069 inline void InspectorInstrumentation::documentThreadableLoaderStartedLoadingForC lient(ScriptExecutionContext* context, unsigned long identifier, ThreadableLoade rClient* client)
1497 { 1070 {
1498 #if ENABLE(INSPECTOR)
1499 if (InstrumentingAgents* instrumentingAgents = instrumentingAgentsForContext (context)) 1071 if (InstrumentingAgents* instrumentingAgents = instrumentingAgentsForContext (context))
1500 documentThreadableLoaderStartedLoadingForClientImpl(instrumentingAgents, identifier, client); 1072 documentThreadableLoaderStartedLoadingForClientImpl(instrumentingAgents, identifier, client);
1501 #else
1502 UNUSED_PARAM(context);
1503 UNUSED_PARAM(identifier);
1504 UNUSED_PARAM(client);
1505 #endif
1506 } 1073 }
1507 1074
1508 inline void InspectorInstrumentation::willLoadXHR(ScriptExecutionContext* contex t, ThreadableLoaderClient* client, const String& method, const KURL& url, bool a sync, PassRefPtr<FormData> formData, const HTTPHeaderMap& headers, bool includeC redentials) 1075 inline void InspectorInstrumentation::willLoadXHR(ScriptExecutionContext* contex t, ThreadableLoaderClient* client, const String& method, const KURL& url, bool a sync, PassRefPtr<FormData> formData, const HTTPHeaderMap& headers, bool includeC redentials)
1509 { 1076 {
1510 #if ENABLE(INSPECTOR)
1511 if (InstrumentingAgents* instrumentingAgents = instrumentingAgentsForContext (context)) 1077 if (InstrumentingAgents* instrumentingAgents = instrumentingAgentsForContext (context))
1512 willLoadXHRImpl(instrumentingAgents, client, method, url, async, formDat a, headers, includeCredentials); 1078 willLoadXHRImpl(instrumentingAgents, client, method, url, async, formDat a, headers, includeCredentials);
1513 #else
1514 UNUSED_PARAM(context);
1515 UNUSED_PARAM(client);
1516 UNUSED_PARAM(method);
1517 UNUSED_PARAM(url);
1518 UNUSED_PARAM(async);
1519 UNUSED_PARAM(formData);
1520 UNUSED_PARAM(headers);
1521 UNUSED_PARAM(includeCredentials);
1522 #endif
1523 } 1079 }
1524 1080
1525 inline void InspectorInstrumentation::didFailXHRLoading(ScriptExecutionContext* context, ThreadableLoaderClient* client) 1081 inline void InspectorInstrumentation::didFailXHRLoading(ScriptExecutionContext* context, ThreadableLoaderClient* client)
1526 { 1082 {
1527 #if ENABLE(INSPECTOR)
1528 if (InstrumentingAgents* instrumentingAgents = instrumentingAgentsForContext (context)) 1083 if (InstrumentingAgents* instrumentingAgents = instrumentingAgentsForContext (context))
1529 didFailXHRLoadingImpl(instrumentingAgents, client); 1084 didFailXHRLoadingImpl(instrumentingAgents, client);
1530 #else
1531 UNUSED_PARAM(context);
1532 UNUSED_PARAM(client);
1533 #endif
1534 } 1085 }
1535 1086
1536 1087
1537 inline void InspectorInstrumentation::didFinishXHRLoading(ScriptExecutionContext * context, ThreadableLoaderClient* client, unsigned long identifier, const Strin g& sourceString, const String& url, const String& sendURL, unsigned sendLineNumb er) 1088 inline void InspectorInstrumentation::didFinishXHRLoading(ScriptExecutionContext * context, ThreadableLoaderClient* client, unsigned long identifier, const Strin g& sourceString, const String& url, const String& sendURL, unsigned sendLineNumb er)
1538 { 1089 {
1539 #if ENABLE(INSPECTOR)
1540 if (InstrumentingAgents* instrumentingAgents = instrumentingAgentsForContext (context)) 1090 if (InstrumentingAgents* instrumentingAgents = instrumentingAgentsForContext (context))
1541 didFinishXHRLoadingImpl(instrumentingAgents, client, identifier, sourceS tring, url, sendURL, sendLineNumber); 1091 didFinishXHRLoadingImpl(instrumentingAgents, client, identifier, sourceS tring, url, sendURL, sendLineNumber);
1542 #else
1543 UNUSED_PARAM(context);
1544 UNUSED_PARAM(client);
1545 UNUSED_PARAM(identifier);
1546 UNUSED_PARAM(sourceString);
1547 UNUSED_PARAM(url);
1548 UNUSED_PARAM(sendURL);
1549 UNUSED_PARAM(sendLineNumber);
1550 #endif
1551 } 1092 }
1552 1093
1553 inline void InspectorInstrumentation::didReceiveXHRResponse(ScriptExecutionConte xt* context, unsigned long identifier) 1094 inline void InspectorInstrumentation::didReceiveXHRResponse(ScriptExecutionConte xt* context, unsigned long identifier)
1554 { 1095 {
1555 #if ENABLE(INSPECTOR)
1556 if (InstrumentingAgents* instrumentingAgents = instrumentingAgentsForContext (context)) 1096 if (InstrumentingAgents* instrumentingAgents = instrumentingAgentsForContext (context))
1557 didReceiveXHRResponseImpl(instrumentingAgents, identifier); 1097 didReceiveXHRResponseImpl(instrumentingAgents, identifier);
1558 #else
1559 UNUSED_PARAM(context);
1560 UNUSED_PARAM(identifier);
1561 #endif
1562 } 1098 }
1563 1099
1564 inline void InspectorInstrumentation::willLoadXHRSynchronously(ScriptExecutionCo ntext* context) 1100 inline void InspectorInstrumentation::willLoadXHRSynchronously(ScriptExecutionCo ntext* context)
1565 { 1101 {
1566 #if ENABLE(INSPECTOR)
1567 if (InstrumentingAgents* instrumentingAgents = instrumentingAgentsForContext (context)) 1102 if (InstrumentingAgents* instrumentingAgents = instrumentingAgentsForContext (context))
1568 willLoadXHRSynchronouslyImpl(instrumentingAgents); 1103 willLoadXHRSynchronouslyImpl(instrumentingAgents);
1569 #else
1570 UNUSED_PARAM(context);
1571 #endif
1572 } 1104 }
1573 1105
1574 inline void InspectorInstrumentation::didLoadXHRSynchronously(ScriptExecutionCon text* context) 1106 inline void InspectorInstrumentation::didLoadXHRSynchronously(ScriptExecutionCon text* context)
1575 { 1107 {
1576 #if ENABLE(INSPECTOR)
1577 if (InstrumentingAgents* instrumentingAgents = instrumentingAgentsForContext (context)) 1108 if (InstrumentingAgents* instrumentingAgents = instrumentingAgentsForContext (context))
1578 didLoadXHRSynchronouslyImpl(instrumentingAgents); 1109 didLoadXHRSynchronouslyImpl(instrumentingAgents);
1579 #else
1580 UNUSED_PARAM(context);
1581 #endif
1582 } 1110 }
1583 1111
1584 inline void InspectorInstrumentation::scriptImported(ScriptExecutionContext* con text, unsigned long identifier, const String& sourceString) 1112 inline void InspectorInstrumentation::scriptImported(ScriptExecutionContext* con text, unsigned long identifier, const String& sourceString)
1585 { 1113 {
1586 #if ENABLE(INSPECTOR)
1587 if (InstrumentingAgents* instrumentingAgents = instrumentingAgentsForContext (context)) 1114 if (InstrumentingAgents* instrumentingAgents = instrumentingAgentsForContext (context))
1588 scriptImportedImpl(instrumentingAgents, identifier, sourceString); 1115 scriptImportedImpl(instrumentingAgents, identifier, sourceString);
1589 #else
1590 UNUSED_PARAM(context);
1591 UNUSED_PARAM(identifier);
1592 UNUSED_PARAM(sourceString);
1593 #endif
1594 } 1116 }
1595 1117
1596 inline void InspectorInstrumentation::scriptExecutionBlockedByCSP(ScriptExecutio nContext* context, const String& directiveText) 1118 inline void InspectorInstrumentation::scriptExecutionBlockedByCSP(ScriptExecutio nContext* context, const String& directiveText)
1597 { 1119 {
1598 #if ENABLE(INSPECTOR)
1599 if (InstrumentingAgents* instrumentingAgents = instrumentingAgentsForContext (context)) 1120 if (InstrumentingAgents* instrumentingAgents = instrumentingAgentsForContext (context))
1600 scriptExecutionBlockedByCSPImpl(instrumentingAgents, directiveText); 1121 scriptExecutionBlockedByCSPImpl(instrumentingAgents, directiveText);
1601 #else
1602 UNUSED_PARAM(context);
1603 UNUSED_PARAM(directiveText);
1604 #endif
1605 } 1122 }
1606 1123
1607 inline void InspectorInstrumentation::didReceiveScriptResponse(ScriptExecutionCo ntext* context, unsigned long identifier) 1124 inline void InspectorInstrumentation::didReceiveScriptResponse(ScriptExecutionCo ntext* context, unsigned long identifier)
1608 { 1125 {
1609 #if ENABLE(INSPECTOR)
1610 if (InstrumentingAgents* instrumentingAgents = instrumentingAgentsForContext (context)) 1126 if (InstrumentingAgents* instrumentingAgents = instrumentingAgentsForContext (context))
1611 didReceiveScriptResponseImpl(instrumentingAgents, identifier); 1127 didReceiveScriptResponseImpl(instrumentingAgents, identifier);
1612 #else
1613 UNUSED_PARAM(context);
1614 UNUSED_PARAM(identifier);
1615 #endif
1616 } 1128 }
1617 1129
1618 inline void InspectorInstrumentation::domContentLoadedEventFired(Frame* frame) 1130 inline void InspectorInstrumentation::domContentLoadedEventFired(Frame* frame)
1619 { 1131 {
1620 #if ENABLE(INSPECTOR)
1621 if (InstrumentingAgents* instrumentingAgents = instrumentingAgentsForFrame(f rame)) 1132 if (InstrumentingAgents* instrumentingAgents = instrumentingAgentsForFrame(f rame))
1622 domContentLoadedEventFiredImpl(instrumentingAgents, frame); 1133 domContentLoadedEventFiredImpl(instrumentingAgents, frame);
1623 #else
1624 UNUSED_PARAM(frame);
1625 #endif
1626 } 1134 }
1627 1135
1628 inline void InspectorInstrumentation::loadEventFired(Frame* frame) 1136 inline void InspectorInstrumentation::loadEventFired(Frame* frame)
1629 { 1137 {
1630 #if ENABLE(INSPECTOR)
1631 if (InstrumentingAgents* instrumentingAgents = instrumentingAgentsForFrame(f rame)) 1138 if (InstrumentingAgents* instrumentingAgents = instrumentingAgentsForFrame(f rame))
1632 loadEventFiredImpl(instrumentingAgents, frame); 1139 loadEventFiredImpl(instrumentingAgents, frame);
1633 #else
1634 UNUSED_PARAM(frame);
1635 #endif
1636 } 1140 }
1637 1141
1638 inline void InspectorInstrumentation::frameDetachedFromParent(Frame* frame) 1142 inline void InspectorInstrumentation::frameDetachedFromParent(Frame* frame)
1639 { 1143 {
1640 #if ENABLE(INSPECTOR)
1641 if (InstrumentingAgents* instrumentingAgents = instrumentingAgentsForFrame(f rame)) 1144 if (InstrumentingAgents* instrumentingAgents = instrumentingAgentsForFrame(f rame))
1642 frameDetachedFromParentImpl(instrumentingAgents, frame); 1145 frameDetachedFromParentImpl(instrumentingAgents, frame);
1643 #else
1644 UNUSED_PARAM(frame);
1645 #endif
1646 } 1146 }
1647 1147
1648 inline void InspectorInstrumentation::didCommitLoad(Frame* frame, DocumentLoader * loader) 1148 inline void InspectorInstrumentation::didCommitLoad(Frame* frame, DocumentLoader * loader)
1649 { 1149 {
1650 #if ENABLE(INSPECTOR)
1651 if (InstrumentingAgents* instrumentingAgents = instrumentingAgentsForFrame(f rame)) 1150 if (InstrumentingAgents* instrumentingAgents = instrumentingAgentsForFrame(f rame))
1652 didCommitLoadImpl(instrumentingAgents, frame->page(), loader); 1151 didCommitLoadImpl(instrumentingAgents, frame->page(), loader);
1653 #else
1654 UNUSED_PARAM(frame);
1655 UNUSED_PARAM(loader);
1656 #endif
1657 } 1152 }
1658 1153
1659 inline void InspectorInstrumentation::frameDocumentUpdated(Frame* frame) 1154 inline void InspectorInstrumentation::frameDocumentUpdated(Frame* frame)
1660 { 1155 {
1661 #if ENABLE(INSPECTOR)
1662 FAST_RETURN_IF_NO_FRONTENDS(void()); 1156 FAST_RETURN_IF_NO_FRONTENDS(void());
1663 if (InstrumentingAgents* instrumentingAgents = instrumentingAgentsForFrame(f rame)) 1157 if (InstrumentingAgents* instrumentingAgents = instrumentingAgentsForFrame(f rame))
1664 frameDocumentUpdatedImpl(instrumentingAgents, frame); 1158 frameDocumentUpdatedImpl(instrumentingAgents, frame);
1665 #else
1666 UNUSED_PARAM(frame);
1667 #endif
1668 } 1159 }
1669 1160
1670 inline void InspectorInstrumentation::loaderDetachedFromFrame(Frame* frame, Docu mentLoader* loader) 1161 inline void InspectorInstrumentation::loaderDetachedFromFrame(Frame* frame, Docu mentLoader* loader)
1671 { 1162 {
1672 #if ENABLE(INSPECTOR)
1673 if (InstrumentingAgents* instrumentingAgents = instrumentingAgentsForFrame(f rame)) 1163 if (InstrumentingAgents* instrumentingAgents = instrumentingAgentsForFrame(f rame))
1674 loaderDetachedFromFrameImpl(instrumentingAgents, loader); 1164 loaderDetachedFromFrameImpl(instrumentingAgents, loader);
1675 #else
1676 UNUSED_PARAM(frame);
1677 UNUSED_PARAM(loader);
1678 #endif
1679 } 1165 }
1680 1166
1681 inline void InspectorInstrumentation::frameStartedLoading(Frame* frame) 1167 inline void InspectorInstrumentation::frameStartedLoading(Frame* frame)
1682 { 1168 {
1683 #if ENABLE(INSPECTOR)
1684 if (InstrumentingAgents* instrumentingAgents = instrumentingAgentsForFrame(f rame)) 1169 if (InstrumentingAgents* instrumentingAgents = instrumentingAgentsForFrame(f rame))
1685 frameStartedLoadingImpl(instrumentingAgents, frame); 1170 frameStartedLoadingImpl(instrumentingAgents, frame);
1686 #else
1687 UNUSED_PARAM(frame);
1688 #endif
1689 } 1171 }
1690 1172
1691 inline void InspectorInstrumentation::frameStoppedLoading(Frame* frame) 1173 inline void InspectorInstrumentation::frameStoppedLoading(Frame* frame)
1692 { 1174 {
1693 #if ENABLE(INSPECTOR)
1694 if (InstrumentingAgents* instrumentingAgents = instrumentingAgentsForFrame(f rame)) 1175 if (InstrumentingAgents* instrumentingAgents = instrumentingAgentsForFrame(f rame))
1695 frameStoppedLoadingImpl(instrumentingAgents, frame); 1176 frameStoppedLoadingImpl(instrumentingAgents, frame);
1696 #else
1697 UNUSED_PARAM(frame);
1698 #endif
1699 } 1177 }
1700 1178
1701 inline void InspectorInstrumentation::frameScheduledNavigation(Frame* frame, dou ble delay) 1179 inline void InspectorInstrumentation::frameScheduledNavigation(Frame* frame, dou ble delay)
1702 { 1180 {
1703 #if ENABLE(INSPECTOR)
1704 if (InstrumentingAgents* instrumentingAgents = instrumentingAgentsForFrame(f rame)) 1181 if (InstrumentingAgents* instrumentingAgents = instrumentingAgentsForFrame(f rame))
1705 frameScheduledNavigationImpl(instrumentingAgents, frame, delay); 1182 frameScheduledNavigationImpl(instrumentingAgents, frame, delay);
1706 #else
1707 UNUSED_PARAM(frame);
1708 UNUSED_PARAM(delay);
1709 #endif
1710 } 1183 }
1711 1184
1712 inline void InspectorInstrumentation::frameClearedScheduledNavigation(Frame* fra me) 1185 inline void InspectorInstrumentation::frameClearedScheduledNavigation(Frame* fra me)
1713 { 1186 {
1714 #if ENABLE(INSPECTOR)
1715 if (InstrumentingAgents* instrumentingAgents = instrumentingAgentsForFrame(f rame)) 1187 if (InstrumentingAgents* instrumentingAgents = instrumentingAgentsForFrame(f rame))
1716 frameClearedScheduledNavigationImpl(instrumentingAgents, frame); 1188 frameClearedScheduledNavigationImpl(instrumentingAgents, frame);
1717 #else
1718 UNUSED_PARAM(frame);
1719 #endif
1720 } 1189 }
1721 1190
1722 inline InspectorInstrumentationCookie InspectorInstrumentation::willRunJavaScrip tDialog(Page* page, const String& message) 1191 inline InspectorInstrumentationCookie InspectorInstrumentation::willRunJavaScrip tDialog(Page* page, const String& message)
1723 { 1192 {
1724 #if ENABLE(INSPECTOR)
1725 FAST_RETURN_IF_NO_FRONTENDS(InspectorInstrumentationCookie()); 1193 FAST_RETURN_IF_NO_FRONTENDS(InspectorInstrumentationCookie());
1726 if (InstrumentingAgents* instrumentingAgents = instrumentingAgentsForPage(pa ge)) 1194 if (InstrumentingAgents* instrumentingAgents = instrumentingAgentsForPage(pa ge))
1727 return willRunJavaScriptDialogImpl(instrumentingAgents, message); 1195 return willRunJavaScriptDialogImpl(instrumentingAgents, message);
1728 #else
1729 UNUSED_PARAM(page);
1730 UNUSED_PARAM(message);
1731 #endif
1732 return InspectorInstrumentationCookie(); 1196 return InspectorInstrumentationCookie();
1733 } 1197 }
1734 1198
1735 inline void InspectorInstrumentation::didRunJavaScriptDialog(const InspectorInst rumentationCookie& cookie) 1199 inline void InspectorInstrumentation::didRunJavaScriptDialog(const InspectorInst rumentationCookie& cookie)
1736 { 1200 {
1737 #if ENABLE(INSPECTOR)
1738 FAST_RETURN_IF_NO_FRONTENDS(void()); 1201 FAST_RETURN_IF_NO_FRONTENDS(void());
1739 if (cookie.isValid()) 1202 if (cookie.isValid())
1740 didRunJavaScriptDialogImpl(cookie); 1203 didRunJavaScriptDialogImpl(cookie);
1741 #else
1742 UNUSED_PARAM(cookie);
1743 #endif
1744 } 1204 }
1745 1205
1746 inline void InspectorInstrumentation::willDestroyCachedResource(CachedResource* cachedResource) 1206 inline void InspectorInstrumentation::willDestroyCachedResource(CachedResource* cachedResource)
1747 { 1207 {
1748 #if ENABLE(INSPECTOR)
1749 FAST_RETURN_IF_NO_FRONTENDS(void()); 1208 FAST_RETURN_IF_NO_FRONTENDS(void());
1750 willDestroyCachedResourceImpl(cachedResource); 1209 willDestroyCachedResourceImpl(cachedResource);
1751 #else
1752 UNUSED_PARAM(cachedResource);
1753 #endif
1754 } 1210 }
1755 1211
1756 inline InspectorInstrumentationCookie InspectorInstrumentation::willWriteHTML(Do cument* document, unsigned startLine) 1212 inline InspectorInstrumentationCookie InspectorInstrumentation::willWriteHTML(Do cument* document, unsigned startLine)
1757 { 1213 {
1758 #if ENABLE(INSPECTOR)
1759 FAST_RETURN_IF_NO_FRONTENDS(InspectorInstrumentationCookie()); 1214 FAST_RETURN_IF_NO_FRONTENDS(InspectorInstrumentationCookie());
1760 if (InstrumentingAgents* instrumentingAgents = instrumentingAgentsForDocumen t(document)) 1215 if (InstrumentingAgents* instrumentingAgents = instrumentingAgentsForDocumen t(document))
1761 return willWriteHTMLImpl(instrumentingAgents, startLine, document->frame ()); 1216 return willWriteHTMLImpl(instrumentingAgents, startLine, document->frame ());
1762 #else
1763 UNUSED_PARAM(document);
1764 UNUSED_PARAM(startLine);
1765 #endif
1766 return InspectorInstrumentationCookie(); 1217 return InspectorInstrumentationCookie();
1767 } 1218 }
1768 1219
1769 inline void InspectorInstrumentation::didWriteHTML(const InspectorInstrumentatio nCookie& cookie, unsigned endLine) 1220 inline void InspectorInstrumentation::didWriteHTML(const InspectorInstrumentatio nCookie& cookie, unsigned endLine)
1770 { 1221 {
1771 #if ENABLE(INSPECTOR)
1772 FAST_RETURN_IF_NO_FRONTENDS(void()); 1222 FAST_RETURN_IF_NO_FRONTENDS(void());
1773 if (cookie.isValid()) 1223 if (cookie.isValid())
1774 didWriteHTMLImpl(cookie, endLine); 1224 didWriteHTMLImpl(cookie, endLine);
1775 #else
1776 UNUSED_PARAM(cookie);
1777 UNUSED_PARAM(endLine);
1778 #endif
1779 } 1225 }
1780 1226
1781 inline void InspectorInstrumentation::didDispatchDOMStorageEvent(const String& k ey, const String& oldValue, const String& newValue, StorageType storageType, Sec urityOrigin* securityOrigin, Page* page) 1227 inline void InspectorInstrumentation::didDispatchDOMStorageEvent(const String& k ey, const String& oldValue, const String& newValue, StorageType storageType, Sec urityOrigin* securityOrigin, Page* page)
1782 { 1228 {
1783 #if ENABLE(INSPECTOR)
1784 FAST_RETURN_IF_NO_FRONTENDS(void()); 1229 FAST_RETURN_IF_NO_FRONTENDS(void());
1785 if (InstrumentingAgents* instrumentingAgents = instrumentingAgentsForPage(pa ge)) 1230 if (InstrumentingAgents* instrumentingAgents = instrumentingAgentsForPage(pa ge))
1786 didDispatchDOMStorageEventImpl(instrumentingAgents, key, oldValue, newVa lue, storageType, securityOrigin, page); 1231 didDispatchDOMStorageEventImpl(instrumentingAgents, key, oldValue, newVa lue, storageType, securityOrigin, page);
1787 #else
1788 UNUSED_PARAM(key);
1789 UNUSED_PARAM(oldValue);
1790 UNUSED_PARAM(newValue);
1791 UNUSED_PARAM(storageType);
1792 UNUSED_PARAM(securityOrigin);
1793 UNUSED_PARAM(page);
1794 #endif // ENABLE(INSPECTOR)
1795 } 1232 }
1796 1233
1797 #if ENABLE(WORKERS) 1234 #if ENABLE(WORKERS)
1798 inline bool InspectorInstrumentation::shouldPauseDedicatedWorkerOnStart(ScriptEx ecutionContext* context) 1235 inline bool InspectorInstrumentation::shouldPauseDedicatedWorkerOnStart(ScriptEx ecutionContext* context)
1799 { 1236 {
1800 #if ENABLE(INSPECTOR)
1801 FAST_RETURN_IF_NO_FRONTENDS(false); 1237 FAST_RETURN_IF_NO_FRONTENDS(false);
1802 if (InstrumentingAgents* instrumentingAgents = instrumentingAgentsForContext (context)) 1238 if (InstrumentingAgents* instrumentingAgents = instrumentingAgentsForContext (context))
1803 return shouldPauseDedicatedWorkerOnStartImpl(instrumentingAgents); 1239 return shouldPauseDedicatedWorkerOnStartImpl(instrumentingAgents);
1804 #else 1240 return false;
1805 UNUSED_PARAM(context); 1241 }
1242
1243 inline void InspectorInstrumentation::didStartWorkerContext(ScriptExecutionConte xt* context, WorkerContextProxy* proxy, const KURL& url)
1244 {
1245 if (InstrumentingAgents* instrumentingAgents = instrumentingAgentsForContext (context))
1246 didStartWorkerContextImpl(instrumentingAgents, proxy, url);
1247 }
1248
1249 inline void InspectorInstrumentation::workerContextTerminated(ScriptExecutionCon text* context, WorkerContextProxy* proxy)
1250 {
1251 if (InstrumentingAgents* instrumentingAgents = instrumentingAgentsForContext (context))
1252 workerContextTerminatedImpl(instrumentingAgents, proxy);
1253 }
1254
1806 #endif 1255 #endif
1807 return false;
1808 }
1809
1810 inline void InspectorInstrumentation::didStartWorkerContext(ScriptExecutionConte xt* context, WorkerContextProxy* proxy, const KURL& url)
1811 {
1812 #if ENABLE(INSPECTOR)
1813 if (InstrumentingAgents* instrumentingAgents = instrumentingAgentsForContext (context))
1814 didStartWorkerContextImpl(instrumentingAgents, proxy, url);
1815 #else
1816 UNUSED_PARAM(context);
1817 UNUSED_PARAM(proxy);
1818 UNUSED_PARAM(url);
1819 #endif
1820 }
1821
1822 inline void InspectorInstrumentation::workerContextTerminated(ScriptExecutionCon text* context, WorkerContextProxy* proxy)
1823 {
1824 #if ENABLE(INSPECTOR)
1825 if (InstrumentingAgents* instrumentingAgents = instrumentingAgentsForContext (context))
1826 workerContextTerminatedImpl(instrumentingAgents, proxy);
1827 #else
1828 UNUSED_PARAM(context);
1829 UNUSED_PARAM(proxy);
1830 #endif
1831 }
1832
1833 #endif
1834 1256
1835 1257
1836 #if ENABLE(WEB_SOCKETS) 1258 #if ENABLE(WEB_SOCKETS)
1837 inline void InspectorInstrumentation::didCreateWebSocket(Document* document, uns igned long identifier, const KURL& requestURL, const KURL& documentURL, const St ring& protocol) 1259 inline void InspectorInstrumentation::didCreateWebSocket(Document* document, uns igned long identifier, const KURL& requestURL, const KURL& documentURL, const St ring& protocol)
1838 { 1260 {
1839 #if ENABLE(INSPECTOR)
1840 if (InstrumentingAgents* instrumentingAgents = instrumentingAgentsForDocumen t(document)) 1261 if (InstrumentingAgents* instrumentingAgents = instrumentingAgentsForDocumen t(document))
1841 didCreateWebSocketImpl(instrumentingAgents, identifier, requestURL, docu mentURL, protocol, document); 1262 didCreateWebSocketImpl(instrumentingAgents, identifier, requestURL, docu mentURL, protocol, document);
1842 #else
1843 UNUSED_PARAM(document);
1844 UNUSED_PARAM(identifier);
1845 UNUSED_PARAM(requestURL);
1846 UNUSED_PARAM(documentURL);
1847 UNUSED_PARAM(protocol);
1848 #endif
1849 } 1263 }
1850 1264
1851 inline void InspectorInstrumentation::willSendWebSocketHandshakeRequest(Document * document, unsigned long identifier, const WebSocketHandshakeRequest& request) 1265 inline void InspectorInstrumentation::willSendWebSocketHandshakeRequest(Document * document, unsigned long identifier, const WebSocketHandshakeRequest& request)
1852 { 1266 {
1853 #if ENABLE(INSPECTOR)
1854 if (InstrumentingAgents* instrumentingAgents = instrumentingAgentsForDocumen t(document)) 1267 if (InstrumentingAgents* instrumentingAgents = instrumentingAgentsForDocumen t(document))
1855 willSendWebSocketHandshakeRequestImpl(instrumentingAgents, identifier, r equest, document); 1268 willSendWebSocketHandshakeRequestImpl(instrumentingAgents, identifier, r equest, document);
1856 #else
1857 UNUSED_PARAM(document);
1858 UNUSED_PARAM(identifier);
1859 UNUSED_PARAM(request);
1860 #endif
1861 } 1269 }
1862 1270
1863 inline void InspectorInstrumentation::didReceiveWebSocketHandshakeResponse(Docum ent* document, unsigned long identifier, const WebSocketHandshakeResponse& respo nse) 1271 inline void InspectorInstrumentation::didReceiveWebSocketHandshakeResponse(Docum ent* document, unsigned long identifier, const WebSocketHandshakeResponse& respo nse)
1864 { 1272 {
1865 #if ENABLE(INSPECTOR)
1866 if (InstrumentingAgents* instrumentingAgents = instrumentingAgentsForDocumen t(document)) 1273 if (InstrumentingAgents* instrumentingAgents = instrumentingAgentsForDocumen t(document))
1867 didReceiveWebSocketHandshakeResponseImpl(instrumentingAgents, identifier , response, document); 1274 didReceiveWebSocketHandshakeResponseImpl(instrumentingAgents, identifier , response, document);
1868 #else
1869 UNUSED_PARAM(document);
1870 UNUSED_PARAM(identifier);
1871 UNUSED_PARAM(response);
1872 #endif
1873 } 1275 }
1874 1276
1875 inline void InspectorInstrumentation::didCloseWebSocket(Document* document, unsi gned long identifier) 1277 inline void InspectorInstrumentation::didCloseWebSocket(Document* document, unsi gned long identifier)
1876 { 1278 {
1877 #if ENABLE(INSPECTOR)
1878 if (InstrumentingAgents* instrumentingAgents = instrumentingAgentsForDocumen t(document)) 1279 if (InstrumentingAgents* instrumentingAgents = instrumentingAgentsForDocumen t(document))
1879 didCloseWebSocketImpl(instrumentingAgents, identifier, document); 1280 didCloseWebSocketImpl(instrumentingAgents, identifier, document);
1880 #else
1881 UNUSED_PARAM(document);
1882 UNUSED_PARAM(identifier);
1883 #endif
1884 } 1281 }
1885 inline void InspectorInstrumentation::didReceiveWebSocketFrame(Document* documen t, unsigned long identifier, const WebSocketFrame& frame) 1282 inline void InspectorInstrumentation::didReceiveWebSocketFrame(Document* documen t, unsigned long identifier, const WebSocketFrame& frame)
1886 { 1283 {
1887 #if ENABLE(INSPECTOR)
1888 if (InstrumentingAgents* instrumentingAgents = instrumentingAgentsForDocumen t(document)) 1284 if (InstrumentingAgents* instrumentingAgents = instrumentingAgentsForDocumen t(document))
1889 didReceiveWebSocketFrameImpl(instrumentingAgents, identifier, frame); 1285 didReceiveWebSocketFrameImpl(instrumentingAgents, identifier, frame);
1890 #else
1891 UNUSED_PARAM(document);
1892 UNUSED_PARAM(identifier);
1893 UNUSED_PARAM(frame);
1894 #endif
1895 } 1286 }
1896 inline void InspectorInstrumentation::didReceiveWebSocketFrameError(Document* do cument, unsigned long identifier, const String& errorMessage) 1287 inline void InspectorInstrumentation::didReceiveWebSocketFrameError(Document* do cument, unsigned long identifier, const String& errorMessage)
1897 { 1288 {
1898 #if ENABLE(INSPECTOR)
1899 if (InstrumentingAgents* instrumentingAgents = instrumentingAgentsForDocumen t(document)) 1289 if (InstrumentingAgents* instrumentingAgents = instrumentingAgentsForDocumen t(document))
1900 didReceiveWebSocketFrameErrorImpl(instrumentingAgents, identifier, error Message); 1290 didReceiveWebSocketFrameErrorImpl(instrumentingAgents, identifier, error Message);
1901 #else
1902 UNUSED_PARAM(document);
1903 UNUSED_PARAM(identifier);
1904 UNUSED_PARAM(errorMessage);
1905 #endif
1906 } 1291 }
1907 inline void InspectorInstrumentation::didSendWebSocketFrame(Document* document, unsigned long identifier, const WebSocketFrame& frame) 1292 inline void InspectorInstrumentation::didSendWebSocketFrame(Document* document, unsigned long identifier, const WebSocketFrame& frame)
1908 { 1293 {
1909 #if ENABLE(INSPECTOR)
1910 if (InstrumentingAgents* instrumentingAgents = instrumentingAgentsForDocumen t(document)) 1294 if (InstrumentingAgents* instrumentingAgents = instrumentingAgentsForDocumen t(document))
1911 didSendWebSocketFrameImpl(instrumentingAgents, identifier, frame); 1295 didSendWebSocketFrameImpl(instrumentingAgents, identifier, frame);
1912 #else
1913 UNUSED_PARAM(document);
1914 UNUSED_PARAM(identifier);
1915 UNUSED_PARAM(frame);
1916 #endif
1917 } 1296 }
1918 #endif 1297 #endif
1919 1298
1920 inline void InspectorInstrumentation::networkStateChanged(Page* page) 1299 inline void InspectorInstrumentation::networkStateChanged(Page* page)
1921 { 1300 {
1922 #if ENABLE(INSPECTOR)
1923 FAST_RETURN_IF_NO_FRONTENDS(void()); 1301 FAST_RETURN_IF_NO_FRONTENDS(void());
1924 if (InstrumentingAgents* instrumentingAgents = instrumentingAgentsForPage(pa ge)) 1302 if (InstrumentingAgents* instrumentingAgents = instrumentingAgentsForPage(pa ge))
1925 networkStateChangedImpl(instrumentingAgents); 1303 networkStateChangedImpl(instrumentingAgents);
1926 #else
1927 UNUSED_PARAM(page);
1928 #endif
1929 } 1304 }
1930 1305
1931 inline void InspectorInstrumentation::updateApplicationCacheStatus(Frame* frame) 1306 inline void InspectorInstrumentation::updateApplicationCacheStatus(Frame* frame)
1932 { 1307 {
1933 #if ENABLE(INSPECTOR)
1934 FAST_RETURN_IF_NO_FRONTENDS(void()); 1308 FAST_RETURN_IF_NO_FRONTENDS(void());
1935 if (InstrumentingAgents* instrumentingAgents = instrumentingAgentsForFrame(f rame)) 1309 if (InstrumentingAgents* instrumentingAgents = instrumentingAgentsForFrame(f rame))
1936 updateApplicationCacheStatusImpl(instrumentingAgents, frame); 1310 updateApplicationCacheStatusImpl(instrumentingAgents, frame);
1937 #else
1938 UNUSED_PARAM(frame);
1939 #endif
1940 } 1311 }
1941 1312
1942 inline void InspectorInstrumentation::didRequestAnimationFrame(Document* documen t, int callbackId) 1313 inline void InspectorInstrumentation::didRequestAnimationFrame(Document* documen t, int callbackId)
1943 { 1314 {
1944 #if ENABLE(INSPECTOR)
1945 if (InstrumentingAgents* instrumentingAgents = instrumentingAgentsForDocumen t(document)) 1315 if (InstrumentingAgents* instrumentingAgents = instrumentingAgentsForDocumen t(document))
1946 didRequestAnimationFrameImpl(instrumentingAgents, callbackId, document-> frame()); 1316 didRequestAnimationFrameImpl(instrumentingAgents, callbackId, document-> frame());
1947 #else
1948 UNUSED_PARAM(document);
1949 UNUSED_PARAM(callbackId);
1950 #endif
1951 } 1317 }
1952 1318
1953 inline void InspectorInstrumentation::didCancelAnimationFrame(Document* document , int callbackId) 1319 inline void InspectorInstrumentation::didCancelAnimationFrame(Document* document , int callbackId)
1954 { 1320 {
1955 #if ENABLE(INSPECTOR)
1956 if (InstrumentingAgents* instrumentingAgents = instrumentingAgentsForDocumen t(document)) 1321 if (InstrumentingAgents* instrumentingAgents = instrumentingAgentsForDocumen t(document))
1957 didCancelAnimationFrameImpl(instrumentingAgents, callbackId, document->f rame()); 1322 didCancelAnimationFrameImpl(instrumentingAgents, callbackId, document->f rame());
1958 #else
1959 UNUSED_PARAM(document);
1960 UNUSED_PARAM(callbackId);
1961 #endif
1962 } 1323 }
1963 1324
1964 inline InspectorInstrumentationCookie InspectorInstrumentation::willFireAnimatio nFrame(Document* document, int callbackId) 1325 inline InspectorInstrumentationCookie InspectorInstrumentation::willFireAnimatio nFrame(Document* document, int callbackId)
1965 { 1326 {
1966 #if ENABLE(INSPECTOR)
1967 if (InstrumentingAgents* instrumentingAgents = instrumentingAgentsForDocumen t(document)) 1327 if (InstrumentingAgents* instrumentingAgents = instrumentingAgentsForDocumen t(document))
1968 return willFireAnimationFrameImpl(instrumentingAgents, callbackId, docum ent->frame()); 1328 return willFireAnimationFrameImpl(instrumentingAgents, callbackId, docum ent->frame());
1969 #else
1970 UNUSED_PARAM(document);
1971 UNUSED_PARAM(callbackId);
1972 #endif
1973 return InspectorInstrumentationCookie(); 1329 return InspectorInstrumentationCookie();
1974 } 1330 }
1975 1331
1976 inline void InspectorInstrumentation::didFireAnimationFrame(const InspectorInstr umentationCookie& cookie) 1332 inline void InspectorInstrumentation::didFireAnimationFrame(const InspectorInstr umentationCookie& cookie)
1977 { 1333 {
1978 #if ENABLE(INSPECTOR)
1979 FAST_RETURN_IF_NO_FRONTENDS(void()); 1334 FAST_RETURN_IF_NO_FRONTENDS(void());
1980 if (cookie.isValid()) 1335 if (cookie.isValid())
1981 didFireAnimationFrameImpl(cookie); 1336 didFireAnimationFrameImpl(cookie);
1982 #else
1983 UNUSED_PARAM(cookie);
1984 #endif
1985 } 1337 }
1986 1338
1987 #if ENABLE(GEOLOCATION) 1339 #if ENABLE(GEOLOCATION)
1988 inline GeolocationPosition* InspectorInstrumentation::overrideGeolocationPositio n(Page* page, GeolocationPosition* position) 1340 inline GeolocationPosition* InspectorInstrumentation::overrideGeolocationPositio n(Page* page, GeolocationPosition* position)
1989 { 1341 {
1990 #if ENABLE(INSPECTOR)
1991 FAST_RETURN_IF_NO_FRONTENDS(position); 1342 FAST_RETURN_IF_NO_FRONTENDS(position);
1992 if (InstrumentingAgents* instrumentingAgents = instrumentingAgentsForPage(pa ge)) 1343 if (InstrumentingAgents* instrumentingAgents = instrumentingAgentsForPage(pa ge))
1993 return overrideGeolocationPositionImpl(instrumentingAgents, position); 1344 return overrideGeolocationPositionImpl(instrumentingAgents, position);
1994 #else
1995 UNUSED_PARAM(page);
1996 #endif
1997 return position; 1345 return position;
1998 } 1346 }
1999 #endif 1347 #endif
2000 1348
2001 inline DeviceOrientationData* InspectorInstrumentation::overrideDeviceOrientatio n(Page* page, DeviceOrientationData* deviceOrientation) 1349 inline DeviceOrientationData* InspectorInstrumentation::overrideDeviceOrientatio n(Page* page, DeviceOrientationData* deviceOrientation)
2002 { 1350 {
2003 #if ENABLE(INSPECTOR)
2004 FAST_RETURN_IF_NO_FRONTENDS(deviceOrientation); 1351 FAST_RETURN_IF_NO_FRONTENDS(deviceOrientation);
2005 if (InstrumentingAgents* instrumentingAgents = instrumentingAgentsForPage(pa ge)) 1352 if (InstrumentingAgents* instrumentingAgents = instrumentingAgentsForPage(pa ge))
2006 return overrideDeviceOrientationImpl(instrumentingAgents, deviceOrientat ion); 1353 return overrideDeviceOrientationImpl(instrumentingAgents, deviceOrientat ion);
2007 #else
2008 UNUSED_PARAM(page);
2009 #endif
2010 return deviceOrientation; 1354 return deviceOrientation;
2011 } 1355 }
2012 1356
2013 #if USE(ACCELERATED_COMPOSITING) 1357 #if USE(ACCELERATED_COMPOSITING)
2014 inline void InspectorInstrumentation::layerTreeDidChange(Page* page) 1358 inline void InspectorInstrumentation::layerTreeDidChange(Page* page)
2015 { 1359 {
2016 #if ENABLE(INSPECTOR)
2017 if (InstrumentingAgents* instrumentingAgents = instrumentingAgentsForPage(pa ge)) 1360 if (InstrumentingAgents* instrumentingAgents = instrumentingAgentsForPage(pa ge))
2018 layerTreeDidChangeImpl(instrumentingAgents); 1361 layerTreeDidChangeImpl(instrumentingAgents);
2019 #else
2020 UNUSED_PARAM(page);
2021 #endif
2022 } 1362 }
2023 1363
2024 inline void InspectorInstrumentation::renderLayerDestroyed(Page* page, const Ren derLayer* renderLayer) 1364 inline void InspectorInstrumentation::renderLayerDestroyed(Page* page, const Ren derLayer* renderLayer)
2025 { 1365 {
2026 #if ENABLE(INSPECTOR)
2027 if (InstrumentingAgents* instrumentingAgents = instrumentingAgentsForPage(pa ge)) 1366 if (InstrumentingAgents* instrumentingAgents = instrumentingAgentsForPage(pa ge))
2028 renderLayerDestroyedImpl(instrumentingAgents, renderLayer); 1367 renderLayerDestroyedImpl(instrumentingAgents, renderLayer);
2029 #else
2030 UNUSED_PARAM(page);
2031 UNUSED_PARAM(renderLayer);
2032 #endif
2033 } 1368 }
2034 1369
2035 inline void InspectorInstrumentation::pseudoElementDestroyed(Page* page, PseudoE lement* pseudoElement) 1370 inline void InspectorInstrumentation::pseudoElementDestroyed(Page* page, PseudoE lement* pseudoElement)
2036 { 1371 {
2037 #if ENABLE(INSPECTOR)
2038 if (InstrumentingAgents* instrumentingAgents = instrumentingAgentsForPage(pa ge)) 1372 if (InstrumentingAgents* instrumentingAgents = instrumentingAgentsForPage(pa ge))
2039 pseudoElementDestroyedImpl(instrumentingAgents, pseudoElement); 1373 pseudoElementDestroyedImpl(instrumentingAgents, pseudoElement);
2040 #else
2041 UNUSED_PARAM(page);
2042 UNUSED_PARAM(pseudoElement);
2043 #endif
2044 } 1374 }
2045 #endif 1375 #endif
2046 1376
2047 #if ENABLE(INSPECTOR)
2048 inline bool InspectorInstrumentation::collectingHTMLParseErrors(Page* page) 1377 inline bool InspectorInstrumentation::collectingHTMLParseErrors(Page* page)
2049 { 1378 {
2050 FAST_RETURN_IF_NO_FRONTENDS(false); 1379 FAST_RETURN_IF_NO_FRONTENDS(false);
2051 if (InstrumentingAgents* instrumentingAgents = instrumentingAgentsForPage(pa ge)) 1380 if (InstrumentingAgents* instrumentingAgents = instrumentingAgentsForPage(pa ge))
2052 return collectingHTMLParseErrors(instrumentingAgents); 1381 return collectingHTMLParseErrors(instrumentingAgents);
2053 return false; 1382 return false;
2054 } 1383 }
2055 1384
2056 inline InstrumentingAgents* InspectorInstrumentation::instrumentingAgentsForCont ext(ScriptExecutionContext* context) 1385 inline InstrumentingAgents* InspectorInstrumentation::instrumentingAgentsForCont ext(ScriptExecutionContext* context)
2057 { 1386 {
(...skipping 18 matching lines...) Expand all
2076 inline InstrumentingAgents* InspectorInstrumentation::instrumentingAgentsForDocu ment(Document* document) 1405 inline InstrumentingAgents* InspectorInstrumentation::instrumentingAgentsForDocu ment(Document* document)
2077 { 1406 {
2078 if (document) { 1407 if (document) {
2079 Page* page = document->page(); 1408 Page* page = document->page();
2080 if (!page && document->templateDocumentHost()) 1409 if (!page && document->templateDocumentHost())
2081 page = document->templateDocumentHost()->page(); 1410 page = document->templateDocumentHost()->page();
2082 return instrumentingAgentsForPage(page); 1411 return instrumentingAgentsForPage(page);
2083 } 1412 }
2084 return 0; 1413 return 0;
2085 } 1414 }
2086 #endif
2087 1415
2088 } // namespace WebCore 1416 } // namespace WebCore
2089 1417
2090 #endif // !defined(InspectorInstrumentation_h) 1418 #endif // !defined(InspectorInstrumentation_h)
OLDNEW
« no previous file with comments | « Source/WebCore/inspector/InspectorInputAgent.cpp ('k') | Source/WebCore/inspector/InspectorInstrumentation.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698