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

Unified Diff: chrome/common/child_process_logging.h

Issue 149305: Add the page url to plugin crashes to aid debugging. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 5 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 | « chrome/chrome.gyp ('k') | chrome/common/child_process_logging_linux.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/common/child_process_logging.h
===================================================================
--- chrome/common/child_process_logging.h (revision 20096)
+++ chrome/common/child_process_logging.h (working copy)
@@ -2,35 +2,35 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef CHROME_RENDERER_RENDERER_LOGGING_H_
-#define CHROME_RENDERER_RENDERER_LOGGING_H_
+#ifndef CHROME_COMMON_CHILD_PROCESS_LOGGING_H_
+#define CHROME_COMMON_CHILD_PROCESS_LOGGING_H_
#include "base/basictypes.h"
#include "googleurl/src/gurl.h"
-namespace renderer_logging {
+namespace child_process_logging {
-// Sets the URL that is logged if the renderer crashes. Use GURL() to clear
+// Sets the URL that is logged if the child process crashes. Use GURL() to clear
// the URL.
-void SetActiveRendererURL(const GURL& url);
+void SetActiveURL(const GURL& url);
-// Simple wrapper class that sets the active rendering URL in it's constructor
-// and clears the active rendering URL in the destructor.
-class ScopedActiveRenderingURLSetter {
+// Simple wrapper class that sets the active URL in it's constructor and clears
+// the active URL in the destructor.
+class ScopedActiveURLSetter {
public:
- explicit ScopedActiveRenderingURLSetter(const GURL& url) {
- SetActiveRendererURL(url);
+ explicit ScopedActiveURLSetter(const GURL& url) {
+ SetActiveURL(url);
}
- ~ScopedActiveRenderingURLSetter() {
- SetActiveRendererURL(GURL());
+ ~ScopedActiveURLSetter() {
+ SetActiveURL(GURL());
}
private:
- DISALLOW_COPY_AND_ASSIGN(ScopedActiveRenderingURLSetter);
+ DISALLOW_COPY_AND_ASSIGN(ScopedActiveURLSetter);
};
-} // namespace renderer_logging
+} // namespace child_process_logging
#if defined(OS_MACOSX) && __OBJC__
// Exported for testing purposes.
@@ -40,16 +40,16 @@
typedef void (*SetCrashKeyValueFuncPtr)(NSString*, NSString*);
typedef void (*ClearCrashKeyValueFuncPtr)(NSString*);
-namespace renderer_logging {
-void SetActiveRendererURLImpl(const GURL& url,
- SetCrashKeyValueFuncPtr set_key_func,
- ClearCrashKeyValueFuncPtr clear_key_func);
+namespace child_process_logging {
+void SetActiveURLImpl(const GURL& url,
+ SetCrashKeyValueFuncPtr set_key_func,
+ ClearCrashKeyValueFuncPtr clear_key_func);
extern const int kMaxNumCrashURLChunks;
extern const int kMaxNumURLChunkValueLength;
extern const char *kUrlChunkFormatStr;
-} // namespace renderer_logging
+} // namespace child_process_logging
#endif // defined(OS_MACOSX) && __OBJC__
-#endif // CHROME_RENDERER_RENDERER_LOGGING_H_
+#endif // CHROME_COMMON_CHILD_PROCESS_LOGGING_H_
« no previous file with comments | « chrome/chrome.gyp ('k') | chrome/common/child_process_logging_linux.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698