Add a FrameHostMsg_BeginNavigation IPC
[chromium-blink-merge.git] / content / browser / android / ui_resource_provider_impl.h
blob79c23014d2d3735554d68a447ca7e44cc500617c
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.
5 #ifndef CONTENT_BROWSER_ANDROID_UI_RESOURCE_PROVIDER_IMPL_H_
6 #define CONTENT_BROWSER_ANDROID_UI_RESOURCE_PROVIDER_IMPL_H_
8 #include "base/containers/hash_tables.h"
9 #include "content/public/browser/android/ui_resource_provider.h"
11 namespace cc {
12 class LayerTreeHost;
15 namespace content {
17 class UIResourceClientAndroid;
19 class UIResourceProviderImpl : public UIResourceProvider {
20 public:
21 UIResourceProviderImpl();
23 virtual ~UIResourceProviderImpl();
25 void SetLayerTreeHost(cc::LayerTreeHost* host);
27 void UIResourcesAreInvalid();
29 virtual cc::UIResourceId CreateUIResource(
30 UIResourceClientAndroid* client) OVERRIDE;
32 virtual void DeleteUIResource(cc::UIResourceId resource_id) OVERRIDE;
34 private:
35 typedef base::hash_map<cc::UIResourceId, UIResourceClientAndroid*>
36 UIResourceClientMap;
37 UIResourceClientMap ui_resource_client_map_;
39 cc::LayerTreeHost* host_;
41 DISALLOW_COPY_AND_ASSIGN(UIResourceProviderImpl);
44 } // namespace content
46 #endif // CONTENT_BROWSER_ANDROID_UI_RESOURCE_PROVIDER_IMPL_H_