Chromium Code Reviews| Index: components/devtools_bridge/client/web_client.h |
| diff --git a/components/devtools_bridge/client/web_client.h b/components/devtools_bridge/client/web_client.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..7d83f6d7ee8de3daf3871925886bf29019374e25 |
| --- /dev/null |
| +++ b/components/devtools_bridge/client/web_client.h |
| @@ -0,0 +1,46 @@ |
| +// Copyright (c) 2012 The Chromium Authors. All rights reserved. |
|
mnaganov (inactive)
2014/11/20 19:02:42
nit: "(c) 2012" -> "2014"
SeRya
2014/11/20 21:10:39
Done.
|
| +// Use of this source code is governed by a BSD-style license that can be |
| +// found in the LICENSE file. |
| + |
| +#ifndef COMPONENTS_DEVTOOLS_BRIDGE_CLIENT_WEB_CLIENT_H_ |
| +#define COMPONENTS_DEVTOOLS_BRIDGE_CLIENT_WEB_CLIENT_H_ |
| + |
| +#include "base/memory/scoped_ptr.h" |
| + |
| +namespace content { |
| +class BrowserContext; |
| +} |
| + |
| +namespace devtools_bridge { |
| + |
| +/** |
| + * Client for DevTools Bridge for desktop Chrome. Uses WebContents to host |
| + * JavaScript implementation (therefore lives on the UI thread and must be |
| + * destroyed before |context|). WebContents works as a sandbox for WebRTC |
| + * related code. |
| + */ |
| +class WebClient { |
| + public: |
| + class Delegate { |
| + public: |
| + |
| + // TODO(serya): implement |
| + }; |
| + |
| + virtual ~WebClient() {} |
| + |
| + static scoped_ptr<WebClient> CreateInstance( |
| + content::BrowserContext* context, Delegate* delegate); |
| + |
| + // TODO(serya): Implement. |
| + |
| + protected: |
| + WebClient() {} |
| + |
| + private: |
| + DISALLOW_COPY_AND_ASSIGN(WebClient); |
| +}; |
| + |
| +} // namespace devtools_bridge |
| + |
| +#endif // COMPONENTS_DEVTOOLS_BRIDGE_CLIENT_WEB_CLIENT_H_ |