Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 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. | |
| 4 | |
| 5 #ifndef CONTENT_BROWSER_ANDROID_UI_RESOURCE_PROVIDER_IMPL_H_ | |
| 6 #define CONTENT_BROWSER_ANDROID_UI_RESOURCE_PROVIDER_IMPL_H_ | |
| 7 | |
| 8 #include <list> | |
|
no sievers
2014/06/11 23:00:09
not used
powei
2014/06/13 00:02:10
Done.
| |
| 9 | |
| 10 #include "base/containers/hash_tables.h" | |
| 11 #include "cc/resources/ui_resource_client.h" | |
| 12 #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.
| |
| 13 #include "content/public/browser/android/ui_resource_provider.h" | |
| 14 | |
| 15 namespace cc { | |
| 16 class LayerTreeHost; | |
| 17 } | |
| 18 | |
| 19 namespace content { | |
| 20 | |
| 21 class UIResourceClientAndroid; | |
| 22 | |
| 23 class UIResourceProviderImpl : public UIResourceProvider { | |
| 24 public: | |
| 25 UIResourceProviderImpl(); | |
| 26 | |
| 27 virtual ~UIResourceProviderImpl(); | |
| 28 | |
| 29 void SetLayerTreeHost(cc::LayerTreeHost* host); | |
| 30 | |
| 31 void UIResourcesAreInvalid(); | |
| 32 | |
| 33 virtual cc::UIResourceId CreateUIResource( | |
| 34 UIResourceClientAndroid* client) OVERRIDE; | |
| 35 | |
| 36 virtual void DeleteUIResource(cc::UIResourceId resource_id) OVERRIDE; | |
| 37 | |
| 38 private: | |
| 39 typedef base::hash_map<cc::UIResourceId, UIResourceClientAndroid*> | |
| 40 UIResourceClientMap; | |
| 41 UIResourceClientMap ui_resource_client_map_; | |
| 42 | |
| 43 cc::LayerTreeHost* host_; | |
| 44 | |
| 45 DISALLOW_COPY_AND_ASSIGN(UIResourceProviderImpl); | |
| 46 }; | |
| 47 | |
| 48 } // namespace content | |
| 49 | |
| 50 #endif // CONTENT_BROWSER_ANDROID_UI_RESOURCE_PROVIDER_IMPL_H_ | |
| OLD | NEW |