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

Side by Side Diff: chromecast/browser/cast_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 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 CHROMECAST_BROWSER_CAST_NETWORK_DELEGATE_H_ 5 #ifndef CHROMECAST_BROWSER_CAST_NETWORK_DELEGATE_H_
6 #define CHROMECAST_BROWSER_CAST_NETWORK_DELEGATE_H_ 6 #define CHROMECAST_BROWSER_CAST_NETWORK_DELEGATE_H_
7 7
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "net/base/network_delegate_impl.h" 9 #include "net/base/network_delegate_impl.h"
10 10
(...skipping 13 matching lines...) Expand all
24 ~CastNetworkDelegate() override; 24 ~CastNetworkDelegate() override;
25 25
26 virtual void Initialize(bool use_sync_signing) = 0; 26 virtual void Initialize(bool use_sync_signing) = 0;
27 27
28 virtual bool IsWhitelisted(const GURL& gurl, int render_process_id, 28 virtual bool IsWhitelisted(const GURL& gurl, int render_process_id,
29 bool for_device_auth) const = 0; 29 bool for_device_auth) const = 0;
30 30
31 private: 31 private:
32 // net::NetworkDelegate implementation: 32 // net::NetworkDelegate implementation:
33 bool OnCanAccessFile(const net::URLRequest& request, 33 bool OnCanAccessFile(const net::URLRequest& request,
34 const base::FilePath& path) const override; 34 const base::FilePath& original_path,
35 const base::FilePath& absolute_path) const override;
35 36
36 DISALLOW_COPY_AND_ASSIGN(CastNetworkDelegate); 37 DISALLOW_COPY_AND_ASSIGN(CastNetworkDelegate);
37 }; 38 };
38 39
39 } // namespace shell 40 } // namespace shell
40 } // namespace chromecast 41 } // namespace chromecast
41 42
42 #endif // CHROMECAST_BROWSER_CAST_NETWORK_DELEGATE_H_ 43 #endif // CHROMECAST_BROWSER_CAST_NETWORK_DELEGATE_H_
OLDNEW
« no previous file with comments | « chrome/browser/net/chrome_network_delegate_unittest.cc ('k') | chromecast/browser/cast_network_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698