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

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: 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 explicit ShellNetworkDelegate(
James Cook 2014/10/07 20:14:17 no explicit (only use explicit when there is a sin
Xi Han 2014/10/07 21:10:18 Oh, I see, thanks a lot! On 2014/10/07 20:14:17,
18 void* browser_context, InfoMap* extension_info_map); 18 void* browser_context, InfoMap* extension_info_map);
19 virtual ~ExtensionNetworkDelegate(); 19 virtual ~ShellNetworkDelegate();
20 20
21 static void SetAcceptAllCookies(bool accept); 21 static void SetAcceptAllCookies(bool accept);
22 22
23 private: 23 private:
24 // NetworkDelegate implementation. 24 // NetworkDelegate implementation.
25 virtual int OnBeforeURLRequest(net::URLRequest* request, 25 virtual int OnBeforeURLRequest(net::URLRequest* request,
26 const net::CompletionCallback& callback, 26 const net::CompletionCallback& callback,
27 GURL* new_url) OVERRIDE; 27 GURL* new_url) OVERRIDE;
28 virtual int OnBeforeSendHeaders(net::URLRequest* request, 28 virtual int OnBeforeSendHeaders(net::URLRequest* request,
29 const net::CompletionCallback& callback, 29 const net::CompletionCallback& callback,
(...skipping 15 matching lines...) Expand all
45 const base::string16& error) OVERRIDE; 45 const base::string16& error) OVERRIDE;
46 virtual net::NetworkDelegate::AuthRequiredResponse OnAuthRequired( 46 virtual net::NetworkDelegate::AuthRequiredResponse OnAuthRequired(
47 net::URLRequest* request, 47 net::URLRequest* request,
48 const net::AuthChallengeInfo& auth_info, 48 const net::AuthChallengeInfo& auth_info,
49 const AuthCallback& callback, 49 const AuthCallback& callback,
50 net::AuthCredentials* credentials) OVERRIDE; 50 net::AuthCredentials* credentials) OVERRIDE;
51 51
52 void* browser_context_; 52 void* browser_context_;
53 scoped_refptr<extensions::InfoMap> extension_info_map_; 53 scoped_refptr<extensions::InfoMap> extension_info_map_;
54 54
55 DISALLOW_COPY_AND_ASSIGN(ExtensionNetworkDelegate); 55 DISALLOW_COPY_AND_ASSIGN(ShellNetworkDelegate);
56 }; 56 };
57 57
58 } // namespace extensions 58 } // namespace extensions
59 59
60 #endif // EXTENSIONS_BROWSER_EXTENSION_NETNETWORK_DELEGATE_H_ 60 #endif // EXTENSIONS_SHELL_BROWSER_SHELL_NETNETWORK_DELEGATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698