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 334 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
345 workerGlobalScope()->scriptController()->getScriptState(), webData), | 345 workerGlobalScope()->scriptController()->getScriptState(), webData), |
346 observer); | 346 observer); |
347 workerGlobalScope()->dispatchExtendableEvent(event, observer); | 347 workerGlobalScope()->dispatchExtendableEvent(event, observer); |
348 } | 348 } |
349 | 349 |
350 bool ServiceWorkerGlobalScopeProxy::hasFetchEventHandler() { | 350 bool ServiceWorkerGlobalScopeProxy::hasFetchEventHandler() { |
351 DCHECK(m_workerGlobalScope); | 351 DCHECK(m_workerGlobalScope); |
352 return m_workerGlobalScope->hasEventListeners(EventTypeNames::fetch); | 352 return m_workerGlobalScope->hasEventListeners(EventTypeNames::fetch); |
353 } | 353 } |
354 | 354 |
| 355 void ServiceWorkerGlobalScopeProxy::countFeature(UseCounter::Feature) { |
| 356 // TODO(nhiroki): Support UseCounter for ServiceWorker. Send an IPC message to |
| 357 // the browser process and ask each controlled document to record API use in |
| 358 // its UseCoutner (https://crbug.com/376039). |
| 359 } |
| 360 |
| 361 void ServiceWorkerGlobalScopeProxy::countDeprecation(UseCounter::Feature) { |
| 362 // TODO(nhiroki): Support UseCounter for ServiceWorker. Send an IPC message to |
| 363 // the browser process and ask each controlled document to record API use in |
| 364 // its UseCoutner (https://crbug.com/376039). |
| 365 } |
| 366 |
355 void ServiceWorkerGlobalScopeProxy::reportException( | 367 void ServiceWorkerGlobalScopeProxy::reportException( |
356 const String& errorMessage, | 368 const String& errorMessage, |
357 std::unique_ptr<SourceLocation> location, | 369 std::unique_ptr<SourceLocation> location, |
358 int exceptionId) { | 370 int exceptionId) { |
359 client().reportException(errorMessage, location->lineNumber(), | 371 client().reportException(errorMessage, location->lineNumber(), |
360 location->columnNumber(), location->url()); | 372 location->columnNumber(), location->url()); |
361 } | 373 } |
362 | 374 |
363 void ServiceWorkerGlobalScopeProxy::reportConsoleMessage( | 375 void ServiceWorkerGlobalScopeProxy::reportConsoleMessage( |
364 MessageSource source, | 376 MessageSource source, |
(...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
473 return *m_document; | 485 return *m_document; |
474 } | 486 } |
475 | 487 |
476 ServiceWorkerGlobalScope* ServiceWorkerGlobalScopeProxy::workerGlobalScope() | 488 ServiceWorkerGlobalScope* ServiceWorkerGlobalScopeProxy::workerGlobalScope() |
477 const { | 489 const { |
478 DCHECK(m_workerGlobalScope); | 490 DCHECK(m_workerGlobalScope); |
479 return m_workerGlobalScope; | 491 return m_workerGlobalScope; |
480 } | 492 } |
481 | 493 |
482 } // namespace blink | 494 } // namespace blink |
OLD | NEW |