Chromium Code Reviews| Index: content/browser/tracing/background_tracing_scenario.h |
| diff --git a/content/browser/tracing/background_tracing_scenario.h b/content/browser/tracing/background_tracing_scenario.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..1a8cdb69ecf52946e3466db80ca0c26771045a0a |
| --- /dev/null |
| +++ b/content/browser/tracing/background_tracing_scenario.h |
| @@ -0,0 +1,33 @@ |
| +// Copyright 2015 The Chromium Authors. All rights reserved. |
| +// Use of this source code is governed by a BSD-style license that can be |
| +// found in the LICENSE file. |
| + |
| +#ifndef CONTENT_BROWSER_TRACING_BACKGROUND_TRACING_SCENARIO_H_ |
| +#define CONTENT_BROWSER_TRACING_BACKGROUND_TRACING_SCENARIO_H_ |
| + |
| +#include "base/memory/ref_counted_memory.h" |
| +#include "base/memory/scoped_ptr.h" |
| +#include "base/memory/weak_ptr.h" |
| +#include "base/trace_event/trace_event_impl.h" |
| +#include "content/common/content_export.h" |
| + |
| +class BackgroundTracingEndpoint; |
| + |
| +class CONTENT_EXPORT BackgroundTracingScenario |
| + : public base::RefCounted<BackgroundTracingScenario> { |
| + public: |
| + BackgroundTracingScenario(scoped_refptr<BackgroundTracingEndpoint>); |
|
dsinclair
2015/05/01 15:46:15
nit: explicit
|
| + |
| + scoped_refptr<BackgroundTracingEndpoint> GetEndpoint(); |
| + |
| + virtual base::trace_event::CategoryFilter GetCategoryFilter() const; |
| + |
| + protected: |
| + virtual ~BackgroundTracingScenario(); |
| + |
| + scoped_refptr<BackgroundTracingEndpoint> endpoint_; |
| + |
| + friend class base::RefCounted<BackgroundTracingScenario>; |
| +}; |
|
dsinclair
2015/05/01 15:46:15
Do these get copied or does this need a DISALLOW_C
|
| + |
| +#endif // CONTENT_BROWSER_TRACING_BACKGROUND_TRACING_SCENARIO_H_ |