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

Unified Diff: chromecast/shell/browser/cast_network_delegate.cc

Issue 638803002: Reorganizes Chromecast code to better reflect functional dependencies. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: extra DEPS: chromecast/crash/android --> chromecast/common Created 6 years, 2 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 side-by-side diff with in-line comments
Download patch
Index: chromecast/shell/browser/cast_network_delegate.cc
diff --git a/chromecast/shell/browser/cast_network_delegate.cc b/chromecast/shell/browser/cast_network_delegate.cc
deleted file mode 100644
index 1ee7e7175ebe451b821b24d5696dbf0faf73060a..0000000000000000000000000000000000000000
--- a/chromecast/shell/browser/cast_network_delegate.cc
+++ /dev/null
@@ -1,37 +0,0 @@
-// Copyright 2014 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#include "chromecast/shell/browser/cast_network_delegate.h"
-
-#include "base/command_line.h"
-#include "base/files/file_path.h"
-#include "chromecast/common/chromecast_switches.h"
-
-namespace chromecast {
-namespace shell {
-
-CastNetworkDelegate::CastNetworkDelegate() {
- DetachFromThread();
-}
-
-CastNetworkDelegate::~CastNetworkDelegate() {
-}
-
-bool CastNetworkDelegate::OnCanAccessFile(const net::URLRequest& request,
- const base::FilePath& path) const {
-#if defined(OS_ANDROID)
- // On Chromecast, there's no reason to allow local file access.
- if (base::CommandLine::ForCurrentProcess()->
- HasSwitch(switches::kEnableLocalFileAccesses)) {
- return true;
- }
-#endif // defined(OS_ANDROID)
-
- LOG(WARNING) << "Could not access file " << path.value()
- << ". All file accesses are forbidden.";
- return false;
-}
-
-} // namespace shell
-} // namespace chromecast
« no previous file with comments | « chromecast/shell/browser/cast_network_delegate.h ('k') | chromecast/shell/browser/cast_network_delegate_simple.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698