Roll src/third_party/WebKit eac3800:0237a66 (svn 202606:202607)
[chromium-blink-merge.git] / chrome / test / chromedriver / chrome / chrome_remote_impl.cc
blob1ecb77b0e60da485e0643f855c44bf81eec6f28d
1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #include "chrome/test/chromedriver/chrome/chrome_remote_impl.h"
6 #include "chrome/test/chromedriver/chrome/devtools_client.h"
7 #include "chrome/test/chromedriver/chrome/devtools_http_client.h"
8 #include "chrome/test/chromedriver/chrome/status.h"
9 #include "chrome/test/chromedriver/net/port_server.h"
11 ChromeRemoteImpl::ChromeRemoteImpl(
12 scoped_ptr<DevToolsHttpClient> http_client,
13 scoped_ptr<DevToolsClient> websocket_client,
14 ScopedVector<DevToolsEventListener>& devtools_event_listeners)
15 : ChromeImpl(http_client.Pass(),
16 websocket_client.Pass(),
17 devtools_event_listeners,
18 scoped_ptr<PortReservation>()) {}
20 ChromeRemoteImpl::~ChromeRemoteImpl() {}
22 Status ChromeRemoteImpl::GetAsDesktop(ChromeDesktopImpl** desktop) {
23 return Status(kUnknownError,
24 "operation is unsupported with remote debugging");
27 std::string ChromeRemoteImpl::GetOperatingSystemName() {
28 return std::string();
31 Status ChromeRemoteImpl::QuitImpl() {
32 return Status(kOk);