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

Side by Side Diff: third_party/WebKit/public/platform/WebTraceLocation.h

Issue 1362973004: Rename FROM_HERE to BLINK_FROM_HERE. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: update Created 5 years, 2 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 | « third_party/WebKit/Source/web/tests/WebViewTest.cpp ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 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 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 4
5 #ifndef WebTraceLocation_h 5 #ifndef WebTraceLocation_h
6 #define WebTraceLocation_h 6 #define WebTraceLocation_h
7 7
8 #include "WebCommon.h" 8 #include "WebCommon.h"
9 9
10 namespace blink { 10 namespace blink {
11 11
12 // This class is used to keep track of where posted tasks originate. See base/lo cation.h in Chromium. 12 // This class is used to keep track of where posted tasks originate. See base/lo cation.h in Chromium.
13 // Currently only store the bits used in Blink, base::Location stores more. 13 // Currently only store the bits used in Blink, base::Location stores more.
14 class BLINK_PLATFORM_EXPORT WebTraceLocation { 14 class BLINK_PLATFORM_EXPORT WebTraceLocation {
15 public: 15 public:
16 // These char*s are not copied and must live for the duration of the program . 16 // These char*s are not copied and must live for the duration of the program .
17 WebTraceLocation(const char* function, const char* file); 17 WebTraceLocation(const char* function, const char* file);
18 WebTraceLocation(); 18 WebTraceLocation();
19 19
20 const char* functionName() const; 20 const char* functionName() const;
21 const char* fileName() const; 21 const char* fileName() const;
22 22
23 private: 23 private:
24 const char* m_functionName; 24 const char* m_functionName;
25 const char* m_fileName; 25 const char* m_fileName;
26 }; 26 };
27 27
28 #if INSIDE_BLINK 28 #define BLINK_FROM_HERE ::blink::WebTraceLocation(__FUNCTION__, __FILE__)
29 #define FROM_HERE ::blink::WebTraceLocation(__FUNCTION__, __FILE__)
30 #endif // INSIDE_BLINK
31 29
32 } 30 }
33 31
34 #endif // WebTraceLocation_h 32 #endif // WebTraceLocation_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/web/tests/WebViewTest.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698