| Index: ui/compositor/compositor_retriever_delegate.cc
|
| diff --git a/ui/compositor/compositor_retriever_delegate.cc b/ui/compositor/compositor_retriever_delegate.cc
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..6a0c4676b36bd194f2344af6c57fad6a5264e61e
|
| --- /dev/null
|
| +++ b/ui/compositor/compositor_retriever_delegate.cc
|
| @@ -0,0 +1,29 @@
|
| +// Copyright (c) 2013 The Chromium Authors. All rights reserved.
|
| +// Use of this source code is governed by a BSD-style license that can be
|
| +// found in the LICENSE file.
|
| +
|
| +#include "ui/compositor/compositor_retriever_delegate.h"
|
| +
|
| +#include "base/logging.h"
|
| +
|
| +namespace ui {
|
| +
|
| +namespace {
|
| +
|
| +CompositorRetrieverDelegate* g_compositor_retriever_delegate = NULL;
|
| +
|
| +} // anonymous namespace
|
| +
|
| +// static
|
| +void CompositorRetrieverDelegate::SetDelegate(
|
| + CompositorRetrieverDelegate* delegate) {
|
| + DCHECK(!g_compositor_retriever_delegate);
|
| + g_compositor_retriever_delegate = delegate;
|
| +}
|
| +
|
| +// static
|
| +CompositorRetrieverDelegate* CompositorRetrieverDelegate::GetInstance() {
|
| + return g_compositor_retriever_delegate;
|
| +}
|
| +
|
| +} // namespace content
|
|
|