| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 "content/shell/browser/shell_net_log.h" | 5 #include "content/shell/browser/shell_net_log.h" |
| 6 | 6 |
| 7 #include <stdio.h> | 7 #include <stdio.h> |
| 8 | 8 |
| 9 #include "base/command_line.h" | 9 #include "base/command_line.h" |
| 10 #include "base/files/file_path.h" | 10 #include "base/files/file_path.h" |
| 11 #include "base/files/scoped_file.h" | 11 #include "base/files/scoped_file.h" |
| 12 #include "base/values.h" | 12 #include "base/values.h" |
| 13 #include "build/build_config.h" |
| 13 #include "content/public/common/content_switches.h" | 14 #include "content/public/common/content_switches.h" |
| 14 #include "net/log/net_log_util.h" | 15 #include "net/log/net_log_util.h" |
| 15 #include "net/log/write_to_file_net_log_observer.h" | 16 #include "net/log/write_to_file_net_log_observer.h" |
| 16 | 17 |
| 17 namespace content { | 18 namespace content { |
| 18 | 19 |
| 19 namespace { | 20 namespace { |
| 20 | 21 |
| 21 base::DictionaryValue* GetShellConstants(const std::string& app_name) { | 22 base::DictionaryValue* GetShellConstants(const std::string& app_name) { |
| 22 scoped_ptr<base::DictionaryValue> constants_dict = net::GetNetConstants(); | 23 scoped_ptr<base::DictionaryValue> constants_dict = net::GetNetConstants(); |
| (...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 70 } | 71 } |
| 71 } | 72 } |
| 72 | 73 |
| 73 ShellNetLog::~ShellNetLog() { | 74 ShellNetLog::~ShellNetLog() { |
| 74 // Remove the observer we own before we're destroyed. | 75 // Remove the observer we own before we're destroyed. |
| 75 if (write_to_file_observer_) | 76 if (write_to_file_observer_) |
| 76 write_to_file_observer_->StopObserving(nullptr); | 77 write_to_file_observer_->StopObserving(nullptr); |
| 77 } | 78 } |
| 78 | 79 |
| 79 } // namespace content | 80 } // namespace content |
| OLD | NEW |