This source file includes following definitions.
- SetInstance
- GetInstance
#include "android_webview/native/aw_browser_dependency_factory.h"
#include "base/logging.h"
namespace android_webview {
namespace {
AwBrowserDependencyFactory* g_instance = NULL;
}
AwBrowserDependencyFactory::AwBrowserDependencyFactory() {}
AwBrowserDependencyFactory::~AwBrowserDependencyFactory() {}
void AwBrowserDependencyFactory::SetInstance(
AwBrowserDependencyFactory* delegate) {
g_instance = delegate;
}
AwBrowserDependencyFactory* AwBrowserDependencyFactory::GetInstance() {
DCHECK(g_instance);
return g_instance;
}
}