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