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

Side by Side Diff: android_webview/browser/aw_content_browser_client.h

Issue 357203003: Move webpreferences.* from webkit/ to content/ (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: RenderView::FromWebView Created 6 years, 5 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 | Annotate | Revision Log
OLDNEW
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 "android_webview/browser/aw_web_preferences_populater.h" 8 #include "android_webview/browser/aw_web_preferences_populater.h"
9 #include "base/basictypes.h" 9 #include "base/basictypes.h"
10 #include "base/compiler_specific.h" 10 #include "base/compiler_specific.h"
11 #include "base/memory/scoped_ptr.h" 11 #include "base/memory/scoped_ptr.h"
12 #include "content/public/browser/content_browser_client.h" 12 #include "content/public/browser/content_browser_client.h"
13 13
14 struct WebPreferences;
15
16 namespace android_webview { 14 namespace android_webview {
17 15
18 class AwBrowserContext; 16 class AwBrowserContext;
19 class JniDependencyFactory; 17 class JniDependencyFactory;
20 18
21 class AwContentBrowserClient : public content::ContentBrowserClient { 19 class AwContentBrowserClient : public content::ContentBrowserClient {
22 public: 20 public:
23 // This is what AwContentBrowserClient::GetAcceptLangs uses. 21 // This is what AwContentBrowserClient::GetAcceptLangs uses.
24 static std::string GetAcceptLangsImpl(); 22 static std::string GetAcceptLangsImpl();
25 23
(...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after
168 virtual std::string GetDefaultDownloadName() OVERRIDE; 166 virtual std::string GetDefaultDownloadName() OVERRIDE;
169 virtual void DidCreatePpapiPlugin( 167 virtual void DidCreatePpapiPlugin(
170 content::BrowserPpapiHost* browser_host) OVERRIDE; 168 content::BrowserPpapiHost* browser_host) OVERRIDE;
171 virtual bool AllowPepperSocketAPI( 169 virtual bool AllowPepperSocketAPI(
172 content::BrowserContext* browser_context, 170 content::BrowserContext* browser_context,
173 const GURL& url, 171 const GURL& url,
174 bool private_api, 172 bool private_api,
175 const content::SocketPermissionRequest* params) OVERRIDE; 173 const content::SocketPermissionRequest* params) OVERRIDE;
176 virtual void OverrideWebkitPrefs(content::RenderViewHost* rvh, 174 virtual void OverrideWebkitPrefs(content::RenderViewHost* rvh,
177 const GURL& url, 175 const GURL& url,
178 WebPreferences* web_prefs) OVERRIDE; 176 content::WebPreferences* web_prefs) OVERRIDE;
179 #if defined(VIDEO_HOLE) 177 #if defined(VIDEO_HOLE)
180 virtual content::ExternalVideoSurfaceContainer* 178 virtual content::ExternalVideoSurfaceContainer*
181 OverrideCreateExternalVideoSurfaceContainer( 179 OverrideCreateExternalVideoSurfaceContainer(
182 content::WebContents* web_contents) OVERRIDE; 180 content::WebContents* web_contents) OVERRIDE;
183 #endif 181 #endif
184 182
185 private: 183 private:
186 // Android WebView currently has a single global (non-off-the-record) browser 184 // Android WebView currently has a single global (non-off-the-record) browser
187 // context. 185 // context.
188 scoped_ptr<AwBrowserContext> browser_context_; 186 scoped_ptr<AwBrowserContext> browser_context_;
189 scoped_ptr<AwWebPreferencesPopulater> preferences_populater_; 187 scoped_ptr<AwWebPreferencesPopulater> preferences_populater_;
190 188
191 JniDependencyFactory* native_factory_; 189 JniDependencyFactory* native_factory_;
192 190
193 DISALLOW_COPY_AND_ASSIGN(AwContentBrowserClient); 191 DISALLOW_COPY_AND_ASSIGN(AwContentBrowserClient);
194 }; 192 };
195 193
196 } // namespace android_webview 194 } // namespace android_webview
197 195
198 #endif // ANDROID_WEBVIEW_LIB_AW_CONTENT_BROWSER_CLIENT_H_ 196 #endif // ANDROID_WEBVIEW_LIB_AW_CONTENT_BROWSER_CLIENT_H_
OLDNEW
« no previous file with comments | « no previous file | android_webview/browser/aw_content_browser_client.cc » ('j') | android_webview/renderer/print_web_view_helper.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698