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

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

Issue 15745014: Move GPU device/driver info related code from content to gpu. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: rebase Created 7 years, 7 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/ui/webui/flash_ui.cc ('k') | chrome/common/child_process_logging_mac.mm » ('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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 <set> 8 #include <set>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
11 11
12 #include "base/basictypes.h" 12 #include "base/basictypes.h"
13 #include "base/debug/crash_logging.h" 13 #include "base/debug/crash_logging.h"
14 #include "base/string16.h" 14 #include "base/string16.h"
15 #include "googleurl/src/gurl.h" 15 #include "googleurl/src/gurl.h"
16 16
17 class CommandLine; 17 class CommandLine;
18 18
19 namespace content { 19 namespace gpu {
20 struct GPUInfo; 20 struct GPUInfo;
21 } 21 }
22 22
23 // The maximum number of active extensions we will report. 23 // The maximum number of active extensions we will report.
24 // Also used in chrome/app, but we define it here to avoid a common->app 24 // Also used in chrome/app, but we define it here to avoid a common->app
25 // dependency. 25 // dependency.
26 static const size_t kMaxReportedActiveExtensions = 10; 26 static const size_t kMaxReportedActiveExtensions = 10;
27 27
28 // The maximum number of variation chunks we will report. 28 // The maximum number of variation chunks we will report.
29 // Also used in chrome/app, but we define it here to avoid a common->app 29 // Also used in chrome/app, but we define it here to avoid a common->app
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
95 // - browser: all enabled extensions 95 // - browser: all enabled extensions
96 // - renderer: the unique set of extension ids from all content scripts 96 // - renderer: the unique set of extension ids from all content scripts
97 // - extension: the id of each extension running in this process (there can be 97 // - extension: the id of each extension running in this process (there can be
98 // multiple because of process collapsing). 98 // multiple because of process collapsing).
99 void SetActiveExtensions(const std::set<std::string>& extension_ids); 99 void SetActiveExtensions(const std::set<std::string>& extension_ids);
100 100
101 // Sets a number of views/tabs opened in this process. 101 // Sets a number of views/tabs opened in this process.
102 void SetNumberOfViews(int number_of_views); 102 void SetNumberOfViews(int number_of_views);
103 103
104 // Sets the data on the gpu to send along with crash reports. 104 // Sets the data on the gpu to send along with crash reports.
105 void SetGpuInfo(const content::GPUInfo& gpu_info); 105 void SetGpuInfo(const gpu::GPUInfo& gpu_info);
106 106
107 // Sets the data on the printer to send along with crash reports. Data may be 107 // Sets the data on the printer to send along with crash reports. Data may be
108 // separated by ';' up to kMaxReportedPrinterRecords strings. Each substring 108 // separated by ';' up to kMaxReportedPrinterRecords strings. Each substring
109 // would be cut to 63 chars. 109 // would be cut to 63 chars.
110 void SetPrinterInfo(const char* printer_info); 110 void SetPrinterInfo(const char* printer_info);
111 111
112 // Sets the command line arguments to send along with crash reports to the 112 // Sets the command line arguments to send along with crash reports to the
113 // values in |command_line|. 113 // values in |command_line|.
114 void SetCommandLine(const CommandLine* command_line); 114 void SetCommandLine(const CommandLine* command_line);
115 115
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
164 164
165 extern const size_t kMaxNumCrashURLChunks; 165 extern const size_t kMaxNumCrashURLChunks;
166 extern const size_t kMaxNumURLChunkValueLength; 166 extern const size_t kMaxNumURLChunkValueLength;
167 extern const char* kUrlChunkFormatStr; 167 extern const char* kUrlChunkFormatStr;
168 168
169 } // namespace child_process_logging 169 } // namespace child_process_logging
170 170
171 #endif // defined(OS_MACOSX) 171 #endif // defined(OS_MACOSX)
172 172
173 #endif // CHROME_COMMON_CHILD_PROCESS_LOGGING_H_ 173 #endif // CHROME_COMMON_CHILD_PROCESS_LOGGING_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/webui/flash_ui.cc ('k') | chrome/common/child_process_logging_mac.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698