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

Side by Side Diff: extensions/shell/browser/shell_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 unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef EXTENSIONS_BROWSER_EXTENSION_NETNETWORK_DELEGATE_H_ 5 #ifndef EXTENSIONS_SHELL_BROWSER_SHELL_NETNETWORK_DELEGATE_H_
6 #define EXTENSIONS_BROWSER_EXTENSION_NETNETWORK_DELEGATE_H_ 6 #define EXTENSIONS_SHELL_BROWSER_SHELL_NETNETWORK_DELEGATE_H_
7 7
8 #include "extensions/browser/info_map.h" 8 #include "extensions/browser/info_map.h"
9 #include "net/base/network_delegate.h" 9 #include "net/base/network_delegate.h"
10 10
11 namespace extensions { 11 namespace extensions {
12 12
13 class InfoMap; 13 class InfoMap;
14 14
15 class ExtensionNetworkDelegate : public net::NetworkDelegate { 15 class ShellNetworkDelegate : public net::NetworkDelegate {
16 public: 16 public:
17 explicit ExtensionNetworkDelegate( 17 ShellNetworkDelegate(void* browser_context, InfoMap* extension_info_map);
18 void* browser_context, InfoMap* extension_info_map); 18 virtual ~ShellNetworkDelegate();
19 virtual ~ExtensionNetworkDelegate();
20 19
21 static void SetAcceptAllCookies(bool accept); 20 static void SetAcceptAllCookies(bool accept);
22 21
23 private: 22 private:
24 // NetworkDelegate implementation. 23 // NetworkDelegate implementation.
25 virtual int OnBeforeURLRequest(net::URLRequest* request, 24 virtual int OnBeforeURLRequest(net::URLRequest* request,
26 const net::CompletionCallback& callback, 25 const net::CompletionCallback& callback,
27 GURL* new_url) OVERRIDE; 26 GURL* new_url) OVERRIDE;
28 virtual int OnBeforeSendHeaders(net::URLRequest* request, 27 virtual int OnBeforeSendHeaders(net::URLRequest* request,
29 const net::CompletionCallback& callback, 28 const net::CompletionCallback& callback,
(...skipping 15 matching lines...) Expand all
45 const base::string16& error) OVERRIDE; 44 const base::string16& error) OVERRIDE;
46 virtual net::NetworkDelegate::AuthRequiredResponse OnAuthRequired( 45 virtual net::NetworkDelegate::AuthRequiredResponse OnAuthRequired(
47 net::URLRequest* request, 46 net::URLRequest* request,
48 const net::AuthChallengeInfo& auth_info, 47 const net::AuthChallengeInfo& auth_info,
49 const AuthCallback& callback, 48 const AuthCallback& callback,
50 net::AuthCredentials* credentials) OVERRIDE; 49 net::AuthCredentials* credentials) OVERRIDE;
51 50
52 void* browser_context_; 51 void* browser_context_;
53 scoped_refptr<extensions::InfoMap> extension_info_map_; 52 scoped_refptr<extensions::InfoMap> extension_info_map_;
54 53
55 DISALLOW_COPY_AND_ASSIGN(ExtensionNetworkDelegate); 54 DISALLOW_COPY_AND_ASSIGN(ShellNetworkDelegate);
56 }; 55 };
57 56
58 } // namespace extensions 57 } // namespace extensions
59 58
60 #endif // EXTENSIONS_BROWSER_EXTENSION_NETNETWORK_DELEGATE_H_ 59 #endif // EXTENSIONS_SHELL_BROWSER_SHELL_NETNETWORK_DELEGATE_H_
OLDNEW
« no previous file with comments | « extensions/shell/browser/shell_browser_context.cc ('k') | extensions/shell/browser/shell_network_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698