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_LIB_AW_CONTENT_BROWSER_CLIENT_H_ | 5 #ifndef ANDROID_WEBVIEW_LIB_AW_CONTENT_BROWSER_CLIENT_H_ |
6 #define ANDROID_WEBVIEW_LIB_AW_CONTENT_BROWSER_CLIENT_H_ | 6 #define ANDROID_WEBVIEW_LIB_AW_CONTENT_BROWSER_CLIENT_H_ |
7 | 7 |
8 #include <stddef.h> | 8 #include <stddef.h> |
9 | 9 |
10 #include <memory> | 10 #include <memory> |
(...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
128 const base::CommandLine& command_line, | 128 const base::CommandLine& command_line, |
129 int child_process_id, | 129 int child_process_id, |
130 content::FileDescriptorInfo* mappings, | 130 content::FileDescriptorInfo* mappings, |
131 std::map<int, base::MemoryMappedFile::Region>* regions) override; | 131 std::map<int, base::MemoryMappedFile::Region>* regions) override; |
132 void OverrideWebkitPrefs(content::RenderViewHost* rvh, | 132 void OverrideWebkitPrefs(content::RenderViewHost* rvh, |
133 content::WebPreferences* web_prefs) override; | 133 content::WebPreferences* web_prefs) override; |
134 ScopedVector<content::NavigationThrottle> CreateThrottlesForNavigation( | 134 ScopedVector<content::NavigationThrottle> CreateThrottlesForNavigation( |
135 content::NavigationHandle* navigation_handle) override; | 135 content::NavigationHandle* navigation_handle) override; |
136 content::DevToolsManagerDelegate* GetDevToolsManagerDelegate() override; | 136 content::DevToolsManagerDelegate* GetDevToolsManagerDelegate() override; |
137 std::unique_ptr<base::Value> GetServiceManifestOverlay( | 137 std::unique_ptr<base::Value> GetServiceManifestOverlay( |
138 const std::string& name) override; | 138 base::StringPiece name) override; |
139 void RegisterRenderFrameMojoInterfaces( | 139 void RegisterRenderFrameMojoInterfaces( |
140 service_manager::InterfaceRegistry* registry, | 140 service_manager::InterfaceRegistry* registry, |
141 content::RenderFrameHost* render_frame_host) override; | 141 content::RenderFrameHost* render_frame_host) override; |
142 | 142 |
143 private: | 143 private: |
144 // Android WebView currently has a single global (non-off-the-record) browser | 144 // Android WebView currently has a single global (non-off-the-record) browser |
145 // context. | 145 // context. |
146 std::unique_ptr<AwBrowserContext> browser_context_; | 146 std::unique_ptr<AwBrowserContext> browser_context_; |
147 std::unique_ptr<AwWebPreferencesPopulater> preferences_populater_; | 147 std::unique_ptr<AwWebPreferencesPopulater> preferences_populater_; |
148 | 148 |
149 JniDependencyFactory* native_factory_; | 149 JniDependencyFactory* native_factory_; |
150 | 150 |
151 DISALLOW_COPY_AND_ASSIGN(AwContentBrowserClient); | 151 DISALLOW_COPY_AND_ASSIGN(AwContentBrowserClient); |
152 }; | 152 }; |
153 | 153 |
154 } // namespace android_webview | 154 } // namespace android_webview |
155 | 155 |
156 #endif // ANDROID_WEBVIEW_LIB_AW_CONTENT_BROWSER_CLIENT_H_ | 156 #endif // ANDROID_WEBVIEW_LIB_AW_CONTENT_BROWSER_CLIENT_H_ |
OLD | NEW |