| Index: Source/core/html/HTMLImportStateResolver.h
|
| diff --git a/Source/platform/fonts/FontCacheClient.h b/Source/core/html/HTMLImportStateResolver.h
|
| similarity index 75%
|
| copy from Source/platform/fonts/FontCacheClient.h
|
| copy to Source/core/html/HTMLImportStateResolver.h
|
| index 4e43b8c72cf93e9d6f51f68098d434a9d97444ce..b0141e8316f9be84d51449bc7a5debbea4ef99b1 100644
|
| --- a/Source/platform/fonts/FontCacheClient.h
|
| +++ b/Source/core/html/HTMLImportStateResolver.h
|
| @@ -28,21 +28,32 @@
|
| * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
| */
|
|
|
| -#ifndef FontCacheClient_h
|
| -#define FontCacheClient_h
|
| +#ifndef HTMLImportStateResolver_h
|
| +#define HTMLImportStateResolver_h
|
|
|
| -#include "platform/PlatformExport.h"
|
| -#include "wtf/RefCounted.h"
|
| +#include "core/html/HTMLImport.h"
|
|
|
| namespace WebCore {
|
|
|
| -class PLATFORM_EXPORT FontCacheClient : public RefCounted<FontCacheClient> {
|
| +class HTMLImportStateResolver {
|
| public:
|
| - virtual ~FontCacheClient() { }
|
| + explicit HTMLImportStateResolver(HTMLImport* import)
|
| + : m_import(import)
|
| + { }
|
|
|
| - virtual void fontCacheInvalidated() = 0;
|
| + HTMLImport::State resolve() const;
|
| +
|
| +private:
|
| + static bool isBlockingFollowers(HTMLImport*);
|
| +
|
| + bool isBlockedFromCreatingDocument() const;
|
| + bool isBlockedFromRunningScript() const;
|
| + bool isActive() const;
|
| +
|
| + HTMLImport* m_import;
|
| };
|
|
|
| -} // namespace WebCore
|
| +}
|
| +
|
| +#endif // HTMLImportStateResolver_h
|
|
|
| -#endif // FontCacheClient_h
|
|
|