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

Unified Diff: components/browser_context_keyed_service/refcounted_browser_context_keyed_service.h

Issue 15904021: Enable component build for browser_context_keyed_service. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: some more trybot debugging Created 7 years, 6 months 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 side-by-side diff with in-line comments
Download patch
Index: components/browser_context_keyed_service/refcounted_browser_context_keyed_service.h
diff --git a/components/browser_context_keyed_service/refcounted_browser_context_keyed_service.h b/components/browser_context_keyed_service/refcounted_browser_context_keyed_service.h
index c7b7102a337f38410dd44234fa966da4e187ebf7..c705898afacc8bfb480b575147215dcab2999028 100644
--- a/components/browser_context_keyed_service/refcounted_browser_context_keyed_service.h
+++ b/components/browser_context_keyed_service/refcounted_browser_context_keyed_service.h
@@ -7,13 +7,15 @@
#include "base/memory/ref_counted.h"
#include "base/sequenced_task_runner_helpers.h"
+#include "components/browser_context_keyed_service/browser_context_keyed_service_export.h"
#include "content/public/browser/browser_thread.h"
class RefcountedBrowserContextKeyedService;
namespace impl {
-struct RefcountedBrowserContextKeyedServiceTraits {
+struct BROWSER_CONTEXT_KEYED_SERVICE_EXPORT
+ RefcountedBrowserContextKeyedServiceTraits {
static void Destruct(const RefcountedBrowserContextKeyedService* obj);
};
@@ -32,7 +34,7 @@ struct RefcountedBrowserContextKeyedServiceTraits {
// content::DeleteOnThread<> directly because
// RefcountedBrowserContextKeyedService must be one type that
// RefcountedBrowserContextKeyedServiceFactory can use.
-class RefcountedBrowserContextKeyedService
+class BROWSER_CONTEXT_KEYED_SERVICE_EXPORT RefcountedBrowserContextKeyedService
: public base::RefCountedThreadSafe<
RefcountedBrowserContextKeyedService,
impl::RefcountedBrowserContextKeyedServiceTraits> {
@@ -62,6 +64,8 @@ class RefcountedBrowserContextKeyedService
private:
friend struct impl::RefcountedBrowserContextKeyedServiceTraits;
friend class base::DeleteHelper<RefcountedBrowserContextKeyedService>;
+ friend class base::RefCountedThreadSafe<RefcountedBrowserContextKeyedService,
+ impl::RefcountedBrowserContextKeyedServiceTraits>;
// Do we have to delete this object on a specific thread?
bool requires_destruction_on_thread_;

Powered by Google App Engine
This is Rietveld 408576698