blob: 937508e00c1d306d8dfa4018deccd1216943dc07 [file] [log] [blame]
// Copyright (c) 2019 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.
// ChromeDriver and Clients must use command ids to keep track of the commands
// being sent to DevTools. This static class contains logic for determining
// whether or not a command originated the client or chromedriver. This class
// is used in devtools_client_impl to determine log output and
// sync_websocket_impl to determine whether a received message should be
// processed to ChromeDriver or sent to the client.
class CommandId {
// ChromeDriverCommandIds must be positive
static bool IsChromeDriverCommandId(int command_id);
// ClientCommandIds must be negative
static bool IsClientCommandId(int command_id);