Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(149)

Side by Side Diff: content/browser/android/ui_resource_provider_impl.h

Issue 287593002: android: content::UIResourceProvider and content::UIResourceClientAndroid (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: addressed sievers comments Created 6 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | content/browser/android/ui_resource_provider_impl.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(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 "base/containers/hash_tables.h"
9 #include "content/public/browser/android/ui_resource_provider.h"
10
11 namespace cc {
12 class LayerTreeHost;
13 }
14
15 namespace content {
16
17 class UIResourceClientAndroid;
18
19 class UIResourceProviderImpl : public UIResourceProvider {
20 public:
21 UIResourceProviderImpl();
22
23 virtual ~UIResourceProviderImpl();
24
25 void SetLayerTreeHost(cc::LayerTreeHost* host);
26
27 void UIResourcesAreInvalid();
28
29 virtual cc::UIResourceId CreateUIResource(
30 UIResourceClientAndroid* client) OVERRIDE;
31
32 virtual void DeleteUIResource(cc::UIResourceId resource_id) OVERRIDE;
33
34 private:
35 typedef base::hash_map<cc::UIResourceId, UIResourceClientAndroid*>
36 UIResourceClientMap;
37 UIResourceClientMap ui_resource_client_map_;
38
39 cc::LayerTreeHost* host_;
40
41 DISALLOW_COPY_AND_ASSIGN(UIResourceProviderImpl);
42 };
43
44 } // namespace content
45
46 #endif // CONTENT_BROWSER_ANDROID_UI_RESOURCE_PROVIDER_IMPL_H_
OLDNEW
« no previous file with comments | « no previous file | content/browser/android/ui_resource_provider_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698