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

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

Issue 2715043002: Replace prefix of ios/web_view C++ classes. (Closed)
Patch Set: Respond to comments. 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
Index: ios/web_view/internal/web_view_network_delegate.cc
diff --git a/ios/web_view/internal/web_view_network_delegate.cc b/ios/web_view/internal/web_view_network_delegate.cc
new file mode 100644
index 0000000000000000000000000000000000000000..761aa7b7a510c2356c8e86a33e0e42c7a077aee0
--- /dev/null
+++ b/ios/web_view/internal/web_view_network_delegate.cc
@@ -0,0 +1,83 @@
+// 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/web_view_network_delegate.h"
+
+#include "net/base/net_errors.h"
+
+namespace ios_web_view {
+
+WebViewNetworkDelegate::WebViewNetworkDelegate() {}
+
+WebViewNetworkDelegate::~WebViewNetworkDelegate() = default;
+
+int WebViewNetworkDelegate::OnBeforeURLRequest(
+ net::URLRequest* request,
+ const net::CompletionCallback& callback,
+ GURL* new_url) {
+ return net::OK;
+}
+
+int WebViewNetworkDelegate::OnBeforeStartTransaction(
+ net::URLRequest* request,
+ const net::CompletionCallback& callback,
+ net::HttpRequestHeaders* headers) {
+ return net::OK;
+}
+
+void WebViewNetworkDelegate::OnStartTransaction(
+ net::URLRequest* request,
+ const net::HttpRequestHeaders& headers) {}
+
+int WebViewNetworkDelegate::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 WebViewNetworkDelegate::OnBeforeRedirect(net::URLRequest* request,
+ const GURL& new_location) {}
+
+void WebViewNetworkDelegate::OnResponseStarted(net::URLRequest* request) {}
+
+void WebViewNetworkDelegate::OnNetworkBytesReceived(net::URLRequest* request,
+ int64_t bytes_received) {}
+
+void WebViewNetworkDelegate::OnCompleted(net::URLRequest* request,
+ bool started) {}
+
+void WebViewNetworkDelegate::OnURLRequestDestroyed(net::URLRequest* request) {}
+
+void WebViewNetworkDelegate::OnPACScriptError(int line_number,
+ const base::string16& error) {}
+
+WebViewNetworkDelegate::AuthRequiredResponse
+WebViewNetworkDelegate::OnAuthRequired(net::URLRequest* request,
+ const net::AuthChallengeInfo& auth_info,
+ const AuthCallback& callback,
+ net::AuthCredentials* credentials) {
+ return AUTH_REQUIRED_RESPONSE_NO_ACTION;
+}
+
+bool WebViewNetworkDelegate::OnCanGetCookies(
+ const net::URLRequest& request,
+ const net::CookieList& cookie_list) {
+ return true;
+}
+
+bool WebViewNetworkDelegate::OnCanSetCookie(const net::URLRequest& request,
+ const std::string& cookie_line,
+ net::CookieOptions* options) {
+ return true;
+}
+
+bool WebViewNetworkDelegate::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/web_view_network_delegate.h ('k') | ios/web_view/internal/web_view_url_request_context_getter.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698