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

Side by Side Diff: content/browser/tracing/tracing_controller_impl.cc

Issue 2891583002: Fuchsia port of base/time, with some refactoring of POSIX time modules. (Closed)
Patch Set: REBASE before commit. Created 3 years, 7 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 | « base/time/time_win.cc ('k') | tools/resource_prefetch_predictor/prefetch_predictor_tool.py » ('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 (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 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 #include "content/browser/tracing/tracing_controller_impl.h" 4 #include "content/browser/tracing/tracing_controller_impl.h"
5 5
6 #include <algorithm> 6 #include <algorithm>
7 #include <memory> 7 #include <memory>
8 #include <utility> 8 #include <utility>
9 9
10 #include "base/bind.h" 10 #include "base/bind.h"
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after
94 return "Bluetooth"; 94 return "Bluetooth";
95 case net::NetworkChangeNotifier::CONNECTION_UNKNOWN: 95 case net::NetworkChangeNotifier::CONNECTION_UNKNOWN:
96 default: 96 default:
97 break; 97 break;
98 } 98 }
99 return "Unknown"; 99 return "Unknown";
100 } 100 }
101 101
102 std::string GetClockString() { 102 std::string GetClockString() {
103 switch (base::TimeTicks::GetClock()) { 103 switch (base::TimeTicks::GetClock()) {
104 case base::TimeTicks::Clock::FUCHSIA_MX_CLOCK_MONOTONIC:
105 return "FUCHSIA_MX_CLOCK_MONOTONIC";
104 case base::TimeTicks::Clock::LINUX_CLOCK_MONOTONIC: 106 case base::TimeTicks::Clock::LINUX_CLOCK_MONOTONIC:
105 return "LINUX_CLOCK_MONOTONIC"; 107 return "LINUX_CLOCK_MONOTONIC";
106 case base::TimeTicks::Clock::IOS_CF_ABSOLUTE_TIME_MINUS_KERN_BOOTTIME: 108 case base::TimeTicks::Clock::IOS_CF_ABSOLUTE_TIME_MINUS_KERN_BOOTTIME:
107 return "IOS_CF_ABSOLUTE_TIME_MINUS_KERN_BOOTTIME"; 109 return "IOS_CF_ABSOLUTE_TIME_MINUS_KERN_BOOTTIME";
108 case base::TimeTicks::Clock::MAC_MACH_ABSOLUTE_TIME: 110 case base::TimeTicks::Clock::MAC_MACH_ABSOLUTE_TIME:
109 return "MAC_MACH_ABSOLUTE_TIME"; 111 return "MAC_MACH_ABSOLUTE_TIME";
110 case base::TimeTicks::Clock::WIN_QPC: 112 case base::TimeTicks::Clock::WIN_QPC:
111 return "WIN_QPC"; 113 return "WIN_QPC";
112 case base::TimeTicks::Clock::WIN_ROLLOVER_PROTECTED_TIME_GET_TIME: 114 case base::TimeTicks::Clock::WIN_ROLLOVER_PROTECTED_TIME_GET_TIME:
113 return "WIN_ROLLOVER_PROTECTED_TIME_GET_TIME"; 115 return "WIN_ROLLOVER_PROTECTED_TIME_GET_TIME";
(...skipping 817 matching lines...) Expand 10 before | Expand all | Expand 10 after
931 void TracingControllerImpl::RemoveTraceMessageFilterObserver( 933 void TracingControllerImpl::RemoveTraceMessageFilterObserver(
932 TraceMessageFilterObserver* observer) { 934 TraceMessageFilterObserver* observer) {
933 DCHECK_CURRENTLY_ON(BrowserThread::UI); 935 DCHECK_CURRENTLY_ON(BrowserThread::UI);
934 trace_message_filter_observers_.RemoveObserver(observer); 936 trace_message_filter_observers_.RemoveObserver(observer);
935 937
936 for (auto& filter : trace_message_filters_) 938 for (auto& filter : trace_message_filters_)
937 observer->OnTraceMessageFilterRemoved(filter.get()); 939 observer->OnTraceMessageFilterRemoved(filter.get());
938 } 940 }
939 941
940 } // namespace content 942 } // namespace content
OLDNEW
« no previous file with comments | « base/time/time_win.cc ('k') | tools/resource_prefetch_predictor/prefetch_predictor_tool.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698