| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 CONTENT_PUBLIC_COMMON_SERVICE_INFO_H_ | 5 #ifndef CONTENT_PUBLIC_COMMON_SERVICE_INFO_H_ |
| 6 #define CONTENT_PUBLIC_COMMON_SERVICE_INFO_H_ | 6 #define CONTENT_PUBLIC_COMMON_SERVICE_INFO_H_ |
| 7 | 7 |
| 8 #include <memory> | 8 #include <memory> |
| 9 | 9 |
| 10 #include "base/callback.h" | 10 #include "base/callback.h" |
| (...skipping 26 matching lines...) Expand all Loading... |
| 37 // for this service. If null, behavior depends on the value of | 37 // for this service. If null, behavior depends on the value of |
| 38 // |use_own_thread| below. | 38 // |use_own_thread| below. |
| 39 scoped_refptr<base::SingleThreadTaskRunner> task_runner; | 39 scoped_refptr<base::SingleThreadTaskRunner> task_runner; |
| 40 | 40 |
| 41 // If |task_runner| is null, setting this to |true| will give each instance of | 41 // If |task_runner| is null, setting this to |true| will give each instance of |
| 42 // this service its own thread to run on. Setting this to |false| (the | 42 // this service its own thread to run on. Setting this to |false| (the |
| 43 // default) will instead run the service on the main thread's task runner. | 43 // default) will instead run the service on the main thread's task runner. |
| 44 // | 44 // |
| 45 // If |task_runner| is not null, this value is ignored. | 45 // If |task_runner| is not null, this value is ignored. |
| 46 bool use_own_thread = false; | 46 bool use_own_thread = false; |
| 47 | |
| 48 // Whether a ServiceContext is created and passed to the service when the | |
| 49 // service is created. | |
| 50 bool service_owns_context = false; | |
| 51 }; | 47 }; |
| 52 | 48 |
| 53 } // namespace content | 49 } // namespace content |
| 54 | 50 |
| 55 #endif // CONTENT_PUBLIC_COMMON_SERVICE_INFO_H_ | 51 #endif // CONTENT_PUBLIC_COMMON_SERVICE_INFO_H_ |
| OLD | NEW |