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

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: 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
Index: content/renderer/devtools/devtools_agent.h
diff --git a/content/renderer/devtools/devtools_agent.h b/content/renderer/devtools/devtools_agent.h
index a363d140913b12e04eae9bd1fb268f03a532d7a1..0c571607b3807d7e6c92ef3faae38db3f3caf048 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
@@ -84,6 +87,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_;
@@ -92,6 +100,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);
};

Powered by Google App Engine
This is Rietveld 408576698