diff options
author | twiz@chromium.org <twiz@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-03-19 01:23:54 +0000 |
---|---|---|
committer | twiz@chromium.org <twiz@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-03-19 01:23:54 +0000 |
commit | fd571bbf7f82fa08182fec4e18b8186b016d5de2 (patch) | |
tree | f4c693a0ae93f9cdf8c3405c905efa0ee474dc27 /chrome/browser/automation/automation_resource_routing_delegate.h | |
parent | ff88f4e0af4dcd145aea4a74c6fbec4aeaeffa68 (diff) | |
download | chromium_src-fd571bbf7f82fa08182fec4e18b8186b016d5de2.zip chromium_src-fd571bbf7f82fa08182fec4e18b8186b016d5de2.tar.gz chromium_src-fd571bbf7f82fa08182fec4e18b8186b016d5de2.tar.bz2 |
Modification of ExtensionPopup views to allow for pop-up views to share the same network stack as their hosting views.
A new RenderViewHostDelegate interface has been added, AutomationRequestRouting, which can be implemented on RenderViewHost objects to return the data-structures used to pass network requests through Chrome-Frame host networking, or the native Chrome network stack.
BUG=None
TEST=None
Review URL: http://codereview.chromium.org/906003
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@42057 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/automation/automation_resource_routing_delegate.h')
-rw-r--r-- | chrome/browser/automation/automation_resource_routing_delegate.h | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/chrome/browser/automation/automation_resource_routing_delegate.h b/chrome/browser/automation/automation_resource_routing_delegate.h new file mode 100644 index 0000000..63c95de --- /dev/null +++ b/chrome/browser/automation/automation_resource_routing_delegate.h @@ -0,0 +1,31 @@ +// Copyright (c) 2010 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 CHROME_BROWSER_AUTOMATION_AUTOMATION_RESOURCE_ROUTING_DELEGATE_H_ +#define CHROME_BROWSER_AUTOMATION_AUTOMATION_RESOURCE_ROUTING_DELEGATE_H_ + +#include "base/basictypes.h" + +class RenderViewHost; + +// Interface for registering RenderViewHost instances for resource routing +// automation. +class AutomationResourceRoutingDelegate { + public: + // Call to register |render_view_host| for resource routing automation + // by the delegate. + virtual void RegisterRenderViewHost(RenderViewHost* render_view_host) {} + + // Call to unregister |render_view_host| from resource routing automation. + virtual void UnregisterRenderViewHost(RenderViewHost* render_view_host) {} + + protected: + AutomationResourceRoutingDelegate() {} + virtual ~AutomationResourceRoutingDelegate() {} + + private: + DISALLOW_COPY_AND_ASSIGN(AutomationResourceRoutingDelegate); +}; + +#endif // CHROME_BROWSER_AUTOMATION_AUTOMATION_RESOURCE_ROUTING_DELEGATE_H_ |