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

Unified Diff: mojo/shell/network_delegate.h

Issue 38303002: Enable Mojo to download from file URLs (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 7 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
« no previous file with comments | « mojo/shell/loader.cc ('k') | mojo/shell/network_delegate.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/shell/network_delegate.h
diff --git a/mojo/shell/network_delegate.h b/mojo/shell/network_delegate.h
new file mode 100644
index 0000000000000000000000000000000000000000..870896d3e1483ea760696be1de4336856f5eb60a
--- /dev/null
+++ b/mojo/shell/network_delegate.h
@@ -0,0 +1,24 @@
+// Copyright (c) 2013 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.
+
+#ifndef MOJO_SHELL_NETWORK_DELEGATE_H_
+#define MOJO_SHELL_NETWORK_DELEGATE_H_
+
+#include "base/compiler_specific.h"
+#include "net/base/network_delegate.h"
+
+namespace mojo {
+namespace shell {
+
+class NetworkDelegate : public net::NetworkDelegate {
+ public:
+ NetworkDelegate();
+ virtual bool OnCanAccessFile(const net::URLRequest& request,
+ const base::FilePath& path) const OVERRIDE;
+};
+
+} // namespace shell
+} // namespace mojo
+
+#endif // MOJO_SHELL_MOJO_NETWORK_DELEGATE_H_
« no previous file with comments | « mojo/shell/loader.cc ('k') | mojo/shell/network_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698