Add conversions for EmbedObject, Figcaption and Figure
[chromium-blink-merge.git] / android_webview / browser / global_tile_manager_client.h
blobb9cc64e115f2fa567b22b0c2a8498b618dc8b1c8
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 ANDROID_WEBVIEW_BROWSER_GLOBAL_TILE_MANAGER_CLIENT_H_
6 #define ANDROID_WEBVIEW_BROWSER_GLOBAL_TILE_MANAGER_CLIENT_H_
8 #include "content/public/browser/android/synchronous_compositor.h"
10 namespace android_webview {
11 // GlobalTileManagerClient requests tile resources from GlobalTileManager.
12 class GlobalTileManagerClient {
13 public:
14 // Get tile memory policy for the client.
15 virtual content::SynchronousCompositorMemoryPolicy GetMemoryPolicy()
16 const = 0;
18 // Set tile memory policy of the client. When |effective_immediately| is
19 // true, the client will enforce its tile policy immediately.
20 virtual void SetMemoryPolicy(
21 content::SynchronousCompositorMemoryPolicy new_policy,
22 bool effective_immediately) = 0;
24 protected:
25 virtual ~GlobalTileManagerClient() {}
28 } // namespace android_webview
30 #endif // ANDROID_WEBVIEW_BROWSER_GLOBAL_TILE_MANAGER_CLIENT_H_