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

Side by Side Diff: sky/engine/public/platform/WebConvertableToTraceFormat.h

Issue 889823002: Remove TRACE_EVENT indirection through blink::Platform (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 10 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 | « sky/engine/public/platform/Platform.h ('k') | sky/engine/testing/platform/platform_impl.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef SKY_ENGINE_PUBLIC_PLATFORM_WEBCONVERTABLETOTRACEFORMAT_H_
6 #define SKY_ENGINE_PUBLIC_PLATFORM_WEBCONVERTABLETOTRACEFORMAT_H_
7
8 #include "sky/engine/public/platform/WebPrivatePtr.h"
9 #include "sky/engine/public/platform/WebString.h"
10
11 namespace blink {
12
13 namespace TraceEvent {
14 class ConvertableToTraceFormat;
15 }
16
17 class WebConvertableToTraceFormat {
18 public:
19 WebConvertableToTraceFormat() { }
20 #if INSIDE_BLINK
21 WebConvertableToTraceFormat(TraceEvent::ConvertableToTraceFormat*);
22 #endif
23 ~WebConvertableToTraceFormat() { reset(); }
24
25 BLINK_PLATFORM_EXPORT WebString asTraceFormat() const;
26 BLINK_PLATFORM_EXPORT void assign(const WebConvertableToTraceFormat&);
27 BLINK_PLATFORM_EXPORT void reset();
28
29 WebConvertableToTraceFormat(const WebConvertableToTraceFormat& r) { assign(r ); }
30 WebConvertableToTraceFormat& operator=(const WebConvertableToTraceFormat& r)
31 {
32 assign(r);
33 return *this;
34 }
35
36 private:
37 WebPrivatePtr<TraceEvent::ConvertableToTraceFormat> m_private;
38 };
39
40 } // namespace blink
41
42 #endif // SKY_ENGINE_PUBLIC_PLATFORM_WEBCONVERTABLETOTRACEFORMAT_H_
OLDNEW
« no previous file with comments | « sky/engine/public/platform/Platform.h ('k') | sky/engine/testing/platform/platform_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698