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 namespace android_webview
{
9 // GlobalTileManagerClient requests tile resources from GlobalTileManager.
10 class GlobalTileManagerClient
{
12 // Get the number of tiles allocated to the client.
13 virtual size_t GetNumTiles() const = 0;
15 // Set the number of tiles allocated to the client. When
16 // |effective_immediately| is true, the client will enforce its tile policy
18 virtual void SetNumTiles(size_t num_tiles
, bool effective_immediately
) = 0;
21 virtual ~GlobalTileManagerClient() {}
24 } // namespace android_webview
26 #endif // ANDROID_WEBVIEW_BROWSER_GLOBAL_TILE_MANAGER_CLIENT_H_