OLD | NEW |
1 // Copyright (c) 2016 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2016 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/renderer/service_worker/embedded_worker_instance_client_impl.h
" | 5 #include "content/renderer/service_worker/embedded_worker_instance_client_impl.h
" |
6 | 6 |
7 #include <memory> | 7 #include <memory> |
8 | 8 |
| 9 #include "base/memory/ptr_util.h" |
9 #include "base/strings/utf_string_conversions.h" | 10 #include "base/strings/utf_string_conversions.h" |
10 #include "content/child/scoped_child_process_reference.h" | 11 #include "content/child/scoped_child_process_reference.h" |
11 #include "content/common/service_worker/embedded_worker_messages.h" | 12 #include "content/common/service_worker/embedded_worker_messages.h" |
12 #include "content/public/common/content_client.h" | 13 #include "content/public/common/content_client.h" |
13 #include "content/renderer/service_worker/embedded_worker_devtools_agent.h" | 14 #include "content/renderer/service_worker/embedded_worker_devtools_agent.h" |
14 #include "content/renderer/service_worker/service_worker_context_client.h" | 15 #include "content/renderer/service_worker/service_worker_context_client.h" |
15 #include "third_party/WebKit/public/web/WebEmbeddedWorker.h" | 16 #include "third_party/WebKit/public/web/WebEmbeddedWorker.h" |
16 #include "third_party/WebKit/public/web/WebEmbeddedWorkerStartData.h" | 17 #include "third_party/WebKit/public/web/WebEmbeddedWorkerStartData.h" |
17 | 18 |
18 namespace content { | 19 namespace content { |
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
89 } | 90 } |
90 | 91 |
91 EmbeddedWorkerInstanceClientImpl::~EmbeddedWorkerInstanceClientImpl() {} | 92 EmbeddedWorkerInstanceClientImpl::~EmbeddedWorkerInstanceClientImpl() {} |
92 | 93 |
93 void EmbeddedWorkerInstanceClientImpl::OnError() { | 94 void EmbeddedWorkerInstanceClientImpl::OnError() { |
94 // Removes myself if it's owned by myself. | 95 // Removes myself if it's owned by myself. |
95 temporal_self_.reset(); | 96 temporal_self_.reset(); |
96 } | 97 } |
97 | 98 |
98 } // namespace content | 99 } // namespace content |
OLD | NEW |