Chromium Code Reviews| Index: content/browser/android/ui_resource_provider_impl.h |
| diff --git a/content/browser/android/ui_resource_provider_impl.h b/content/browser/android/ui_resource_provider_impl.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..bec3eaad62b23bf680b7fff2e5916c2d2e8bf14d |
| --- /dev/null |
| +++ b/content/browser/android/ui_resource_provider_impl.h |
| @@ -0,0 +1,50 @@ |
| +// Copyright 2014 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. |
| + |
| +#ifndef CONTENT_BROWSER_ANDROID_UI_RESOURCE_PROVIDER_IMPL_H_ |
| +#define CONTENT_BROWSER_ANDROID_UI_RESOURCE_PROVIDER_IMPL_H_ |
| + |
| +#include <list> |
|
no sievers
2014/06/11 23:00:09
not used
powei
2014/06/13 00:02:10
Done.
|
| + |
| +#include "base/containers/hash_tables.h" |
| +#include "cc/resources/ui_resource_client.h" |
| +#include "content/public/browser/android/ui_resource_client_android.h" |
|
no sievers
2014/06/11 23:00:09
don't need to include line 11 and 12. UIResourceCl
powei
2014/06/13 00:02:10
Done.
|
| +#include "content/public/browser/android/ui_resource_provider.h" |
| + |
| +namespace cc { |
| +class LayerTreeHost; |
| +} |
| + |
| +namespace content { |
| + |
| +class UIResourceClientAndroid; |
| + |
| +class UIResourceProviderImpl : public UIResourceProvider { |
| + public: |
| + UIResourceProviderImpl(); |
| + |
| + virtual ~UIResourceProviderImpl(); |
| + |
| + void SetLayerTreeHost(cc::LayerTreeHost* host); |
| + |
| + void UIResourcesAreInvalid(); |
| + |
| + virtual cc::UIResourceId CreateUIResource( |
| + UIResourceClientAndroid* client) OVERRIDE; |
| + |
| + virtual void DeleteUIResource(cc::UIResourceId resource_id) OVERRIDE; |
| + |
| + private: |
| + typedef base::hash_map<cc::UIResourceId, UIResourceClientAndroid*> |
| + UIResourceClientMap; |
| + UIResourceClientMap ui_resource_client_map_; |
| + |
| + cc::LayerTreeHost* host_; |
| + |
| + DISALLOW_COPY_AND_ASSIGN(UIResourceProviderImpl); |
| +}; |
| + |
| +} // namespace content |
| + |
| +#endif // CONTENT_BROWSER_ANDROID_UI_RESOURCE_PROVIDER_IMPL_H_ |