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

Side by Side Diff: headless/lib/browser/headless_network_delegate.h

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 #ifndef HEADLESS_LIB_BROWSER_HEADLESS_NETWORK_DELEGATE_H_ 5 #ifndef HEADLESS_LIB_BROWSER_HEADLESS_NETWORK_DELEGATE_H_
6 #define HEADLESS_LIB_BROWSER_HEADLESS_NETWORK_DELEGATE_H_ 6 #define HEADLESS_LIB_BROWSER_HEADLESS_NETWORK_DELEGATE_H_
7 7
8 #include "base/macros.h" 8 #include "base/macros.h"
9 9
10 #include "net/base/network_delegate_impl.h" 10 #include "net/base/network_delegate_impl.h"
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
57 net::AuthCredentials* credentials) override; 57 net::AuthCredentials* credentials) override;
58 58
59 bool OnCanGetCookies(const net::URLRequest& request, 59 bool OnCanGetCookies(const net::URLRequest& request,
60 const net::CookieList& cookie_list) override; 60 const net::CookieList& cookie_list) override;
61 61
62 bool OnCanSetCookie(const net::URLRequest& request, 62 bool OnCanSetCookie(const net::URLRequest& request,
63 const std::string& cookie_line, 63 const std::string& cookie_line,
64 net::CookieOptions* options) override; 64 net::CookieOptions* options) override;
65 65
66 bool OnCanAccessFile(const net::URLRequest& request, 66 bool OnCanAccessFile(const net::URLRequest& request,
67 const base::FilePath& path) const override; 67 const base::FilePath& original_path,
68 const base::FilePath& absolute_path) const override;
68 69
69 DISALLOW_COPY_AND_ASSIGN(HeadlessNetworkDelegate); 70 DISALLOW_COPY_AND_ASSIGN(HeadlessNetworkDelegate);
70 }; 71 };
71 72
72 } // namespace headless 73 } // namespace headless
73 74
74 #endif // HEADLESS_LIB_BROWSER_HEADLESS_NETWORK_DELEGATE_H_ 75 #endif // HEADLESS_LIB_BROWSER_HEADLESS_NETWORK_DELEGATE_H_
OLDNEW
« no previous file with comments | « extensions/browser/extension_protocols.cc ('k') | headless/lib/browser/headless_network_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698