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.
5 #ifndef WebTraceLocation_h
6 #define WebTraceLocation_h
10 // This class is used to keep track of where posted tasks originate. See base/location.h in Chromium.
11 class WebTraceLocation {
13 // The strings passed in are not copied and must live for the duration of the program.
14 WebTraceLocation(const char* functionName, const char* fileName)
15 : m_functionName(functionName)
16 , m_fileName(fileName)
19 const char* functionName() const { return m_functionName; }
20 const char* fileName() const { return m_fileName; }
23 const char* m_functionName;
24 const char* m_fileName;
29 #endif // WebTraceLocation_h