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

Side by Side Diff: chrome/browser/ui/webui/foreign_session_handler.h

Issue 1180283002: [Sync] Add tab sync latency UMA (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix TimeTicks Created 5 years, 6 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 | chrome/browser/ui/webui/foreign_session_handler.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 2012 The Chromium Authors. All rights reserved. 1 // Copyright 2012 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 CHROME_BROWSER_UI_WEBUI_FOREIGN_SESSION_HANDLER_H_ 5 #ifndef CHROME_BROWSER_UI_WEBUI_FOREIGN_SESSION_HANDLER_H_
6 #define CHROME_BROWSER_UI_WEBUI_FOREIGN_SESSION_HANDLER_H_ 6 #define CHROME_BROWSER_UI_WEBUI_FOREIGN_SESSION_HANDLER_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/time/time.h" 10 #include "base/time/time.h"
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
87 87
88 void HandleSetForeignSessionCollapsed(const base::ListValue* args); 88 void HandleSetForeignSessionCollapsed(const base::ListValue* args);
89 89
90 // Helper method to create JSON compatible objects from Session objects. 90 // Helper method to create JSON compatible objects from Session objects.
91 bool SessionWindowToValue(const ::sessions::SessionWindow& window, 91 bool SessionWindowToValue(const ::sessions::SessionWindow& window,
92 base::DictionaryValue* dictionary); 92 base::DictionaryValue* dictionary);
93 93
94 // The Registrar used to register ForeignSessionHandler for notifications. 94 // The Registrar used to register ForeignSessionHandler for notifications.
95 content::NotificationRegistrar registrar_; 95 content::NotificationRegistrar registrar_;
96 96
97 // The time at which this WebUI was created. Used to calculate how long
98 // the WebUI was present before the sessions data was visible.
99 base::TimeTicks load_attempt_time_;
100
97 DISALLOW_COPY_AND_ASSIGN(ForeignSessionHandler); 101 DISALLOW_COPY_AND_ASSIGN(ForeignSessionHandler);
98 }; 102 };
99 103
100 } // namespace browser_sync 104 } // namespace browser_sync
101 105
102 #endif // CHROME_BROWSER_UI_WEBUI_FOREIGN_SESSION_HANDLER_H_ 106 #endif // CHROME_BROWSER_UI_WEBUI_FOREIGN_SESSION_HANDLER_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/ui/webui/foreign_session_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698