1 // Copyright (c) 2011 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 CHROME_BROWSER_DEBUGGER_DEVTOOLS_HANDLER_H_ 6 #define CHROME_BROWSER_DEBUGGER_DEVTOOLS_HANDLER_H_ 7 #pragma once 8 9 #include "content/browser/renderer_host/render_view_host_observer.h" 10 11 class DevToolsHandler : public RenderViewHostObserver { 12 public: 13 explicit DevToolsHandler(RenderViewHost* render_view_host); 14 virtual ~DevToolsHandler(); 15 16 // RenderViewHostObserver overrides. 17 virtual bool OnMessageReceived(const IPC::Message& message); 18 19 private: 20 void OnForwardToAgent(const IPC::Message& message); 21 void OnForwardToClient(const IPC::Message& message); 22 void OnActivateWindow(); 23 void OnCloseWindow(); 24 void OnRequestDockWindow(); 25 void OnRequestUndockWindow(); 26 void OnRuntimePropertyChanged(const std::string& name, 27 const std::string& value); 28 29 DISALLOW_COPY_AND_ASSIGN(DevToolsHandler); 30 }; 31 32 #endif // CHROME_BROWSER_DEBUGGER_DEVTOOLS_HANDLER_H_ 33