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

Side by Side Diff: headless/lib/browser/headless_content_browser_client.h

Issue 2853763004: added the allowcertificateerror method to the headless browser client so that it can handle certifi… (Closed)
Patch Set: added the allowcertificateerror method to the headless browser client so that it can handle certifi… Created 3 years, 7 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 unified diff | Download patch
« no previous file with comments | « no previous file | headless/lib/browser/headless_content_browser_client.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef HEADLESS_LIB_BROWSER_HEADLESS_CONTENT_BROWSER_CLIENT_H_ 5 #ifndef HEADLESS_LIB_BROWSER_HEADLESS_CONTENT_BROWSER_CLIENT_H_
6 #define HEADLESS_LIB_BROWSER_HEADLESS_CONTENT_BROWSER_CLIENT_H_ 6 #define HEADLESS_LIB_BROWSER_HEADLESS_CONTENT_BROWSER_CLIENT_H_
7 7
8 #include "content/public/browser/content_browser_client.h" 8 #include "content/public/browser/content_browser_client.h"
9 #include "headless/lib/browser/headless_resource_dispatcher_host_delegate.h" 9 #include "headless/lib/browser/headless_resource_dispatcher_host_delegate.h"
10 10
(...skipping 20 matching lines...) Expand all
31 const storage::OptionalQuotaSettingsCallback& callback) override; 31 const storage::OptionalQuotaSettingsCallback& callback) override;
32 #if defined(OS_POSIX) && !defined(OS_MACOSX) 32 #if defined(OS_POSIX) && !defined(OS_MACOSX)
33 void GetAdditionalMappedFilesForChildProcess( 33 void GetAdditionalMappedFilesForChildProcess(
34 const base::CommandLine& command_line, 34 const base::CommandLine& command_line,
35 int child_process_id, 35 int child_process_id,
36 content::FileDescriptorInfo* mappings) override; 36 content::FileDescriptorInfo* mappings) override;
37 #endif 37 #endif
38 void AppendExtraCommandLineSwitches(base::CommandLine* command_line, 38 void AppendExtraCommandLineSwitches(base::CommandLine* command_line,
39 int child_process_id) override; 39 int child_process_id) override;
40 40
41 void AllowCertificateError(
42 content::WebContents* web_contents,
43 int cert_error,
44 const net::SSLInfo& ssl_info,
45 const GURL& request_url,
46 content::ResourceType resource_type,
47 bool overridable,
48 bool strict_enforcement,
49 bool expired_previous_decision,
50 const base::Callback<void(content::CertificateRequestResultType)>&
51 callback) override;
52
41 void ResourceDispatcherHostCreated() override; 53 void ResourceDispatcherHostCreated() override;
42 54
43 private: 55 private:
44 HeadlessBrowserImpl* browser_; // Not owned. 56 HeadlessBrowserImpl* browser_; // Not owned.
45 57
46 std::unique_ptr<HeadlessResourceDispatcherHostDelegate> 58 std::unique_ptr<HeadlessResourceDispatcherHostDelegate>
47 resource_dispatcher_host_delegate_; 59 resource_dispatcher_host_delegate_;
48 60
49 DISALLOW_COPY_AND_ASSIGN(HeadlessContentBrowserClient); 61 DISALLOW_COPY_AND_ASSIGN(HeadlessContentBrowserClient);
50 }; 62 };
51 63
52 } // namespace headless 64 } // namespace headless
53 65
54 #endif // HEADLESS_LIB_BROWSER_HEADLESS_CONTENT_BROWSER_CLIENT_H_ 66 #endif // HEADLESS_LIB_BROWSER_HEADLESS_CONTENT_BROWSER_CLIENT_H_
OLDNEW
« no previous file with comments | « no previous file | headless/lib/browser/headless_content_browser_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698