summaryrefslogtreecommitdiffstats
path: root/chrome/common/child_process_logging.h
diff options
context:
space:
mode:
authornsylvain@chromium.org <nsylvain@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-07-08 20:16:38 +0000
committernsylvain@chromium.org <nsylvain@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-07-08 20:16:38 +0000
commitce185864d3ef3d2a3fd40ae93300a5858f961c94 (patch)
treec8a6e9f9fc755f872cdc1f384148296a81bfc501 /chrome/common/child_process_logging.h
parent09f83fa89c9ab23b5f9623b06f1322850d21a15a (diff)
downloadchromium_src-ce185864d3ef3d2a3fd40ae93300a5858f961c94.zip
chromium_src-ce185864d3ef3d2a3fd40ae93300a5858f961c94.tar.gz
chromium_src-ce185864d3ef3d2a3fd40ae93300a5858f961c94.tar.bz2
Revert change 20173 because it breaks the ui_tests, plugin_tests
and most likely some page cyclers. Review URL: http://codereview.chromium.org/155236 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@20180 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/common/child_process_logging.h')
-rw-r--r--chrome/common/child_process_logging.h55
1 files changed, 0 insertions, 55 deletions
diff --git a/chrome/common/child_process_logging.h b/chrome/common/child_process_logging.h
deleted file mode 100644
index 43b34d2..0000000
--- a/chrome/common/child_process_logging.h
+++ /dev/null
@@ -1,55 +0,0 @@
-// Copyright (c) 2009 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#ifndef CHROME_COMMON_CHILD_PROCESS_LOGGING_H_
-#define CHROME_COMMON_CHILD_PROCESS_LOGGING_H_
-
-#include "base/basictypes.h"
-#include "googleurl/src/gurl.h"
-
-namespace child_process_logging {
-
-// Sets the URL that is logged if the child process crashes. Use GURL() to clear
-// the URL.
-void SetActiveURL(const GURL& url);
-
-// Simple wrapper class that sets the active URL in it's constructor and clears
-// the active URL in the destructor.
-class ScopedActiveURLSetter {
- public:
- explicit ScopedActiveURLSetter(const GURL& url) {
- SetActiveURL(url);
- }
-
- ~ScopedActiveURLSetter() {
- SetActiveURL(GURL());
- }
-
- private:
- DISALLOW_COPY_AND_ASSIGN(ScopedActiveURLSetter);
-};
-
-} // namespace child_process_logging
-
-#if defined(OS_MACOSX) && __OBJC__
-// Exported for testing purposes.
-
-@class NSString;
-
-typedef void (*SetCrashKeyValueFuncPtr)(NSString*, NSString*);
-typedef void (*ClearCrashKeyValueFuncPtr)(NSString*);
-
-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 child_process_logging
-
-#endif // defined(OS_MACOSX) && __OBJC__
-
-#endif // CHROME_COMMON_CHILD_PROCESS_LOGGING_H_