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

Side by Side Diff: chrome/common/child_process_logging.h

Issue 448006: Revert 33255 - Report active extensions in crash reports. This only implement... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 11 years 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2009 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 CHROME_COMMON_CHILD_PROCESS_LOGGING_H_ 5 #ifndef CHROME_COMMON_CHILD_PROCESS_LOGGING_H_
6 #define CHROME_COMMON_CHILD_PROCESS_LOGGING_H_ 6 #define CHROME_COMMON_CHILD_PROCESS_LOGGING_H_
7 7
8 #include <vector>
9
10 #include "base/basictypes.h" 8 #include "base/basictypes.h"
11 #include "googleurl/src/gurl.h" 9 #include "googleurl/src/gurl.h"
12 10
13 namespace child_process_logging { 11 namespace child_process_logging {
14 12
15 // Sets the URL that is logged if the child process crashes. Use GURL() to clear 13 // Sets the URL that is logged if the child process crashes. Use GURL() to clear
16 // the URL. 14 // the URL.
17 void SetActiveURL(const GURL& url); 15 void SetActiveURL(const GURL& url);
18 16
19 // Sets the Client ID that is used as GUID if a Chrome process crashes. 17 // Sets the Client ID that is used as GUID if a Chrome process crashes.
20 void SetClientId(const std::string& client_id); 18 void SetClientId(const std::string& client_id);
21 19
22 // Sets the list of "active" extensions in this process. We overload "active" to
23 // mean different things depending on the process type:
24 // - browser: all enabled extensions
25 // - renderer: the unique set of extension ids from all content scripts
26 // - extension: the id of each extension running in this process (there can be
27 // multiple because of process collapsing).
28 void SetActiveExtensions(const std::vector<std::string>& extension_ids);
29
30 // Simple wrapper class that sets the active URL in it's constructor and clears 20 // Simple wrapper class that sets the active URL in it's constructor and clears
31 // the active URL in the destructor. 21 // the active URL in the destructor.
32 class ScopedActiveURLSetter { 22 class ScopedActiveURLSetter {
33 public: 23 public:
34 explicit ScopedActiveURLSetter(const GURL& url) { 24 explicit ScopedActiveURLSetter(const GURL& url) {
35 SetActiveURL(url); 25 SetActiveURL(url);
36 } 26 }
37 27
38 ~ScopedActiveURLSetter() { 28 ~ScopedActiveURLSetter() {
39 SetActiveURL(GURL()); 29 SetActiveURL(GURL());
(...skipping 20 matching lines...) Expand all
60 ClearCrashKeyValueFuncPtr clear_key_func); 50 ClearCrashKeyValueFuncPtr clear_key_func);
61 51
62 extern const int kMaxNumCrashURLChunks; 52 extern const int kMaxNumCrashURLChunks;
63 extern const int kMaxNumURLChunkValueLength; 53 extern const int kMaxNumURLChunkValueLength;
64 extern const char *kUrlChunkFormatStr; 54 extern const char *kUrlChunkFormatStr;
65 } // namespace child_process_logging 55 } // namespace child_process_logging
66 56
67 #endif // defined(OS_MACOSX) && __OBJC__ 57 #endif // defined(OS_MACOSX) && __OBJC__
68 58
69 #endif // CHROME_COMMON_CHILD_PROCESS_LOGGING_H_ 59 #endif // CHROME_COMMON_CHILD_PROCESS_LOGGING_H_
OLDNEW
« no previous file with comments | « chrome/browser/renderer_host/browser_render_process_host.cc ('k') | chrome/common/child_process_logging_linux.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698