Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(83)

Unified Diff: content/renderer/manifest/manifest_manager.h

Issue 1932623003: DevTools: Introduce Page.getManifest remote debugging protocol method. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: browser test updated Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/renderer/manifest/manifest_debug_info.cc ('k') | content/renderer/manifest/manifest_manager.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/manifest/manifest_manager.h
diff --git a/content/renderer/manifest/manifest_manager.h b/content/renderer/manifest/manifest_manager.h
index 88304bbe39c72c368bfb1063be656524ecb292a4..6ed61226ef3f1bdabf01fbe546adc36cfe0169c0 100644
--- a/content/renderer/manifest/manifest_manager.h
+++ b/content/renderer/manifest/manifest_manager.h
@@ -12,6 +12,7 @@
#include "base/macros.h"
#include "content/public/common/manifest.h"
#include "content/public/renderer/render_frame_observer.h"
+#include "content/renderer/manifest/manifest_debug_info.h"
class GURL;
@@ -31,7 +32,8 @@ class ManifestFetcher;
// GetManifest().
class ManifestManager : public RenderFrameObserver {
public:
- typedef base::Callback<void(const Manifest&)> GetManifestCallback;
+ typedef base::Callback<void(const Manifest&,
+ const ManifestDebugInfo&)> GetManifestCallback;
explicit ManifestManager(RenderFrame* render_frame);
~ManifestManager() override;
@@ -56,7 +58,9 @@ class ManifestManager : public RenderFrameObserver {
// process.
void OnHasManifest(int request_id);
void OnRequestManifest(int request_id);
- void OnRequestManifestComplete(int request_id, const Manifest&);
+ void OnRequestManifestComplete(int request_id,
+ const Manifest&,
+ const ManifestDebugInfo&);
void FetchManifest();
void OnManifestFetchComplete(const GURL& document_url,
@@ -78,6 +82,9 @@ class ManifestManager : public RenderFrameObserver {
// Current Manifest. Might be outdated if manifest_dirty_ is true.
Manifest manifest_;
+ // Current Manifest debug information.
+ ManifestDebugInfo manifest_debug_info_;
+
std::list<GetManifestCallback> pending_callbacks_;
DISALLOW_COPY_AND_ASSIGN(ManifestManager);
« no previous file with comments | « content/renderer/manifest/manifest_debug_info.cc ('k') | content/renderer/manifest/manifest_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698