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

Unified Diff: webrtc/base/location.h

Issue 2877023002: Move webrtc/{base => rtc_base} (Closed)
Patch Set: update presubmit.py and DEPS include rules Created 3 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « webrtc/base/keep_ref_until_done.h ('k') | webrtc/base/location.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/base/location.h
diff --git a/webrtc/base/location.h b/webrtc/base/location.h
index 541be9ac141768a831b7e82975300a179d3f1e3f..432471c013b884da147cf93e81879b6a6271b172 100644
--- a/webrtc/base/location.h
+++ b/webrtc/base/location.h
@@ -11,47 +11,9 @@
#ifndef WEBRTC_BASE_LOCATION_H_
#define WEBRTC_BASE_LOCATION_H_
-#include <string>
-#include "webrtc/base/stringize_macros.h"
-
-namespace rtc {
-
-// Location provides basic info where of an object was constructed, or was
-// significantly brought to life.
-// This is a stripped down version of:
-// https://code.google.com/p/chromium/codesearch#chromium/src/base/location.h
-class Location {
- public:
- // Constructor should be called with a long-lived char*, such as __FILE__.
- // It assumes the provided value will persist as a global constant, and it
- // will not make a copy of it.
- //
- // TODO(deadbeef): Tracing is currently limited to 2 arguments, which is
- // why the file name and line number are combined into one argument.
- //
- // Once TracingV2 is available, separate the file name and line number.
- Location(const char* function_name, const char* file_and_line);
- Location();
- Location(const Location& other);
- Location& operator=(const Location& other);
-
- const char* function_name() const { return function_name_; }
- const char* file_and_line() const { return file_and_line_; }
-
- std::string ToString() const;
-
- private:
- const char* function_name_;
- const char* file_and_line_;
-};
-
-// Define a macro to record the current source location.
-#define RTC_FROM_HERE RTC_FROM_HERE_WITH_FUNCTION(__FUNCTION__)
-
-#define RTC_FROM_HERE_WITH_FUNCTION(function_name) \
- ::rtc::Location(function_name, __FILE__ ":" STRINGIZE(__LINE__))
-
-} // namespace rtc
+// This header is deprecated and is just left here temporarily during
+// refactoring. See https://bugs.webrtc.org/7634 for more details.
+#include "webrtc/rtc_base/location.h"
#endif // WEBRTC_BASE_LOCATION_H_
« no previous file with comments | « webrtc/base/keep_ref_until_done.h ('k') | webrtc/base/location.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698