summaryrefslogtreecommitdiffstats
path: root/chrome/common/child_process_logging.h
diff options
context:
space:
mode:
authoraa@chromium.org <aa@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-12-02 03:22:35 +0000
committeraa@chromium.org <aa@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-12-02 03:22:35 +0000
commitaab98a5a0e9dc69bfea24ad796807e67abe53cea (patch)
tree14987b854a05368ffd9cb6b03a4adb57577db366 /chrome/common/child_process_logging.h
parent647eb03cbf4fa882d17abc4ee24abc3478f4dc52 (diff)
downloadchromium_src-aab98a5a0e9dc69bfea24ad796807e67abe53cea.zip
chromium_src-aab98a5a0e9dc69bfea24ad796807e67abe53cea.tar.gz
chromium_src-aab98a5a0e9dc69bfea24ad796807e67abe53cea.tar.bz2
Ok, here is a different approach at this change.
Instead of storing pointers into a vector, store offsets. That way, if the vector resizes, we should still be OK. Also, add a DCHECK that we only enter this method once, which is my current assumption. Review URL: http://codereview.chromium.org/457028 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@33541 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/common/child_process_logging.h')
-rw-r--r--chrome/common/child_process_logging.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/chrome/common/child_process_logging.h b/chrome/common/child_process_logging.h
index aa336af..513359f 100644
--- a/chrome/common/child_process_logging.h
+++ b/chrome/common/child_process_logging.h
@@ -5,6 +5,8 @@
#ifndef CHROME_COMMON_CHILD_PROCESS_LOGGING_H_
#define CHROME_COMMON_CHILD_PROCESS_LOGGING_H_
+#include <vector>
+
#include "base/basictypes.h"
#include "googleurl/src/gurl.h"
@@ -17,6 +19,14 @@ void SetActiveURL(const GURL& url);
// Sets the Client ID that is used as GUID if a Chrome process crashes.
void SetClientId(const std::string& client_id);
+// Sets the list of "active" extensions in this process. We overload "active" to
+// mean different things depending on the process type:
+// - browser: all enabled extensions
+// - renderer: the unique set of extension ids from all content scripts
+// - extension: the id of each extension running in this process (there can be
+// multiple because of process collapsing).
+void SetActiveExtensions(const std::vector<std::string>& extension_ids);
+
// Simple wrapper class that sets the active URL in it's constructor and clears
// the active URL in the destructor.
class ScopedActiveURLSetter {