OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 CHROME_BROWSER_PROFILES_REFCOUNTED_PROFILE_KEYED_SERVICE_H_ | 5 #ifndef CHROME_BROWSER_PROFILES_REFCOUNTED_PROFILE_KEYED_SERVICE_H_ |
6 #define CHROME_BROWSER_PROFILES_REFCOUNTED_PROFILE_KEYED_SERVICE_H_ | 6 #define CHROME_BROWSER_PROFILES_REFCOUNTED_PROFILE_KEYED_SERVICE_H_ |
7 | 7 |
8 #include "base/memory/ref_counted.h" | 8 #include "base/memory/ref_counted.h" |
9 #include "base/task/sequenced_task_runner_helpers.h" | 9 #include "base/sequenced_task_runner_helpers.h" |
10 #include "content/public/browser/browser_thread.h" | 10 #include "content/public/browser/browser_thread.h" |
11 | 11 |
12 class RefcountedProfileKeyedService; | 12 class RefcountedProfileKeyedService; |
13 | 13 |
14 namespace impl { | 14 namespace impl { |
15 | 15 |
16 struct RefcountedProfileKeyedServiceTraits { | 16 struct RefcountedProfileKeyedServiceTraits { |
17 static void Destruct(const RefcountedProfileKeyedService* obj); | 17 static void Destruct(const RefcountedProfileKeyedService* obj); |
18 }; | 18 }; |
19 | 19 |
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
61 private: | 61 private: |
62 friend struct impl::RefcountedProfileKeyedServiceTraits; | 62 friend struct impl::RefcountedProfileKeyedServiceTraits; |
63 friend class base::DeleteHelper<RefcountedProfileKeyedService>; | 63 friend class base::DeleteHelper<RefcountedProfileKeyedService>; |
64 | 64 |
65 // Do we have to delete this object on a specific thread? | 65 // Do we have to delete this object on a specific thread? |
66 bool requires_destruction_on_thread_; | 66 bool requires_destruction_on_thread_; |
67 content::BrowserThread::ID thread_id_; | 67 content::BrowserThread::ID thread_id_; |
68 }; | 68 }; |
69 | 69 |
70 #endif // CHROME_BROWSER_PROFILES_REFCOUNTED_PROFILE_KEYED_SERVICE_H_ | 70 #endif // CHROME_BROWSER_PROFILES_REFCOUNTED_PROFILE_KEYED_SERVICE_H_ |
OLD | NEW |