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

Side by Side Diff: extensions/shell/browser/shell_network_delegate.h

Issue 2786583002: chromeos: Check both original and absolute paths for file: scheme (Closed)
Patch Set: disable checks in sub classes Created 3 years, 8 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 EXTENSIONS_SHELL_BROWSER_SHELL_NETWORK_DELEGATE_H_ 5 #ifndef EXTENSIONS_SHELL_BROWSER_SHELL_NETWORK_DELEGATE_H_
6 #define EXTENSIONS_SHELL_BROWSER_SHELL_NETWORK_DELEGATE_H_ 6 #define EXTENSIONS_SHELL_BROWSER_SHELL_NETWORK_DELEGATE_H_
7 7
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "extensions/browser/info_map.h" 9 #include "extensions/browser/info_map.h"
10 #include "net/base/network_delegate_impl.h" 10 #include "net/base/network_delegate_impl.h"
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
42 void OnCompleted(net::URLRequest* request, 42 void OnCompleted(net::URLRequest* request,
43 bool started, 43 bool started,
44 int net_error) override; 44 int net_error) override;
45 void OnURLRequestDestroyed(net::URLRequest* request) override; 45 void OnURLRequestDestroyed(net::URLRequest* request) override;
46 void OnPACScriptError(int line_number, const base::string16& error) override; 46 void OnPACScriptError(int line_number, const base::string16& error) override;
47 net::NetworkDelegate::AuthRequiredResponse OnAuthRequired( 47 net::NetworkDelegate::AuthRequiredResponse OnAuthRequired(
48 net::URLRequest* request, 48 net::URLRequest* request,
49 const net::AuthChallengeInfo& auth_info, 49 const net::AuthChallengeInfo& auth_info,
50 const AuthCallback& callback, 50 const AuthCallback& callback,
51 net::AuthCredentials* credentials) override; 51 net::AuthCredentials* credentials) override;
52 bool OnCanAccessFile(const net::URLRequest& request,
53 const base::FilePath& original_path,
54 const base::FilePath& absolute_path) const override;
52 55
53 void* browser_context_; 56 void* browser_context_;
54 scoped_refptr<extensions::InfoMap> extension_info_map_; 57 scoped_refptr<extensions::InfoMap> extension_info_map_;
55 58
56 DISALLOW_COPY_AND_ASSIGN(ShellNetworkDelegate); 59 DISALLOW_COPY_AND_ASSIGN(ShellNetworkDelegate);
57 }; 60 };
58 61
59 } // namespace extensions 62 } // namespace extensions
60 63
61 #endif // EXTENSIONS_SHELL_BROWSER_SHELL_NETWORK_DELEGATE_H_ 64 #endif // EXTENSIONS_SHELL_BROWSER_SHELL_NETWORK_DELEGATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698