1 // Copyright (c) 2010 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_AUTOMATION_AUTOMATION_RESOURCE_ROUTING_DELEGATE_H_ 6 #define CHROME_BROWSER_AUTOMATION_AUTOMATION_RESOURCE_ROUTING_DELEGATE_H_ 7 #pragma once 8 9 #include "base/basictypes.h" 10 11 class RenderViewHost; 12 13 // Interface for registering RenderViewHost instances for resource routing 14 // automation. 15 class AutomationResourceRoutingDelegate { 16 public: 17 // Call to register |render_view_host| for resource routing automation 18 // by the delegate. 19 virtual void RegisterRenderViewHost(RenderViewHost* render_view_host); 20 21 // Call to unregister |render_view_host| from resource routing automation. 22 virtual void UnregisterRenderViewHost(RenderViewHost* render_view_host); 23 24 protected: 25 AutomationResourceRoutingDelegate(); 26 virtual ~AutomationResourceRoutingDelegate(); 27 28 private: 29 DISALLOW_COPY_AND_ASSIGN(AutomationResourceRoutingDelegate); 30 }; 31 32 #endif // CHROME_BROWSER_AUTOMATION_AUTOMATION_RESOURCE_ROUTING_DELEGATE_H_ 33