Chromium Code Reviews| Index: android_webview/browser/tile_resource_consumer.h |
| diff --git a/android_webview/browser/tile_resource_consumer.h b/android_webview/browser/tile_resource_consumer.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..b25fe6fdd730ca9ec037d89c894e9ab510aa6d38 |
| --- /dev/null |
| +++ b/android_webview/browser/tile_resource_consumer.h |
| @@ -0,0 +1,21 @@ |
| +// Copyright 2014 The Chromium Authors. All rights reserved. |
| +// Use of this source code is governed by a BSD-style license that can be |
| +// found in the LICENSE file. |
| + |
| +#ifndef ANDROID_WEBVIEW_BROWSER_TILE_RESOURCE_CONSUMER_H_ |
| +#define ANDROID_WEBVIEW_BROWSER_TILE_RESOURCE_CONSUMER_H_ |
| + |
| +namespace android_webview { |
| +// TileResourceConsumer is a class that requests tile resources from |
| +// GlobalTileManager. |
| +class TileResourceConsumer { |
|
boliu
2014/04/28 22:22:15
Call this GlobalTileManagerClient
hush (inactive)
2014/04/30 20:50:17
Done.
|
| + public: |
| + virtual size_t CalculateTileRequest() = 0; |
|
boliu
2014/04/28 22:22:15
const
hush (inactive)
2014/04/30 20:50:17
Done.
|
| + virtual size_t ForceDropTiles() = 0; |
| + virtual bool IsStarved() = 0; |
|
boliu
2014/04/28 22:22:15
Not needed
hush (inactive)
2014/04/30 20:50:17
Actually, we need a function for the client to tel
|
| + virtual ~TileResourceConsumer() {} |
|
boliu
2014/04/28 22:22:15
In protected section
hush (inactive)
2014/04/30 20:50:17
Done.
|
| +}; |
| + |
| +} // namespace android_webview |
| + |
| +#endif |
|
boliu
2014/04/28 22:22:15
comment on endif (yes I know, stupid...)
hush (inactive)
2014/04/30 20:50:17
Done.
|