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

Unified Diff: headless/lib/browser/headless_content_browser_client.h

Issue 2852633002: added a headlessresourcedispatcherhostdelegate so that we do not crash when a website requests a cl… (Closed)
Patch Set: Created 3 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 | « headless/BUILD.gn ('k') | headless/lib/browser/headless_content_browser_client.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: headless/lib/browser/headless_content_browser_client.h
diff --git a/headless/lib/browser/headless_content_browser_client.h b/headless/lib/browser/headless_content_browser_client.h
index 53a950406e1f2327b373aaae9505fba341859e3b..d1ca74cce4ff07510db7f1812bc1e766b478345d 100644
--- a/headless/lib/browser/headless_content_browser_client.h
+++ b/headless/lib/browser/headless_content_browser_client.h
@@ -6,6 +6,7 @@
#define HEADLESS_LIB_BROWSER_HEADLESS_CONTENT_BROWSER_CLIENT_H_
#include "content/public/browser/content_browser_client.h"
+#include "headless/lib/browser/headless_resource_dispatcher_host_delegate.h"
namespace headless {
@@ -37,9 +38,14 @@ class HeadlessContentBrowserClient : public content::ContentBrowserClient {
void AppendExtraCommandLineSwitches(base::CommandLine* command_line,
int child_process_id) override;
+ void ResourceDispatcherHostCreated() override;
+
private:
HeadlessBrowserImpl* browser_; // Not owned.
+ std::unique_ptr<HeadlessResourceDispatcherHostDelegate>
+ resource_dispatcher_host_delegate_;
+
DISALLOW_COPY_AND_ASSIGN(HeadlessContentBrowserClient);
};
« no previous file with comments | « headless/BUILD.gn ('k') | headless/lib/browser/headless_content_browser_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698