| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2013 Google Inc. All rights reserved. | 2 * Copyright (C) 2013 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 268 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 279 | 279 |
| 280 [Page, Inline=FastReturn] | 280 [Page, Inline=FastReturn] |
| 281 void applyEmulatedMedia(LocalFrame*, String* media); | 281 void applyEmulatedMedia(LocalFrame*, String* media); |
| 282 | 282 |
| 283 [Timeline, Resource] | 283 [Timeline, Resource] |
| 284 void willSendRequest(LocalFrame*, unsigned long identifier, DocumentLoader*,
ResourceRequest&, const ResourceResponse& redirectResponse, const FetchInitiato
rInfo&); | 284 void willSendRequest(LocalFrame*, unsigned long identifier, DocumentLoader*,
ResourceRequest&, const ResourceResponse& redirectResponse, const FetchInitiato
rInfo&); |
| 285 | 285 |
| 286 [Resource] | 286 [Resource] |
| 287 void markResourceAsCached(Page*, unsigned long identifier); | 287 void markResourceAsCached(Page*, unsigned long identifier); |
| 288 | 288 |
| 289 [Timeline, Resource, Console] // Console should come AFTER Resource notifica
tion, front-end relies on this. | 289 [Timeline, Resource] |
| 290 void didReceiveResourceResponse([Keep] LocalFrame*, unsigned long identifier
, DocumentLoader*, const ResourceResponse&, ResourceLoader*); | 290 void didReceiveResourceResponse([Keep] LocalFrame*, unsigned long identifier
, DocumentLoader*, const ResourceResponse&, ResourceLoader*); |
| 291 | 291 |
| 292 [Inline=Forward] | 292 [Inline=Forward] |
| 293 void continueAfterXFrameOptionsDenied(LocalFrame* frame, DocumentLoader* loa
der, unsigned long identifier, const ResourceResponse& r); | 293 void continueAfterXFrameOptionsDenied(LocalFrame* frame, DocumentLoader* loa
der, unsigned long identifier, const ResourceResponse& r); |
| 294 | 294 |
| 295 [Inline=Forward] | 295 [Inline=Forward] |
| 296 void continueWithPolicyIgnore(LocalFrame* frame, DocumentLoader* loader, uns
igned long identifier, const ResourceResponse& r); | 296 void continueWithPolicyIgnore(LocalFrame* frame, DocumentLoader* loader, uns
igned long identifier, const ResourceResponse& r); |
| 297 | 297 |
| 298 [Timeline, Resource, Inline=FastReturn] | 298 [Timeline, Resource, Inline=FastReturn] |
| 299 void didReceiveData([Keep] LocalFrame*, unsigned long identifier, const char
* data, int dataLength, int encodedDataLength); | 299 void didReceiveData([Keep] LocalFrame*, unsigned long identifier, const char
* data, int dataLength, int encodedDataLength); |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 333 | 333 |
| 334 [Timeline, Page] | 334 [Timeline, Page] |
| 335 void loadEventFired([Keep] LocalFrame*); | 335 void loadEventFired([Keep] LocalFrame*); |
| 336 | 336 |
| 337 [Page] | 337 [Page] |
| 338 void frameAttachedToParent([Keep] LocalFrame*); | 338 void frameAttachedToParent([Keep] LocalFrame*); |
| 339 | 339 |
| 340 [Canvas, Page] | 340 [Canvas, Page] |
| 341 void frameDetachedFromParent([Keep] LocalFrame*); | 341 void frameDetachedFromParent([Keep] LocalFrame*); |
| 342 | 342 |
| 343 [Console, Resource, DOM, Canvas, Page, PageDebugger] | 343 [Resource, DOM, Canvas, Page, PageDebugger] |
| 344 void didCommitLoad([Keep] LocalFrame*, DocumentLoader*); | 344 void didCommitLoad([Keep] LocalFrame*, DocumentLoader*); |
| 345 | 345 |
| 346 [DOM, Inline=FastReturn] | 346 [DOM, Inline=FastReturn] |
| 347 void frameDocumentUpdated([Keep] LocalFrame*); | 347 void frameDocumentUpdated([Keep] LocalFrame*); |
| 348 | 348 |
| 349 [Page] | 349 [Page] |
| 350 void loaderDetachedFromFrame(LocalFrame*, DocumentLoader*); | 350 void loaderDetachedFromFrame(LocalFrame*, DocumentLoader*); |
| 351 | 351 |
| 352 [Page] | 352 [Page] |
| 353 void frameStartedLoading([Keep] LocalFrame*); | 353 void frameStartedLoading([Keep] LocalFrame*); |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 385 [DOMDebugger, Debugger, Timeline] | 385 [DOMDebugger, Debugger, Timeline] |
| 386 InspectorInstrumentationCookie willFireAnimationFrame([Keep] Document*, int
callbackId); | 386 InspectorInstrumentationCookie willFireAnimationFrame([Keep] Document*, int
callbackId); |
| 387 | 387 |
| 388 [Timeline, Debugger, Inline=FastReturn] | 388 [Timeline, Debugger, Inline=FastReturn] |
| 389 void didFireAnimationFrame(const InspectorInstrumentationCookie&); | 389 void didFireAnimationFrame(const InspectorInstrumentationCookie&); |
| 390 | 390 |
| 391 [DOMStorage, Inline=FastReturn] | 391 [DOMStorage, Inline=FastReturn] |
| 392 void didDispatchDOMStorageEvent(Page* page, const String& key, const String&
oldValue, const String& newValue, StorageType storageType, SecurityOrigin* secu
rityOrigin); | 392 void didDispatchDOMStorageEvent(Page* page, const String& key, const String&
oldValue, const String& newValue, StorageType storageType, SecurityOrigin* secu
rityOrigin); |
| 393 | 393 |
| 394 [Worker] | 394 [Worker] |
| 395 void didStartWorkerGlobalScope(ExecutionContext*, WorkerGlobalScopeProxy* pr
oxy, const KURL& url); | 395 void didStartWorker(ExecutionContext*, WorkerInspectorProxy* proxy, const KU
RL& url); |
| 396 |
| 397 [Worker] |
| 398 void workerTerminated(ExecutionContext*, WorkerInspectorProxy* proxy); |
| 396 | 399 |
| 397 [WorkerRuntime] | 400 [WorkerRuntime] |
| 398 void willEvaluateWorkerScript([Keep] WorkerGlobalScope* context, int workerT
hreadStartMode); | 401 void willEvaluateWorkerScript([Keep] WorkerGlobalScope* context, int workerT
hreadStartMode); |
| 399 | 402 |
| 400 [Worker] | |
| 401 void workerGlobalScopeTerminated(ExecutionContext*, WorkerGlobalScopeProxy*
proxy); | |
| 402 | |
| 403 [Profiler, Timeline] | 403 [Profiler, Timeline] |
| 404 void willProcessTask(WorkerGlobalScope* context); | 404 void willProcessTask(WorkerGlobalScope* context); |
| 405 | 405 |
| 406 [Profiler, Timeline] | 406 [Profiler, Timeline] |
| 407 void didProcessTask(WorkerGlobalScope* context); | 407 void didProcessTask(WorkerGlobalScope* context); |
| 408 | 408 |
| 409 [Profiler] | 409 [Profiler] |
| 410 void willEnterNestedRunLoop(WorkerGlobalScope* context); | 410 void willEnterNestedRunLoop(WorkerGlobalScope* context); |
| 411 | 411 |
| 412 [Profiler] | 412 [Profiler] |
| (...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 473 [Debugger, Inline=FastReturn] | 473 [Debugger, Inline=FastReturn] |
| 474 void traceAsyncCallbackCompleted(const InspectorInstrumentationCookie&); | 474 void traceAsyncCallbackCompleted(const InspectorInstrumentationCookie&); |
| 475 } | 475 } |
| 476 | 476 |
| 477 interface InspectorConsoleInstrumentation { | 477 interface InspectorConsoleInstrumentation { |
| 478 | 478 |
| 479 #include "core/inspector/ScriptArguments.h" | 479 #include "core/inspector/ScriptArguments.h" |
| 480 | 480 |
| 481 class ConsoleMessage; | 481 class ConsoleMessage; |
| 482 | 482 |
| 483 // Use the same implementation as above as a similar method dispatched on Pa
ge. | 483 [Console, Debugger] |
| 484 [Console] | |
| 485 void addMessageToConsole(ExecutionContext* context, ConsoleMessage* consoleM
essage); | 484 void addMessageToConsole(ExecutionContext* context, ConsoleMessage* consoleM
essage); |
| 486 | 485 |
| 487 [Console, Debugger] | 486 [Timeline] |
| 488 void addConsoleAPIMessageToConsole(ExecutionContext* context, MessageType ty
pe, MessageLevel level, const String& message, ScriptState* state, PassRefPtrWil
lBeRawPtr<ScriptArguments> arguments, unsigned long requestIdentifier = 0); | |
| 489 | |
| 490 [Console] | |
| 491 void consoleCount(ExecutionContext* context, ScriptState* state, PassRefPtrW
illBeRawPtr<ScriptArguments> arguments); | |
| 492 | |
| 493 [Timeline, Console] | |
| 494 void consoleTime([Keep] ExecutionContext* context, const String& title); | 487 void consoleTime([Keep] ExecutionContext* context, const String& title); |
| 495 | 488 |
| 496 [Console, Timeline] | 489 [Timeline] |
| 497 void consoleTimeEnd([Keep] ExecutionContext* context, const String& title, S
criptState* state); | 490 void consoleTimeEnd([Keep] ExecutionContext* context, const String& title, S
criptState* state); |
| 498 | 491 |
| 499 [Timeline, Inline=FastReturn] | 492 [Timeline, Inline=FastReturn] |
| 500 void consoleTimeStamp([Keep] ExecutionContext* context, const String& title)
; | 493 void consoleTimeStamp([Keep] ExecutionContext* context, const String& title)
; |
| 501 | 494 |
| 502 [Console, Inline=FastReturn] | 495 [Console, Inline=FastReturn] |
| 503 void consoleTimeline([Keep] ExecutionContext* context, const String& title,
ScriptState* state); | 496 void consoleTimeline([Keep] ExecutionContext* context, const String& title,
ScriptState* state); |
| 504 | 497 |
| 505 [Console, Inline=FastReturn] | 498 [Console, Inline=FastReturn] |
| 506 void consoleTimelineEnd([Keep] ExecutionContext* context, const String& titl
e, ScriptState* state); | 499 void consoleTimelineEnd([Keep] ExecutionContext* context, const String& titl
e, ScriptState* state); |
| 507 | 500 |
| 508 [Profiler, Inline=FastReturn] | 501 [Profiler, Inline=FastReturn] |
| 509 void consoleProfile([Keep] ExecutionContext* context, const String& title); | 502 void consoleProfile([Keep] ExecutionContext* context, const String& title); |
| 510 | 503 |
| 511 [Profiler, Inline=FastReturn] | 504 [Profiler, Inline=FastReturn] |
| 512 void consoleProfileEnd(ExecutionContext* context, const String& title); | 505 void consoleProfileEnd(ExecutionContext* context, const String& title); |
| 513 | 506 |
| 514 //FIXME: remove when we move console message storage from InspectorConsoleAg
ent to FrameConsole | |
| 515 [Console] | 507 [Console] |
| 516 void adoptWorkerConsoleMessages(ExecutionContext* context, WorkerGlobalScope
Proxy* proxy); | 508 void consoleMessagesCleared(ExecutionContext* context); |
| 517 } | 509 } |
| 518 | 510 |
| 519 interface InspectorOverrides { | 511 interface InspectorOverrides { |
| 520 [CSS, Inline=FastReturn] | 512 [CSS, Inline=FastReturn] |
| 521 bool forcePseudoState([Keep] Element* element, CSSSelector::PseudoType pseud
oState); | 513 bool forcePseudoState([Keep] Element* element, CSSSelector::PseudoType pseud
oState); |
| 522 | 514 |
| 523 [Worker, Inline=FastReturn] | 515 [Worker, Inline=FastReturn] |
| 524 bool shouldPauseDedicatedWorkerOnStart(ExecutionContext* context); | 516 bool shouldPauseDedicatedWorkerOnStart(ExecutionContext* context); |
| 517 |
| 518 [Resource, Inline=FastReturn] |
| 519 bool shouldForceCORSPreflight(Document*); |
| 525 } | 520 } |
| 526 | 521 |
| 527 | 522 |
| 528 interface InspectorCanvasInstrumentation { | 523 interface InspectorCanvasInstrumentation { |
| 529 | 524 |
| 530 #include "bindings/common/ScriptValue.h" | 525 #include "bindings/common/ScriptValue.h" |
| 531 | 526 |
| 532 [Canvas] | 527 [Canvas] |
| 533 ScriptValue wrapCanvas2DRenderingContextForInstrumentation(Document*, const
ScriptValue&); | 528 ScriptValue wrapCanvas2DRenderingContextForInstrumentation(Document*, const
ScriptValue&); |
| 534 | 529 |
| 535 [Canvas] | 530 [Canvas] |
| 536 ScriptValue wrapWebGLRenderingContextForInstrumentation(Document*, const Scr
iptValue&); | 531 ScriptValue wrapWebGLRenderingContextForInstrumentation(Document*, const Scr
iptValue&); |
| 537 } | 532 } |
| OLD | NEW |