- // Keeps track of whether we're still waiting for an image to load before
- // we show the dialog.
- enum State {
- kImageIsLoading, // Image is loading asynchronously.
- kDialogIsShowing, // Dialog is shown after image is loaded.
- kBrowserIsClosing // Browser is closed while image is still loading.
- };
- State state_;
-