| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef CONTENT_BROWSER_BROWSING_DATA_CLEAR_SITE_DATA_THROTTLE_H_ | 5 #ifndef CONTENT_BROWSER_BROWSING_DATA_CLEAR_SITE_DATA_THROTTLE_H_ |
| 6 #define CONTENT_BROWSER_BROWSING_DATA_CLEAR_SITE_DATA_THROTTLE_H_ | 6 #define CONTENT_BROWSER_BROWSING_DATA_CLEAR_SITE_DATA_THROTTLE_H_ |
| 7 | 7 |
| 8 #include <memory> | 8 #include <memory> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 69 void TaskFinished(); | 69 void TaskFinished(); |
| 70 | 70 |
| 71 // Cached console messages to be output when the RenderFrameHost is ready. | 71 // Cached console messages to be output when the RenderFrameHost is ready. |
| 72 std::vector<ConsoleMessage> messages_; | 72 std::vector<ConsoleMessage> messages_; |
| 73 GURL current_url_; | 73 GURL current_url_; |
| 74 | 74 |
| 75 // Whether we are currently waiting for a callback that data clearing has | 75 // Whether we are currently waiting for a callback that data clearing has |
| 76 // been completed; | 76 // been completed; |
| 77 bool clearing_in_progress_; | 77 bool clearing_in_progress_; |
| 78 | 78 |
| 79 // The time when the last clearing operation started. Used when clearing |
| 80 // finishes to compute the duration. |
| 81 base::TimeTicks clearing_started_; |
| 82 |
| 79 // Needed for asynchronous parsing and deletion tasks. | 83 // Needed for asynchronous parsing and deletion tasks. |
| 80 base::WeakPtrFactory<ClearSiteDataThrottle> weak_ptr_factory_; | 84 base::WeakPtrFactory<ClearSiteDataThrottle> weak_ptr_factory_; |
| 81 | 85 |
| 82 DISALLOW_COPY_AND_ASSIGN(ClearSiteDataThrottle); | 86 DISALLOW_COPY_AND_ASSIGN(ClearSiteDataThrottle); |
| 83 }; | 87 }; |
| 84 | 88 |
| 85 } // namespace content | 89 } // namespace content |
| 86 | 90 |
| 87 #endif // CONTENT_BROWSER_BROWSING_DATA_CLEAR_SITE_DATA_THROTTLE_H_ | 91 #endif // CONTENT_BROWSER_BROWSING_DATA_CLEAR_SITE_DATA_THROTTLE_H_ |
| OLD | NEW |