1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #ifndef CHROME_BROWSER_SERVICES_GCM_GCM_CLIENT_FACTORY_H_
6 #define CHROME_BROWSER_SERVICES_GCM_GCM_CLIENT_FACTORY_H_
8 #include "base/macros.h"
16 class GCMClientFactory
{
18 // Returns a single instance of GCMClient.
19 // This should be called from IO thread.
20 static GCMClient
* GetClient();
22 // Passes a mocked instance for testing purpose.
23 typedef GCMClient
* (*TestingFactoryFunction
)();
24 static void SetTestingFactory(TestingFactoryFunction factory
);
30 DISALLOW_COPY_AND_ASSIGN(GCMClientFactory
);
35 #endif // CHROME_BROWSER_SERVICES_GCM_GCM_CLIENT_FACTORY_H_