blob: 5f6056eaf8c4becd0d446170b7b1519e7089cf04 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
|
// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef CHROME_TEST_CHROMEDRIVER_CHROME_IMPL_H_
#define CHROME_TEST_CHROMEDRIVER_CHROME_IMPL_H_
#include <list>
#include <string>
#include "base/compiler_specific.h"
#include "base/files/scoped_temp_dir.h"
#include "base/memory/ref_counted.h"
#include "base/memory/scoped_ptr.h"
#include "base/process.h"
#include "chrome/test/chromedriver/chrome.h"
class DevToolsClient;
class Status;
class URLRequestContextGetter;
class ChromeImpl : public Chrome {
public:
ChromeImpl(base::ProcessHandle process,
URLRequestContextGetter* context_getter,
base::ScopedTempDir* user_data_dir,
int port);
virtual ~ChromeImpl();
Status Init();
// Overridden from Chrome:
virtual Status Load(const std::string& url) OVERRIDE;
virtual Status Quit() OVERRIDE;
private:
base::ProcessHandle process_;
scoped_refptr<URLRequestContextGetter> context_getter_;
base::ScopedTempDir user_data_dir_;
int port_;
scoped_ptr<DevToolsClient> client_;
};
namespace internal {
Status ParsePagesInfo(const std::string& data,
std::list<std::string>* debugger_urls);
} // namespace internal
#endif // CHROME_TEST_CHROMEDRIVER_CHROME_IMPL_H_
|