| OLD | NEW |
| 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> |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 54 // - extension: the id of each extension running in this process (there can be | 54 // - extension: the id of each extension running in this process (there can be |
| 55 // multiple because of process collapsing). | 55 // multiple because of process collapsing). |
| 56 void SetActiveExtensions(const std::set<std::string>& extension_ids); | 56 void SetActiveExtensions(const std::set<std::string>& extension_ids); |
| 57 | 57 |
| 58 // Sets a number of views/tabs opened in this process. | 58 // Sets a number of views/tabs opened in this process. |
| 59 void SetNumberOfViews(int number_of_views); | 59 void SetNumberOfViews(int number_of_views); |
| 60 | 60 |
| 61 // Sets the data on the gpu to send along with crash reports. | 61 // Sets the data on the gpu to send along with crash reports. |
| 62 void SetGpuInfo(const GPUInfo& gpu_info); | 62 void SetGpuInfo(const GPUInfo& gpu_info); |
| 63 | 63 |
| 64 // Sets the command line arguments to send along with crash reports to the |
| 65 // current value of CommandLine::ForCurrentProcess(). |
| 66 void SetCommandLineFromCurrent(); |
| 67 |
| 64 // Simple wrapper class that sets the active URL in it's constructor and clears | 68 // Simple wrapper class that sets the active URL in it's constructor and clears |
| 65 // the active URL in the destructor. | 69 // the active URL in the destructor. |
| 66 class ScopedActiveURLSetter { | 70 class ScopedActiveURLSetter { |
| 67 public: | 71 public: |
| 68 explicit ScopedActiveURLSetter(const GURL& url) { | 72 explicit ScopedActiveURLSetter(const GURL& url) { |
| 69 SetActiveURL(url); | 73 SetActiveURL(url); |
| 70 } | 74 } |
| 71 | 75 |
| 72 ~ScopedActiveURLSetter() { | 76 ~ScopedActiveURLSetter() { |
| 73 SetActiveURL(GURL()); | 77 SetActiveURL(GURL()); |
| (...skipping 15 matching lines...) Expand all Loading... |
| 89 | 93 |
| 90 extern const int kMaxNumCrashURLChunks; | 94 extern const int kMaxNumCrashURLChunks; |
| 91 extern const int kMaxNumURLChunkValueLength; | 95 extern const int kMaxNumURLChunkValueLength; |
| 92 extern const char *kUrlChunkFormatStr; | 96 extern const char *kUrlChunkFormatStr; |
| 93 | 97 |
| 94 } // namespace child_process_logging | 98 } // namespace child_process_logging |
| 95 | 99 |
| 96 #endif // defined(OS_MACOSX) | 100 #endif // defined(OS_MACOSX) |
| 97 | 101 |
| 98 #endif // CHROME_COMMON_CHILD_PROCESS_LOGGING_H_ | 102 #endif // CHROME_COMMON_CHILD_PROCESS_LOGGING_H_ |
| OLD | NEW |