Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(158)

Side by Side Diff: content/browser/browsing_data/clear_site_data_throttle.h

Issue 2274853002: Add metrics for the Clear-Site-Data header. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: git cl format Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | content/browser/browsing_data/clear_site_data_throttle.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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_
OLDNEW
« no previous file with comments | « no previous file | content/browser/browsing_data/clear_site_data_throttle.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698