Index: content/browser/devtools/protocol/browser_handler.h |
diff --git a/content/browser/devtools/protocol/browser_handler.h b/content/browser/devtools/protocol/browser_handler.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..c1d6b2cfeca68a24d1f3d5bbbdd2864db650b991 |
--- /dev/null |
+++ b/content/browser/devtools/protocol/browser_handler.h |
@@ -0,0 +1,40 @@ |
+// Copyright 2017 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 CONTENT_BROWSER_DEVTOOLS_PROTOCOL_BROWSER_HANDLER_H_ |
+#define CONTENT_BROWSER_DEVTOOLS_PROTOCOL_BROWSER_HANDLER_H_ |
+ |
+#include <memory> |
+ |
+#include "base/macros.h" |
+#include "content/browser/devtools/protocol/browser.h" |
+#include "content/browser/devtools/protocol/devtools_domain_handler.h" |
+ |
+namespace content { |
+namespace protocol { |
+ |
+// This class implements reversed tethering handler. |
dgozman
2017/03/22 21:28:34
Wrong comment :-)
|
+class BrowserHandler : public DevToolsDomainHandler, public Browser::Backend { |
+ public: |
+ BrowserHandler(); |
+ ~BrowserHandler() override; |
+ |
+ void Wire(UberDispatcher* dispatcher) override; |
+ Response GetWindowForTarget( |
+ const String& targetId, |
+ int* windowId, |
+ std::unique_ptr<Browser::Bounds>* bounds) override; |
+ Response GetWindowBounds(int windowId, |
+ std::unique_ptr<Browser::Bounds>* bounds) override; |
+ Response SetWindowBounds(int windowId, |
+ std::unique_ptr<Browser::Bounds> bounds) override; |
+ |
+ private: |
+ DISALLOW_COPY_AND_ASSIGN(BrowserHandler); |
+}; |
+ |
+} // namespace protocol |
+} // namespace content |
+ |
+#endif // CONTENT_BROWSER_DEVTOOLS_PROTOCOL_BROWSER_HANDLER_H_ |