REVIEW: ContentBrowserClient now provides geolocation api key and request context
This commit is contained in:
parent
f9de29ed8c
commit
97eb7f2c98
2 changed files with 84 additions and 5 deletions
|
@ -21,6 +21,7 @@ class ClientCertificateDelegate;
|
|||
|
||||
namespace net {
|
||||
class SSLCertRequestInfo;
|
||||
class URLRequestContextGetter;
|
||||
}
|
||||
|
||||
namespace atom {
|
||||
|
@ -62,6 +63,10 @@ class AtomBrowserClient : public brightray::BrowserClient,
|
|||
void AppendExtraCommandLineSwitches(base::CommandLine* command_line,
|
||||
int child_process_id) override;
|
||||
void DidCreatePpapiPlugin(content::BrowserPpapiHost* browser_host) override;
|
||||
void GetGeolocationRequestContext(
|
||||
base::OnceCallback<void(scoped_refptr<net::URLRequestContextGetter>)>
|
||||
callback) override;
|
||||
std::string GetGeolocationApiKey() override;
|
||||
content::QuotaPermissionContext* CreateQuotaPermissionContext() override;
|
||||
void AllowCertificateError(
|
||||
content::WebContents* web_contents,
|
||||
|
@ -129,6 +134,8 @@ class AtomBrowserClient : public brightray::BrowserClient,
|
|||
bool IsRendererSandboxed(int process_id);
|
||||
bool RendererUsesNativeWindowOpen(int process_id);
|
||||
bool RendererDisablesPopups(int process_id);
|
||||
scoped_refptr<net::URLRequestContextGetter>
|
||||
GetGeoRequestContextGetterFromUIThread();
|
||||
|
||||
// pending_render_process => web contents.
|
||||
std::map<int, content::WebContents*> pending_processes_;
|
||||
|
@ -144,6 +151,8 @@ class AtomBrowserClient : public brightray::BrowserClient,
|
|||
|
||||
Delegate* delegate_;
|
||||
|
||||
scoped_refptr<net::URLRequestContextGetter> geo_request_context_getter_;
|
||||
|
||||
DISALLOW_COPY_AND_ASSIGN(AtomBrowserClient);
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue