OLD | NEW |
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 #include "chrome/browser/extensions/extension_record_api.h" | 5 #include "chrome/browser/extensions/extension_record_api.h" |
6 | 6 |
7 #include "base/bind.h" | 7 #include "base/bind.h" |
8 #include "base/command_line.h" | 8 #include "base/command_line.h" |
9 #include "base/file_util.h" | 9 #include "base/file_util.h" |
10 #include "base/logging.h" | 10 #include "base/logging.h" |
11 #include "base/memory/ref_counted.h" | 11 #include "base/memory/ref_counted.h" |
12 #include "base/process_util.h" | 12 #include "base/process_util.h" |
13 #include "base/string_number_conversions.h" | 13 #include "base/string_number_conversions.h" |
14 #include "base/string_split.h" | 14 #include "base/string_split.h" |
15 #include "base/string_util.h" | 15 #include "base/string_util.h" |
16 #include "base/utf_string_conversions.h" | 16 #include "base/utf_string_conversions.h" |
17 | 17 |
18 #include "chrome/common/chrome_switches.h" | 18 #include "chrome/common/chrome_switches.h" |
19 #include "chrome/common/extensions/api/experimental.record.h" | 19 #include "chrome/common/extensions/api/experimental_record.h" |
20 #include "content/public/browser/browser_thread.h" | 20 #include "content/public/browser/browser_thread.h" |
21 #include "content/public/common/content_switches.h" | 21 #include "content/public/common/content_switches.h" |
22 | 22 |
23 namespace record = extensions::api::experimental_record; | 23 namespace record = extensions::api::experimental_record; |
24 | 24 |
25 ProcessStrategy::~ProcessStrategy() {} | 25 ProcessStrategy::~ProcessStrategy() {} |
26 | 26 |
27 void ProductionProcessStrategy::RunProcess(const CommandLine& line) { | 27 void ProductionProcessStrategy::RunProcess(const CommandLine& line) { |
28 base::LaunchOptions options; | 28 base::LaunchOptions options; |
29 | 29 |
(...skipping 205 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
235 record::ReplayURLsResult result; | 235 record::ReplayURLsResult result; |
236 | 236 |
237 result.run_time = run_time_ms_; | 237 result.run_time = run_time_ms_; |
238 result.stats = stats_; | 238 result.stats = stats_; |
239 result.errors = errors_; | 239 result.errors = errors_; |
240 | 240 |
241 result_.reset(record::ReplayURLs::Result::Create(result)); | 241 result_.reset(record::ReplayURLs::Result::Create(result)); |
242 SendResponse(true); | 242 SendResponse(true); |
243 } | 243 } |
244 | 244 |
OLD | NEW |