OLD | NEW |
(Empty) | |
| 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. |
| 4 |
| 5 #ifndef COMPONENTS_DEVTOOLS_BRIDGE_CLIENT_WEB_CLIENT_H_ |
| 6 #define COMPONENTS_DEVTOOLS_BRIDGE_CLIENT_WEB_CLIENT_H_ |
| 7 |
| 8 #include "base/memory/scoped_ptr.h" |
| 9 |
| 10 namespace content { |
| 11 class BrowserContext; |
| 12 } |
| 13 |
| 14 namespace devtools_bridge { |
| 15 |
| 16 /** |
| 17 * Client for DevTools Bridge for desktop Chrome. Uses WebContents to host |
| 18 * JavaScript implementation (therefore lives on the UI thread and must be |
| 19 * destroyed before |context|). WebContents works as a sandbox for WebRTC |
| 20 * related code. |
| 21 */ |
| 22 class WebClient { |
| 23 public: |
| 24 class Delegate { |
| 25 public: |
| 26 |
| 27 // TODO(serya): implement |
| 28 }; |
| 29 |
| 30 virtual ~WebClient() {} |
| 31 |
| 32 static scoped_ptr<WebClient> CreateInstance( |
| 33 content::BrowserContext* context, Delegate* delegate); |
| 34 |
| 35 // TODO(serya): Implement. |
| 36 |
| 37 protected: |
| 38 WebClient() {} |
| 39 |
| 40 private: |
| 41 DISALLOW_COPY_AND_ASSIGN(WebClient); |
| 42 }; |
| 43 |
| 44 } // namespace devtools_bridge |
| 45 |
| 46 #endif // COMPONENTS_DEVTOOLS_BRIDGE_CLIENT_WEB_CLIENT_H_ |
OLD | NEW |