OLD | NEW |
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 #include "chrome/common/child_process_logging.h" | 5 #include "chrome/common/child_process_logging.h" |
6 | 6 |
7 #include <string> | 7 #include <string> |
8 | 8 |
9 #include "base/logging.h" | 9 #include "base/logging.h" |
10 #include "googleurl/src/gurl.h" | 10 #include "googleurl/src/gurl.h" |
11 | 11 |
12 namespace child_process_logging { | 12 namespace child_process_logging { |
13 | 13 |
14 // We use a static string to hold the most recent active url. If we crash, the | 14 // We use a static string to hold the most recent active url. If we crash, the |
15 // crash handler code will send the contents of this string to the browser. | 15 // crash handler code will send the contents of this string to the browser. |
16 std::string active_url; | 16 std::string active_url; |
17 | 17 |
18 void SetActiveURL(const GURL& url) { | 18 void SetActiveURL(const GURL& url) { |
19 active_url = url.possibly_invalid_spec(); | 19 active_url = url.possibly_invalid_spec(); |
20 } | 20 } |
21 | 21 |
22 } // namespace child_process_logging | 22 } // namespace child_process_logging |
OLD | NEW |