devtools_manager_delegate.h 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. // Copyright (c) 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-CHROMIUM file.
  4. #ifndef BRIGHTRAY_BROWSER_DEVTOOLS_MANAGER_DELEGATE_H_
  5. #define BRIGHTRAY_BROWSER_DEVTOOLS_MANAGER_DELEGATE_H_
  6. #include <string>
  7. #include "base/compiler_specific.h"
  8. #include "base/macros.h"
  9. #include "content/public/browser/devtools_manager_delegate.h"
  10. namespace brightray {
  11. class DevToolsManagerDelegate : public content::DevToolsManagerDelegate {
  12. public:
  13. static void StartHttpHandler();
  14. DevToolsManagerDelegate();
  15. ~DevToolsManagerDelegate() override;
  16. // DevToolsManagerDelegate implementation.
  17. void Inspect(content::DevToolsAgentHost* agent_host) override;
  18. bool HandleCommand(content::DevToolsAgentHost* agent_host,
  19. int session_id,
  20. base::DictionaryValue* command) override;
  21. scoped_refptr<content::DevToolsAgentHost> CreateNewTarget(
  22. const GURL& url) override;
  23. std::string GetDiscoveryPageHTML() override;
  24. std::string GetFrontendResource(const std::string& path) override;
  25. private:
  26. DISALLOW_COPY_AND_ASSIGN(DevToolsManagerDelegate);
  27. };
  28. } // namespace brightray
  29. #endif // BRIGHTRAY_BROWSER_DEVTOOLS_MANAGER_DELEGATE_H_