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

Side by Side Diff: chrome/browser/extensions/api/record/record_api.cc

Issue 10696144: Moving record API to api/record/ . (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 8 years, 5 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
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 #include "chrome/browser/extensions/extension_record_api.h" 5 #include "chrome/browser/extensions/api/record/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 extensions {
24
25 namespace record = api::experimental_record;
24 26
25 ProcessStrategy::~ProcessStrategy() {} 27 ProcessStrategy::~ProcessStrategy() {}
26 28
27 void ProductionProcessStrategy::RunProcess(const CommandLine& line, 29 void ProductionProcessStrategy::RunProcess(const CommandLine& line,
28 std::vector<std::string>* errors) { 30 std::vector<std::string>* errors) {
29 base::LaunchOptions options; 31 base::LaunchOptions options;
30 base::ProcessHandle handle; 32 base::ProcessHandle handle;
31 33
32 base::LaunchProcess(line, options, &handle); 34 base::LaunchProcess(line, options, &handle);
33 35
(...skipping 208 matching lines...) Expand 10 before | Expand all | Expand 10 after
242 record::ReplayURLsResult result; 244 record::ReplayURLsResult result;
243 245
244 result.run_time = run_time_ms_; 246 result.run_time = run_time_ms_;
245 result.stats = stats_; 247 result.stats = stats_;
246 result.errors = errors_; 248 result.errors = errors_;
247 249
248 result_.reset(record::ReplayURLs::Result::Create(result)); 250 result_.reset(record::ReplayURLs::Result::Create(result));
249 SendResponse(true); 251 SendResponse(true);
250 } 252 }
251 253
254 } // namespace extensions
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698