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

Side by Side Diff: headless/lib/browser/headless_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 2017 The Chromium Authors. All rights reserved. 1 // Copyright 2017 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 "headless/lib/browser/headless_network_delegate.h" 5 #include "headless/lib/browser/headless_network_delegate.h"
6 6
7 #include "net/base/net_errors.h" 7 #include "net/base/net_errors.h"
8 #include "net/http/http_request_headers.h" 8 #include "net/http/http_request_headers.h"
9 9
10 #include "net/url_request/url_request.h" 10 #include "net/url_request/url_request.h"
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
79 } 79 }
80 80
81 bool HeadlessNetworkDelegate::OnCanSetCookie(const net::URLRequest& request, 81 bool HeadlessNetworkDelegate::OnCanSetCookie(const net::URLRequest& request,
82 const std::string& cookie_line, 82 const std::string& cookie_line,
83 net::CookieOptions* options) { 83 net::CookieOptions* options) {
84 return true; 84 return true;
85 } 85 }
86 86
87 bool HeadlessNetworkDelegate::OnCanAccessFile( 87 bool HeadlessNetworkDelegate::OnCanAccessFile(
88 const net::URLRequest& request, 88 const net::URLRequest& request,
89 const base::FilePath& path) const { 89 const base::FilePath& original_path,
90 const base::FilePath& absolute_path) const {
90 return true; 91 return true;
91 } 92 }
92 93
93 } // namespace headless 94 } // namespace headless
OLDNEW
« no previous file with comments | « headless/lib/browser/headless_network_delegate.h ('k') | ios/chrome/browser/net/ios_chrome_network_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698