OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 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 "services/image_decoder/image_decoder_service.h" | 5 #include "services/image_decoder/image_decoder_service.h" |
6 | 6 |
7 #include "base/macros.h" | 7 #include "base/macros.h" |
| 8 #include "base/memory/ptr_util.h" |
8 #include "base/threading/thread_task_runner_handle.h" | 9 #include "base/threading/thread_task_runner_handle.h" |
9 #include "base/time/time.h" | 10 #include "base/time/time.h" |
10 #include "mojo/public/cpp/bindings/strong_binding.h" | 11 #include "mojo/public/cpp/bindings/strong_binding.h" |
11 #include "services/image_decoder/image_decoder_impl.h" | 12 #include "services/image_decoder/image_decoder_impl.h" |
12 #include "services/image_decoder/public/interfaces/image_decoder.mojom.h" | 13 #include "services/image_decoder/public/interfaces/image_decoder.mojom.h" |
13 #include "services/service_manager/public/cpp/interface_registry.h" | 14 #include "services/service_manager/public/cpp/interface_registry.h" |
14 #include "services/service_manager/public/cpp/service_context.h" | 15 #include "services/service_manager/public/cpp/service_context.h" |
15 | 16 |
16 namespace image_decoder { | 17 namespace image_decoder { |
17 | 18 |
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
73 base::TimeDelta::FromSeconds(5)); | 74 base::TimeDelta::FromSeconds(5)); |
74 } | 75 } |
75 | 76 |
76 void ImageDecoderService::MaybeRequestQuit() { | 77 void ImageDecoderService::MaybeRequestQuit() { |
77 DCHECK(ref_factory_); | 78 DCHECK(ref_factory_); |
78 if (ref_factory_->HasNoRefs()) | 79 if (ref_factory_->HasNoRefs()) |
79 context()->RequestQuit(); | 80 context()->RequestQuit(); |
80 } | 81 } |
81 | 82 |
82 } // namespace image_decoder | 83 } // namespace image_decoder |
OLD | NEW |