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

Unified Diff: ios/web_view/internal/cwv_network_delegate.cc

Issue 2715603002: Rename CRIWVNetworkDelegate to CWVNetworkDelegate. (Closed)
Patch Set: Created 3 years, 10 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_view/internal/cwv_network_delegate.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ios/web_view/internal/cwv_network_delegate.cc
diff --git a/ios/web_view/internal/cwv_network_delegate.cc b/ios/web_view/internal/cwv_network_delegate.cc
new file mode 100644
index 0000000000000000000000000000000000000000..3302d556e6e51edae3ca3000d78b6641ee379330
--- /dev/null
+++ b/ios/web_view/internal/cwv_network_delegate.cc
@@ -0,0 +1,81 @@
+// 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 "ios/web_view/internal/cwv_network_delegate.h"
+
+#include "net/base/net_errors.h"
+
+namespace ios_web_view {
+
+CWVNetworkDelegate::CWVNetworkDelegate() {}
+
+CWVNetworkDelegate::~CWVNetworkDelegate() {}
+
+int CWVNetworkDelegate::OnBeforeURLRequest(
+ net::URLRequest* request,
+ const net::CompletionCallback& callback,
+ GURL* new_url) {
+ return net::OK;
+}
+
+int CWVNetworkDelegate::OnBeforeStartTransaction(
+ net::URLRequest* request,
+ const net::CompletionCallback& callback,
+ net::HttpRequestHeaders* headers) {
+ return net::OK;
+}
+
+void CWVNetworkDelegate::OnStartTransaction(
+ net::URLRequest* request,
+ const net::HttpRequestHeaders& headers) {}
+
+int CWVNetworkDelegate::OnHeadersReceived(
+ net::URLRequest* request,
+ const net::CompletionCallback& callback,
+ const net::HttpResponseHeaders* original_response_headers,
+ scoped_refptr<net::HttpResponseHeaders>* override_response_headers,
+ GURL* allowed_unsafe_redirect_url) {
+ return net::OK;
+}
+
+void CWVNetworkDelegate::OnBeforeRedirect(net::URLRequest* request,
+ const GURL& new_location) {}
+
+void CWVNetworkDelegate::OnResponseStarted(net::URLRequest* request) {}
+
+void CWVNetworkDelegate::OnNetworkBytesReceived(net::URLRequest* request,
+ int64_t bytes_received) {}
+
+void CWVNetworkDelegate::OnCompleted(net::URLRequest* request, bool started) {}
+
+void CWVNetworkDelegate::OnURLRequestDestroyed(net::URLRequest* request) {}
+
+void CWVNetworkDelegate::OnPACScriptError(int line_number,
+ const base::string16& error) {}
+
+CWVNetworkDelegate::AuthRequiredResponse CWVNetworkDelegate::OnAuthRequired(
+ net::URLRequest* request,
+ const net::AuthChallengeInfo& auth_info,
+ const AuthCallback& callback,
+ net::AuthCredentials* credentials) {
+ return AUTH_REQUIRED_RESPONSE_NO_ACTION;
+}
+
+bool CWVNetworkDelegate::OnCanGetCookies(const net::URLRequest& request,
+ const net::CookieList& cookie_list) {
+ return true;
+}
+
+bool CWVNetworkDelegate::OnCanSetCookie(const net::URLRequest& request,
+ const std::string& cookie_line,
+ net::CookieOptions* options) {
+ return true;
+}
+
+bool CWVNetworkDelegate::OnCanAccessFile(const net::URLRequest& request,
+ const base::FilePath& path) const {
+ return true;
+}
+
+} // namespace ios_web_view
« no previous file with comments | « ios/web_view/internal/cwv_network_delegate.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698