OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 ANDROID_WEBVIEW_BROWSER_AW_CONTENT_BROWSER_CLIENT_H_ | 5 #ifndef ANDROID_WEBVIEW_BROWSER_AW_CONTENT_BROWSER_CLIENT_H_ |
6 #define ANDROID_WEBVIEW_BROWSER_AW_CONTENT_BROWSER_CLIENT_H_ | 6 #define ANDROID_WEBVIEW_BROWSER_AW_CONTENT_BROWSER_CLIENT_H_ |
7 | 7 |
8 #include <stddef.h> | 8 #include <stddef.h> |
9 | 9 |
10 #include <memory> | 10 #include <memory> |
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
117 content::BrowserContext* browser_context, | 117 content::BrowserContext* browser_context, |
118 const GURL& url, | 118 const GURL& url, |
119 bool private_api, | 119 bool private_api, |
120 const content::SocketPermissionRequest* params) override; | 120 const content::SocketPermissionRequest* params) override; |
121 bool IsPepperVpnProviderAPIAllowed(content::BrowserContext* browser_context, | 121 bool IsPepperVpnProviderAPIAllowed(content::BrowserContext* browser_context, |
122 const GURL& url) override; | 122 const GURL& url) override; |
123 content::TracingDelegate* GetTracingDelegate() override; | 123 content::TracingDelegate* GetTracingDelegate() override; |
124 void GetAdditionalMappedFilesForChildProcess( | 124 void GetAdditionalMappedFilesForChildProcess( |
125 const base::CommandLine& command_line, | 125 const base::CommandLine& command_line, |
126 int child_process_id, | 126 int child_process_id, |
127 content::FileDescriptorInfo* mappings) override; | 127 content::PosixFileDescriptorInfo* mappings) override; |
128 void OverrideWebkitPrefs(content::RenderViewHost* rvh, | 128 void OverrideWebkitPrefs(content::RenderViewHost* rvh, |
129 content::WebPreferences* web_prefs) override; | 129 content::WebPreferences* web_prefs) override; |
130 std::vector<std::unique_ptr<content::NavigationThrottle>> | 130 std::vector<std::unique_ptr<content::NavigationThrottle>> |
131 CreateThrottlesForNavigation( | 131 CreateThrottlesForNavigation( |
132 content::NavigationHandle* navigation_handle) override; | 132 content::NavigationHandle* navigation_handle) override; |
133 content::DevToolsManagerDelegate* GetDevToolsManagerDelegate() override; | 133 content::DevToolsManagerDelegate* GetDevToolsManagerDelegate() override; |
134 std::unique_ptr<base::Value> GetServiceManifestOverlay( | 134 std::unique_ptr<base::Value> GetServiceManifestOverlay( |
135 base::StringPiece name) override; | 135 base::StringPiece name) override; |
136 void BindInterfaceRequestFromFrame( | 136 void BindInterfaceRequestFromFrame( |
137 content::RenderFrameHost* render_frame_host, | 137 content::RenderFrameHost* render_frame_host, |
138 const service_manager::BindSourceInfo& source_info, | 138 const service_manager::BindSourceInfo& source_info, |
139 const std::string& interface_name, | 139 const std::string& interface_name, |
140 mojo::ScopedMessagePipeHandle interface_pipe) override; | 140 mojo::ScopedMessagePipeHandle interface_pipe) override; |
141 | 141 |
142 private: | 142 private: |
143 // Android WebView currently has a single global (non-off-the-record) browser | 143 // Android WebView currently has a single global (non-off-the-record) browser |
144 // context. | 144 // context. |
145 std::unique_ptr<AwBrowserContext> browser_context_; | 145 std::unique_ptr<AwBrowserContext> browser_context_; |
146 | 146 |
147 service_manager::BinderRegistryWithParams<content::RenderFrameHost*> | 147 service_manager::BinderRegistryWithParams<content::RenderFrameHost*> |
148 frame_interfaces_; | 148 frame_interfaces_; |
149 | 149 |
150 DISALLOW_COPY_AND_ASSIGN(AwContentBrowserClient); | 150 DISALLOW_COPY_AND_ASSIGN(AwContentBrowserClient); |
151 }; | 151 }; |
152 | 152 |
153 } // namespace android_webview | 153 } // namespace android_webview |
154 | 154 |
155 #endif // ANDROID_WEBVIEW_BROWSER_AW_CONTENT_BROWSER_CLIENT_H_ | 155 #endif // ANDROID_WEBVIEW_BROWSER_AW_CONTENT_BROWSER_CLIENT_H_ |
OLD | NEW |