| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef CHROME_BROWSER_AUTOMATION_AUTOMATION_RESOURCE_ROUTING_DELEGATE_H_ | 5 #ifndef CHROME_BROWSER_AUTOMATION_AUTOMATION_RESOURCE_ROUTING_DELEGATE_H_ |
| 6 #define CHROME_BROWSER_AUTOMATION_AUTOMATION_RESOURCE_ROUTING_DELEGATE_H_ | 6 #define CHROME_BROWSER_AUTOMATION_AUTOMATION_RESOURCE_ROUTING_DELEGATE_H_ |
| 7 | 7 |
| 8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
| 9 | 9 |
| 10 class RenderViewHost; | 10 class RenderViewHost; |
| 11 | 11 |
| 12 // Interface for registering RenderViewHost instances for resource routing | 12 // Interface for registering RenderViewHost instances for resource routing |
| 13 // automation. | 13 // automation. |
| 14 class AutomationResourceRoutingDelegate { | 14 class AutomationResourceRoutingDelegate { |
| 15 public: | 15 public: |
| 16 // Call to register |render_view_host| for resource routing automation | 16 // Call to register |render_view_host| for resource routing automation |
| 17 // by the delegate. | 17 // by the delegate. |
| 18 virtual void RegisterRenderViewHost(RenderViewHost* render_view_host) {} | 18 virtual void RegisterRenderViewHost(RenderViewHost* render_view_host); |
| 19 | 19 |
| 20 // Call to unregister |render_view_host| from resource routing automation. | 20 // Call to unregister |render_view_host| from resource routing automation. |
| 21 virtual void UnregisterRenderViewHost(RenderViewHost* render_view_host) {} | 21 virtual void UnregisterRenderViewHost(RenderViewHost* render_view_host); |
| 22 | 22 |
| 23 protected: | 23 protected: |
| 24 AutomationResourceRoutingDelegate() {} | 24 AutomationResourceRoutingDelegate(); |
| 25 virtual ~AutomationResourceRoutingDelegate() {} | 25 virtual ~AutomationResourceRoutingDelegate(); |
| 26 | 26 |
| 27 private: | 27 private: |
| 28 DISALLOW_COPY_AND_ASSIGN(AutomationResourceRoutingDelegate); | 28 DISALLOW_COPY_AND_ASSIGN(AutomationResourceRoutingDelegate); |
| 29 }; | 29 }; |
| 30 | 30 |
| 31 #endif // CHROME_BROWSER_AUTOMATION_AUTOMATION_RESOURCE_ROUTING_DELEGATE_H_ | 31 #endif // CHROME_BROWSER_AUTOMATION_AUTOMATION_RESOURCE_ROUTING_DELEGATE_H_ |
| OLD | NEW |