2013-04-15 16:25:08 +00:00
|
|
|
// Copyright (c) 2013 GitHub, Inc. All rights reserved.
|
|
|
|
// Use of this source code is governed by a BSD-style license that can be
|
|
|
|
// found in the LICENSE file.
|
|
|
|
|
|
|
|
#include "browser/atom_browser_context.h"
|
|
|
|
|
2013-04-20 13:52:46 +00:00
|
|
|
#include "browser/api/atom_api_objects_registry.h"
|
|
|
|
|
2013-04-15 16:25:08 +00:00
|
|
|
namespace atom {
|
|
|
|
|
|
|
|
// static
|
|
|
|
AtomBrowserContext* AtomBrowserContext::self_;
|
|
|
|
|
2013-04-20 13:52:46 +00:00
|
|
|
AtomBrowserContext::AtomBrowserContext()
|
|
|
|
: objects_registry_(new api::ObjectsRegistry) {
|
2013-04-15 16:25:08 +00:00
|
|
|
DCHECK(!self_);
|
|
|
|
|
|
|
|
self_ = this;
|
|
|
|
}
|
|
|
|
|
|
|
|
AtomBrowserContext::~AtomBrowserContext() {
|
|
|
|
}
|
|
|
|
|
|
|
|
// static
|
|
|
|
AtomBrowserContext* AtomBrowserContext::Get() {
|
|
|
|
DCHECK(self_);
|
|
|
|
|
|
|
|
return self_;
|
|
|
|
}
|
|
|
|
|
|
|
|
} // namespace atom
|