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

Unified Diff: content/renderer/devtools/devtools_agent.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/content_renderer.gypi ('k') | content/renderer/devtools/devtools_agent.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/devtools/devtools_agent.h
diff --git a/content/renderer/devtools/devtools_agent.h b/content/renderer/devtools/devtools_agent.h
index c716a2b5be02992390a1821d3fb50802d78efc70..b07b7a667ade09522f777fb06a3e5775526a22ca 100644
--- a/content/renderer/devtools/devtools_agent.h
+++ b/content/renderer/devtools/devtools_agent.h
@@ -10,6 +10,7 @@
#include "base/callback.h"
#include "base/macros.h"
+#include "base/memory/weak_ptr.h"
#include "content/common/content_export.h"
#include "content/public/renderer/render_frame_observer.h"
#include "third_party/WebKit/public/web/WebDevToolsAgentClient.h"
@@ -22,6 +23,8 @@ namespace content {
class DevToolsCPUThrottler;
class RenderFrameImpl;
+struct Manifest;
+struct ManifestDebugInfo;
// DevToolsAgent belongs to the inspectable RenderFrameImpl and communicates
// with WebDevToolsAgent. There is a corresponding DevToolsAgentHost
@@ -85,6 +88,11 @@ class CONTENT_EXPORT DevToolsAgent
void ContinueProgram();
void OnSetupDevToolsClient(const std::string& compatibility_script);
+ void GotManifest(int session_id,
+ int command_id,
+ const Manifest& manifest,
+ const ManifestDebugInfo& debug_info);
+
bool is_attached_;
bool is_devtools_client_;
bool paused_in_mouse_move_;
@@ -93,6 +101,7 @@ class CONTENT_EXPORT DevToolsAgent
base::Callback<void(int, int, const std::string&, const std::string&)>
send_protocol_message_callback_for_test_;
std::unique_ptr<DevToolsCPUThrottler> cpu_throttler_;
+ base::WeakPtrFactory<DevToolsAgent> weak_factory_;
DISALLOW_COPY_AND_ASSIGN(DevToolsAgent);
};
« no previous file with comments | « content/content_renderer.gypi ('k') | content/renderer/devtools/devtools_agent.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698