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

Unified Diff: extensions/browser/extension_network_delegate.h

Issue 631203003: Fix bug: AppShell: CHECK failure in PeerConnection init. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase again. 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
« no previous file with comments | « extensions/browser/BUILD.gn ('k') | extensions/browser/extension_network_delegate.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: extensions/browser/extension_network_delegate.h
diff --git a/extensions/browser/extension_network_delegate.h b/extensions/browser/extension_network_delegate.h
deleted file mode 100644
index e27707bfb3b907e35039f4624c635bdd0bcc60ae..0000000000000000000000000000000000000000
--- a/extensions/browser/extension_network_delegate.h
+++ /dev/null
@@ -1,60 +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.
-
-#ifndef EXTENSIONS_BROWSER_EXTENSION_NETNETWORK_DELEGATE_H_
-#define EXTENSIONS_BROWSER_EXTENSION_NETNETWORK_DELEGATE_H_
-
-#include "extensions/browser/info_map.h"
-#include "net/base/network_delegate.h"
-
-namespace extensions {
-
-class InfoMap;
-
-class ExtensionNetworkDelegate : public net::NetworkDelegate {
- public:
- explicit ExtensionNetworkDelegate(
- void* browser_context, InfoMap* extension_info_map);
- virtual ~ExtensionNetworkDelegate();
-
- static void SetAcceptAllCookies(bool accept);
-
- private:
- // NetworkDelegate implementation.
- virtual int OnBeforeURLRequest(net::URLRequest* request,
- const net::CompletionCallback& callback,
- GURL* new_url) OVERRIDE;
- virtual int OnBeforeSendHeaders(net::URLRequest* request,
- const net::CompletionCallback& callback,
- net::HttpRequestHeaders* headers) OVERRIDE;
- virtual void OnSendHeaders(net::URLRequest* request,
- const net::HttpRequestHeaders& headers) OVERRIDE;
- virtual int 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) OVERRIDE;
- virtual void OnBeforeRedirect(net::URLRequest* request,
- const GURL& new_location) OVERRIDE;
- virtual void OnResponseStarted(net::URLRequest* request) OVERRIDE;
- virtual void OnCompleted(net::URLRequest* request, bool started) OVERRIDE;
- virtual void OnURLRequestDestroyed(net::URLRequest* request) OVERRIDE;
- virtual void OnPACScriptError(int line_number,
- const base::string16& error) OVERRIDE;
- virtual net::NetworkDelegate::AuthRequiredResponse OnAuthRequired(
- net::URLRequest* request,
- const net::AuthChallengeInfo& auth_info,
- const AuthCallback& callback,
- net::AuthCredentials* credentials) OVERRIDE;
-
- void* browser_context_;
- scoped_refptr<extensions::InfoMap> extension_info_map_;
-
- DISALLOW_COPY_AND_ASSIGN(ExtensionNetworkDelegate);
-};
-
-} // namespace extensions
-
-#endif // EXTENSIONS_BROWSER_EXTENSION_NETNETWORK_DELEGATE_H_
« no previous file with comments | « extensions/browser/BUILD.gn ('k') | extensions/browser/extension_network_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698