| Index: content/browser/download/download_item_impl.h
|
| diff --git a/content/browser/download/download_item_impl.h b/content/browser/download/download_item_impl.h
|
| index 09d3f42b6217adeb98f45cf210247db371a1fda4..3cb2c1fc4244406bd64371861d945d4f2d4b71be 100644
|
| --- a/content/browser/download/download_item_impl.h
|
| +++ b/content/browser/download/download_item_impl.h
|
| @@ -276,6 +276,13 @@ class CONTENT_EXPORT DownloadItemImpl
|
| MAX_DOWNLOAD_INTERNAL_STATE,
|
| };
|
|
|
| + // Used with TransitionTo() to indicate whether or not to call
|
| + // UpdateObservers() after the state transition.
|
| + enum ShouldUpdateObservers {
|
| + UPDATE_OBSERVERS,
|
| + DONT_UPDATE_OBSERVERS
|
| + };
|
| +
|
| // Normal progression of a download ------------------------------------------
|
|
|
| // These are listed in approximately chronological order. There are also
|
| @@ -346,7 +353,10 @@ class CONTENT_EXPORT DownloadItemImpl
|
| bool IsDownloadReadyForCompletion(const base::Closure& state_change_notify);
|
|
|
| // Call to transition state; all state transitions should go through this.
|
| - void TransitionTo(DownloadInternalState new_state);
|
| + // |notify_action| specifies whether or not to call UpdateObservers() after
|
| + // the state transition.
|
| + void TransitionTo(DownloadInternalState new_state,
|
| + ShouldUpdateObservers notify_action);
|
|
|
| // Set the |danger_type_| and invoke obserers if necessary.
|
| void SetDangerType(DownloadDangerType danger_type);
|
|
|