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

Side by Side Diff: android_webview/browser/net/aw_network_delegate.cc

Issue 2786583002: chromeos: Check both original and absolute paths for file: scheme (Closed)
Patch Set: remove dcheck Created 3 years, 6 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
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/net/aw_network_delegate.h" 5 #include "android_webview/browser/net/aw_network_delegate.h"
6 6
7 #include "android_webview/browser/aw_browser_context.h" 7 #include "android_webview/browser/aw_browser_context.h"
8 #include "android_webview/browser/aw_contents_client_bridge.h" 8 #include "android_webview/browser/aw_contents_client_bridge.h"
9 #include "android_webview/browser/aw_contents_io_thread_client.h" 9 #include "android_webview/browser/aw_contents_io_thread_client.h"
10 #include "android_webview/browser/aw_cookie_access_policy.h" 10 #include "android_webview/browser/aw_cookie_access_policy.h"
(...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after
140 } 140 }
141 141
142 bool AwNetworkDelegate::OnCanSetCookie(const net::URLRequest& request, 142 bool AwNetworkDelegate::OnCanSetCookie(const net::URLRequest& request,
143 const std::string& cookie_line, 143 const std::string& cookie_line,
144 net::CookieOptions* options) { 144 net::CookieOptions* options) {
145 return AwCookieAccessPolicy::GetInstance()->OnCanSetCookie(request, 145 return AwCookieAccessPolicy::GetInstance()->OnCanSetCookie(request,
146 cookie_line, 146 cookie_line,
147 options); 147 options);
148 } 148 }
149 149
150 bool AwNetworkDelegate::OnCanAccessFile(const net::URLRequest& request, 150 bool AwNetworkDelegate::OnCanAccessFile(
151 const base::FilePath& path) const { 151 const net::URLRequest& request,
152 const base::FilePath& original_path,
153 const base::FilePath& absolute_path) const {
152 return true; 154 return true;
153 } 155 }
154 156
155 } // namespace android_webview 157 } // namespace android_webview
OLDNEW
« no previous file with comments | « android_webview/browser/net/aw_network_delegate.h ('k') | chrome/browser/android/offline_pages/offline_page_request_job.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698