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

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

Issue 7866033: [Windows] Include the about:flags experiments in crash reports. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: fix name Created 9 years, 3 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « chrome/browser/chrome_browser_main.cc ('k') | chrome/common/child_process_logging_linux.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 #pragma once 7 #pragma once
8 8
9 #include <set> 9 #include <set>
10 #include <string> 10 #include <string>
11 11
12 #include "base/basictypes.h" 12 #include "base/basictypes.h"
13 #include "base/mac/crash_logging.h" 13 #include "base/mac/crash_logging.h"
14 #include "googleurl/src/gurl.h" 14 #include "googleurl/src/gurl.h"
15 15
16 class CommandLine;
16 struct GPUInfo; 17 struct GPUInfo;
17 18
18 #if defined(OS_WIN) || defined(OS_MACOSX) 19 #if defined(OS_WIN) || defined(OS_MACOSX)
19 // The maximum number of active extensions we will report. 20 // The maximum number of active extensions we will report.
20 // Also used in chrome/app, but we define it here to avoid a common->app 21 // Also used in chrome/app, but we define it here to avoid a common->app
21 // dependency. 22 // dependency.
22 static const int kMaxReportedActiveExtensions = 10; 23 static const int kMaxReportedActiveExtensions = 10;
23 #endif 24 #endif
24 25
25 namespace child_process_logging { 26 namespace child_process_logging {
(...skipping 28 matching lines...) Expand all
54 // - extension: the id of each extension running in this process (there can be 55 // - extension: the id of each extension running in this process (there can be
55 // multiple because of process collapsing). 56 // multiple because of process collapsing).
56 void SetActiveExtensions(const std::set<std::string>& extension_ids); 57 void SetActiveExtensions(const std::set<std::string>& extension_ids);
57 58
58 // Sets a number of views/tabs opened in this process. 59 // Sets a number of views/tabs opened in this process.
59 void SetNumberOfViews(int number_of_views); 60 void SetNumberOfViews(int number_of_views);
60 61
61 // Sets the data on the gpu to send along with crash reports. 62 // Sets the data on the gpu to send along with crash reports.
62 void SetGpuInfo(const GPUInfo& gpu_info); 63 void SetGpuInfo(const GPUInfo& gpu_info);
63 64
65 // Sets the command line arguments to send along with crash reports to the
66 // values in |command_line|.
67 void SetCommandLine(const CommandLine* command_line);
68
64 // Simple wrapper class that sets the active URL in it's constructor and clears 69 // Simple wrapper class that sets the active URL in it's constructor and clears
65 // the active URL in the destructor. 70 // the active URL in the destructor.
66 class ScopedActiveURLSetter { 71 class ScopedActiveURLSetter {
67 public: 72 public:
68 explicit ScopedActiveURLSetter(const GURL& url) { 73 explicit ScopedActiveURLSetter(const GURL& url) {
69 SetActiveURL(url); 74 SetActiveURL(url);
70 } 75 }
71 76
72 ~ScopedActiveURLSetter() { 77 ~ScopedActiveURLSetter() {
73 SetActiveURL(GURL()); 78 SetActiveURL(GURL());
(...skipping 15 matching lines...) Expand all
89 94
90 extern const int kMaxNumCrashURLChunks; 95 extern const int kMaxNumCrashURLChunks;
91 extern const int kMaxNumURLChunkValueLength; 96 extern const int kMaxNumURLChunkValueLength;
92 extern const char *kUrlChunkFormatStr; 97 extern const char *kUrlChunkFormatStr;
93 98
94 } // namespace child_process_logging 99 } // namespace child_process_logging
95 100
96 #endif // defined(OS_MACOSX) 101 #endif // defined(OS_MACOSX)
97 102
98 #endif // CHROME_COMMON_CHILD_PROCESS_LOGGING_H_ 103 #endif // CHROME_COMMON_CHILD_PROCESS_LOGGING_H_
OLDNEW
« no previous file with comments | « chrome/browser/chrome_browser_main.cc ('k') | chrome/common/child_process_logging_linux.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698