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

Unified Diff: ios/web/shell/shell_network_delegate.h

Issue 1149323004: Upstream the iOS web_shell and supporting code (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@web-thread-impl
Patch Set: Address review comments Created 5 years, 7 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 | « ios/web/shell/shell_main_delegate.mm ('k') | ios/web/shell/shell_network_delegate.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ios/web/shell/shell_network_delegate.h
diff --git a/content/shell/browser/shell_network_delegate.h b/ios/web/shell/shell_network_delegate.h
similarity index 85%
copy from content/shell/browser/shell_network_delegate.h
copy to ios/web/shell/shell_network_delegate.h
index a23f5ffc56367e2ce9f9e3729495b5b212522da8..70f0f210e5230d2cdd34f4e2630f23d0d7a4bc2d 100644
--- a/content/shell/browser/shell_network_delegate.h
+++ b/ios/web/shell/shell_network_delegate.h
@@ -1,23 +1,21 @@
-// Copyright 2013 The Chromium Authors. All rights reserved.
+// 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.
-#ifndef CONTENT_SHELL_BROWSER_SHELL_NETWORK_DELEGATE_H_
-#define CONTENT_SHELL_BROWSER_SHELL_NETWORK_DELEGATE_H_
+#ifndef IOS_WEB_SHELL_SHELL_NETWORK_DELEGATE_H_
+#define IOS_WEB_SHELL_SHELL_NETWORK_DELEGATE_H_
#include "base/basictypes.h"
#include "base/compiler_specific.h"
#include "net/base/network_delegate_impl.h"
-namespace content {
+namespace web {
class ShellNetworkDelegate : public net::NetworkDelegateImpl {
public:
ShellNetworkDelegate();
~ShellNetworkDelegate() override;
- static void SetAcceptAllCookies(bool accept);
-
private:
// net::NetworkDelegate implementation.
int OnBeforeURLRequest(net::URLRequest* request,
@@ -54,11 +52,10 @@ class ShellNetworkDelegate : public net::NetworkDelegateImpl {
bool OnCanAccessFile(const net::URLRequest& request,
const base::FilePath& path) const override;
bool OnCanThrottleRequest(const net::URLRequest& request) const override;
- bool OnFirstPartyOnlyCookieExperimentEnabled() const override;
DISALLOW_COPY_AND_ASSIGN(ShellNetworkDelegate);
};
-} // namespace content
+} // namespace web
-#endif // CONTENT_SHELL_BROWSER_SHELL_NETWORK_DELEGATE_H_
+#endif // IOS_WEB_SHELL_SHELL_NETWORK_DELEGATE_H_
« no previous file with comments | « ios/web/shell/shell_main_delegate.mm ('k') | ios/web/shell/shell_network_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698