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

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

Issue 2028043002: tracing: restructure to the components/tracing folder (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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/background_tracing_rule.h" 4 #include "content/browser/tracing/background_tracing_rule.h"
5 5
6 #include <string> 6 #include <string>
7 7
8 #include "base/bind.h" 8 #include "base/bind.h"
9 #include "base/metrics/histogram_macros.h" 9 #include "base/metrics/histogram_macros.h"
10 #include "base/metrics/statistics_recorder.h" 10 #include "base/metrics/statistics_recorder.h"
11 #include "base/rand_util.h" 11 #include "base/rand_util.h"
12 #include "base/strings/safe_sprintf.h" 12 #include "base/strings/safe_sprintf.h"
13 #include "base/values.h" 13 #include "base/values.h"
14 #include "components/tracing/tracing_messages.h" 14 #include "components/tracing/common/tracing_messages.h"
15 #include "content/browser/tracing/background_tracing_manager_impl.h" 15 #include "content/browser/tracing/background_tracing_manager_impl.h"
16 #include "content/browser/tracing/trace_message_filter.h" 16 #include "content/browser/tracing/trace_message_filter.h"
17 #include "content/public/browser/browser_thread.h" 17 #include "content/public/browser/browser_thread.h"
18 18
19 namespace { 19 namespace {
20 20
21 const char kConfigRuleKey[] = "rule"; 21 const char kConfigRuleKey[] = "rule";
22 const char kConfigCategoryKey[] = "category"; 22 const char kConfigCategoryKey[] = "category";
23 const char kConfigRuleTriggerNameKey[] = "trigger_name"; 23 const char kConfigRuleTriggerNameKey[] = "trigger_name";
24 const char kConfigRuleTriggerDelay[] = "trigger_delay"; 24 const char kConfigRuleTriggerDelay[] = "trigger_delay";
(...skipping 373 matching lines...) Expand 10 before | Expand all | Expand 10 after
398 tracing_rule = TraceAtRandomIntervalsRule::Create(dict); 398 tracing_rule = TraceAtRandomIntervalsRule::Create(dict);
399 } 399 }
400 400
401 if (tracing_rule) 401 if (tracing_rule)
402 tracing_rule->Setup(dict); 402 tracing_rule->Setup(dict);
403 403
404 return tracing_rule; 404 return tracing_rule;
405 } 405 }
406 406
407 } // namespace content 407 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698