Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(458)

Side by Side Diff: services/image_decoder/image_decoder_service.h

Issue 2544313002: Revert of image_decoder: Delay shutdown on idle (Closed)
Patch Set: Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | services/image_decoder/image_decoder_service.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 #ifndef SERVICES_IMAGE_DECODER_IMAGE_DECODER_SERVICE_H_ 5 #ifndef SERVICES_IMAGE_DECODER_IMAGE_DECODER_SERVICE_H_
6 #define SERVICES_IMAGE_DECODER_IMAGE_DECODER_SERVICE_H_ 6 #define SERVICES_IMAGE_DECODER_IMAGE_DECODER_SERVICE_H_
7 7
8 #include <memory> 8 #include <memory>
9 9
10 #include "base/callback.h" 10 #include "base/callback.h"
(...skipping 11 matching lines...) Expand all
22 // Factory function for use as an embedded service. 22 // Factory function for use as an embedded service.
23 static std::unique_ptr<service_manager::Service> Create(); 23 static std::unique_ptr<service_manager::Service> Create();
24 24
25 // service_manager::Service: 25 // service_manager::Service:
26 void OnStart() override; 26 void OnStart() override;
27 bool OnConnect(const service_manager::ServiceInfo& remote_info, 27 bool OnConnect(const service_manager::ServiceInfo& remote_info,
28 service_manager::InterfaceRegistry* registry) override; 28 service_manager::InterfaceRegistry* registry) override;
29 bool OnStop() override; 29 bool OnStop() override;
30 30
31 private: 31 private:
32 void MaybeRequestQuitDelayed();
33 void MaybeRequestQuit();
34
35 std::unique_ptr<service_manager::ServiceContextRefFactory> ref_factory_; 32 std::unique_ptr<service_manager::ServiceContextRefFactory> ref_factory_;
36 33
37 DISALLOW_COPY_AND_ASSIGN(ImageDecoderService); 34 DISALLOW_COPY_AND_ASSIGN(ImageDecoderService);
38 }; 35 };
39 36
40 } // namespace image_decoder 37 } // namespace image_decoder
41 38
42 #endif // SERVICES_IMAGE_DECODER_IMAGE_DECODER_SERVICE_H_ 39 #endif // SERVICES_IMAGE_DECODER_IMAGE_DECODER_SERVICE_H_
OLDNEW
« no previous file with comments | « no previous file | services/image_decoder/image_decoder_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698