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

Unified Diff: content/shell/browser/shell_devtools_frontend.h

Issue 967513002: DevTools: do not use debug target when loading URLs for the front-end (chrome side). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@t5
Patch Set: same, but uses urlfetchwriter to load incrementally. Created 5 years, 10 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/shell/browser/shell_devtools_frontend.h
diff --git a/content/shell/browser/shell_devtools_frontend.h b/content/shell/browser/shell_devtools_frontend.h
index adfe90e7d46b90377fba1ad3db5b9df3ecf38681..95325e9e625f321c2c4145a817b2ee5a4df2851e 100644
--- a/content/shell/browser/shell_devtools_frontend.h
+++ b/content/shell/browser/shell_devtools_frontend.h
@@ -12,6 +12,7 @@
#include "content/public/browser/devtools_agent_host.h"
#include "content/public/browser/devtools_frontend_host.h"
#include "content/public/browser/web_contents_observer.h"
+#include "net/url_request/url_fetcher_delegate.h"
namespace content {
@@ -21,7 +22,8 @@ class WebContents;
class ShellDevToolsFrontend : public WebContentsObserver,
public DevToolsFrontendHost::Delegate,
- public DevToolsAgentHostClient {
+ public DevToolsAgentHostClient,
+ public net::URLFetcherDelegate {
public:
static ShellDevToolsFrontend* Show(WebContents* inspected_contents);
@@ -57,9 +59,14 @@ class ShellDevToolsFrontend : public WebContentsObserver,
void HandleMessageFromDevToolsFrontendToBackend(
const std::string& message) override;
+ // net::URLFetcherDelegate overrides.
+ void OnURLFetchComplete(const net::URLFetcher* source) override;
+
Shell* frontend_shell_;
scoped_refptr<DevToolsAgentHost> agent_host_;
scoped_ptr<DevToolsFrontendHost> frontend_host_;
+ using PendingRequestsMap = std::map<const net::URLFetcher*, int>;
+ PendingRequestsMap pending_requests_;
DISALLOW_COPY_AND_ASSIGN(ShellDevToolsFrontend);
};

Powered by Google App Engine
This is Rietveld 408576698