Implement ManifestManager to handle manifest in content/.
commitefdca9d8f31e7aa0ce7cb7a2eff5f08dead2498b
authormlamouri <mlamouri@chromium.org>
Tue, 16 Sep 2014 16:55:40 +0000 (16 09:55 -0700)
committerCommit bot <commit-bot@chromium.org>
Tue, 16 Sep 2014 16:56:43 +0000 (16 16:56 +0000)
tree68566d9573844a92d7cffc0aaac24af22a7ca74b
parent59b968271f2a2fb948ad110f0ed1b3da870b0eb5
Implement ManifestManager to handle manifest in content/.

This can be used from the renderer process or the browser
process. Requesting the manifest can be done via one call, a
callback has to be passed and will run with the manifest
passed as parameter. A failure will return the empty
manifest.

Some more logic could be added like caching the manifest in
the browser process or keeping track of the manifest dirty
state in the browser process but those things can be added
transparently later.

BUG=366145

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

Cr-Commit-Position: refs/heads/master@{#295085}
30 files changed:
content/browser/manifest/OWNERS [new file with mode: 0644]
content/browser/manifest/manifest_browsertest.cc [new file with mode: 0644]
content/browser/manifest/manifest_manager_host.cc [new file with mode: 0644]
content/browser/manifest/manifest_manager_host.h [new file with mode: 0644]
content/browser/web_contents/web_contents_impl.cc
content/browser/web_contents/web_contents_impl.h
content/common/content_message_generator.h
content/common/manifest_manager_messages.h [new file with mode: 0644]
content/content_browser.gypi
content/content_common.gypi
content/content_renderer.gypi
content/content_tests.gypi
content/public/browser/web_contents.h
content/public/common/manifest.cc
content/public/common/manifest.h
content/public/renderer/render_frame_observer.h
content/renderer/manifest/manifest_manager.cc [new file with mode: 0644]
content/renderer/manifest/manifest_manager.h [new file with mode: 0644]
content/renderer/render_frame_impl.cc
content/renderer/render_frame_impl.h
content/test/data/manifest/404-manifest.html [new file with mode: 0644]
content/test/data/manifest/dummy-manifest.html [new file with mode: 0644]
content/test/data/manifest/dummy-manifest.json [new file with mode: 0644]
content/test/data/manifest/dynamic-manifest.html [new file with mode: 0644]
content/test/data/manifest/empty-manifest.html [new file with mode: 0644]
content/test/data/manifest/empty-manifest.json [new file with mode: 0644]
content/test/data/manifest/no-manifest.html [new file with mode: 0644]
content/test/data/manifest/parse-error-manifest.html [new file with mode: 0644]
content/test/data/manifest/parse-error-manifest.json [new file with mode: 0644]
ipc/ipc_message_start.h