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

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

Issue 11411229: [Android] Implement WebSettings.setAppCache{Enabled|Path} (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Comments addressed Created 8 years 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
« no previous file with comments | « no previous file | android_webview/javatests/src/org/chromium/android_webview/test/AndroidWebViewTestBase.java » ('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 (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 #include "android_webview/browser/aw_content_browser_client.h" 5 #include "android_webview/browser/aw_content_browser_client.h"
6 6
7 #include "android_webview/browser/aw_browser_main_parts.h" 7 #include "android_webview/browser/aw_browser_main_parts.h"
8 #include "android_webview/browser/aw_cookie_access_policy.h" 8 #include "android_webview/browser/aw_cookie_access_policy.h"
9 #include "android_webview/browser/aw_quota_permission_context.h" 9 #include "android_webview/browser/aw_quota_permission_context.h"
10 #include "android_webview/browser/net_disk_cache_remover.h" 10 #include "android_webview/browser/net_disk_cache_remover.h"
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after
107 107
108 gfx::ImageSkia* AwContentBrowserClient::GetDefaultFavicon() { 108 gfx::ImageSkia* AwContentBrowserClient::GetDefaultFavicon() {
109 ResourceBundle& rb = ResourceBundle::GetSharedInstance(); 109 ResourceBundle& rb = ResourceBundle::GetSharedInstance();
110 // TODO(boliu): Bundle our own default favicon? 110 // TODO(boliu): Bundle our own default favicon?
111 return rb.GetImageSkiaNamed(IDR_DEFAULT_FAVICON); 111 return rb.GetImageSkiaNamed(IDR_DEFAULT_FAVICON);
112 } 112 }
113 113
114 bool AwContentBrowserClient::AllowAppCache(const GURL& manifest_url, 114 bool AwContentBrowserClient::AllowAppCache(const GURL& manifest_url,
115 const GURL& first_party, 115 const GURL& first_party,
116 content::ResourceContext* context) { 116 content::ResourceContext* context) {
117 // TODO(boliu): Implement this to power WebSettings.SetAppCacheEnabled. 117 // WebView doesn't have a per-site policy for locally stored data,
118 NOTIMPLEMENTED(); 118 // instead AppCache can be disabled for individual WebViews.
119 return false; 119 return true;
120 } 120 }
121 121
122 122
123 bool AwContentBrowserClient::AllowGetCookie(const GURL& url, 123 bool AwContentBrowserClient::AllowGetCookie(const GURL& url,
124 const GURL& first_party, 124 const GURL& first_party,
125 const net::CookieList& cookie_list, 125 const net::CookieList& cookie_list,
126 content::ResourceContext* context, 126 content::ResourceContext* context,
127 int render_process_id, 127 int render_process_id,
128 int render_view_id) { 128 int render_view_id) {
129 return AwCookieAccessPolicy::GetInstance()->AllowGetCookie(url, 129 return AwCookieAccessPolicy::GetInstance()->AllowGetCookie(url,
(...skipping 188 matching lines...) Expand 10 before | Expand all | Expand 10 after
318 318
319 bool AwContentBrowserClient::AllowPepperSocketAPI( 319 bool AwContentBrowserClient::AllowPepperSocketAPI(
320 content::BrowserContext* browser_context, 320 content::BrowserContext* browser_context,
321 const GURL& url, 321 const GURL& url,
322 const content::SocketPermissionRequest& params) { 322 const content::SocketPermissionRequest& params) {
323 NOTREACHED() << "Android WebView does not support plugins"; 323 NOTREACHED() << "Android WebView does not support plugins";
324 return false; 324 return false;
325 } 325 }
326 326
327 } // namespace android_webview 327 } // namespace android_webview
OLDNEW
« no previous file with comments | « no previous file | android_webview/javatests/src/org/chromium/android_webview/test/AndroidWebViewTestBase.java » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698