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
{
14 // Get tile memory policy for the client.
15 virtual content::SynchronousCompositorMemoryPolicy
GetMemoryPolicy()
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;
25 virtual ~GlobalTileManagerClient() {}
28 } // namespace android_webview
30 #endif // ANDROID_WEBVIEW_BROWSER_GLOBAL_TILE_MANAGER_CLIENT_H_