[Extensions OOPI] Convert extension functions to use RenderFrameHosts
commit92503bacf38b62d3fca8a4abe74ed78b063dd2e5
authorrdevlin.cronin <rdevlin.cronin@chromium.org>
Fri, 12 Jun 2015 17:00:56 +0000 (12 10:00 -0700)
committerCommit bot <commit-bot@chromium.org>
Fri, 12 Jun 2015 17:01:58 +0000 (12 17:01 +0000)
treeb5ab4581cfb0e3cfaffa85c08d34d271c2e24068
parent32ef655504fc0d3ac78223cab669baa32e6118db
[Extensions OOPI] Convert extension functions to use RenderFrameHosts

Make ExtensionHostMsg_Request/Response send to RenderFrameHosts/RenderFrames
so that OOPI work with extension api calls.

Also update ExtensionFunctions to only have RenderFrameHosts set, and remove
the |render_view_host_| parameter, and update ExtensionFunction's
internals to use RenderFrameHost.
Note that this doesn't update all the uses of
ExtensionFunction::render_view_host() (of which there are 100+).

BUG=498017

Review URL: https://codereview.chromium.org/1182493002

Cr-Commit-Position: refs/heads/master@{#334185}
24 files changed:
chrome/browser/extensions/api/bookmark_manager_private/bookmark_manager_private_api.cc
chrome/browser/extensions/api/developer_private/developer_private_api.cc
chrome/browser/extensions/api/developer_private/developer_private_api_unittest.cc
chrome/browser/extensions/api/downloads/downloads_api_browsertest.cc
chrome/browser/extensions/api/file_system/file_system_api.cc
chrome/browser/extensions/api/log_private/log_private_api_chromeos.cc
chrome/browser/extensions/api/management/management_api_browsertest.cc
chrome/browser/extensions/chrome_extension_function.cc
chrome/browser/extensions/chrome_extension_web_contents_observer.cc
chrome/browser/extensions/chrome_extension_web_contents_observer.h
extensions/browser/api/app_window/app_window_api.cc
extensions/browser/api/runtime/runtime_api.cc
extensions/browser/api_unittest.cc
extensions/browser/extension_function.cc
extensions/browser/extension_function.h
extensions/browser/extension_function_dispatcher.cc
extensions/browser/extension_function_dispatcher.h
extensions/browser/extension_web_contents_observer.cc
extensions/browser/extension_web_contents_observer.h
extensions/renderer/extension_frame_helper.cc
extensions/renderer/extension_frame_helper.h
extensions/renderer/extension_helper.cc
extensions/renderer/extension_helper.h
extensions/renderer/request_sender.cc