| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "content/browser/shared_worker/shared_worker_service_impl.h" | 5 #include "content/browser/shared_worker/shared_worker_service_impl.h" |
| 6 | 6 |
| 7 #include <stddef.h> |
| 8 |
| 7 #include <algorithm> | 9 #include <algorithm> |
| 8 #include <iterator> | 10 #include <iterator> |
| 9 #include <set> | 11 #include <set> |
| 10 #include <vector> | 12 #include <vector> |
| 11 | 13 |
| 12 #include "base/callback.h" | 14 #include "base/callback.h" |
| 15 #include "base/macros.h" |
| 13 #include "base/memory/ref_counted.h" | 16 #include "base/memory/ref_counted.h" |
| 14 #include "content/browser/devtools/shared_worker_devtools_manager.h" | 17 #include "content/browser/devtools/shared_worker_devtools_manager.h" |
| 15 #include "content/browser/renderer_host/render_process_host_impl.h" | 18 #include "content/browser/renderer_host/render_process_host_impl.h" |
| 16 #include "content/browser/shared_worker/shared_worker_host.h" | 19 #include "content/browser/shared_worker/shared_worker_host.h" |
| 17 #include "content/browser/shared_worker/shared_worker_instance.h" | 20 #include "content/browser/shared_worker/shared_worker_instance.h" |
| 18 #include "content/browser/shared_worker/shared_worker_message_filter.h" | 21 #include "content/browser/shared_worker/shared_worker_message_filter.h" |
| 19 #include "content/browser/shared_worker/worker_document_set.h" | 22 #include "content/browser/shared_worker/worker_document_set.h" |
| 20 #include "content/common/view_messages.h" | 23 #include "content/common/view_messages.h" |
| 21 #include "content/common/worker_messages.h" | 24 #include "content/common/worker_messages.h" |
| 22 #include "content/public/browser/browser_thread.h" | 25 #include "content/public/browser/browser_thread.h" |
| (...skipping 641 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 664 UpdateWorkerDependencyFunc new_func) { | 667 UpdateWorkerDependencyFunc new_func) { |
| 665 update_worker_dependency_ = new_func; | 668 update_worker_dependency_ = new_func; |
| 666 } | 669 } |
| 667 | 670 |
| 668 void SharedWorkerServiceImpl::ChangeTryIncrementWorkerRefCountFuncForTesting( | 671 void SharedWorkerServiceImpl::ChangeTryIncrementWorkerRefCountFuncForTesting( |
| 669 bool (*new_func)(int)) { | 672 bool (*new_func)(int)) { |
| 670 s_try_increment_worker_ref_count_ = new_func; | 673 s_try_increment_worker_ref_count_ = new_func; |
| 671 } | 674 } |
| 672 | 675 |
| 673 } // namespace content | 676 } // namespace content |
| OLD | NEW |