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

Side by Side Diff: net/base/layered_network_delegate.h

Issue 953633002: Remove net::Filter direct dependency on IsSupportedMimeType (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Use NetworkDelegate::IsSupportedMimeType in net::Filter::FixupEncodingTypes Created 5 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 unified diff | Download patch
« no previous file with comments | « content/shell/browser/shell_network_delegate.cc ('k') | net/base/layered_network_delegate.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 NET_BASE_LAYERED_NETWORK_DELEGATE_H_ 5 #ifndef NET_BASE_LAYERED_NETWORK_DELEGATE_H_
6 #define NET_BASE_LAYERED_NETWORK_DELEGATE_H_ 6 #define NET_BASE_LAYERED_NETWORK_DELEGATE_H_
7 7
8 #include "base/memory/scoped_ptr.h" 8 #include "base/memory/scoped_ptr.h"
9 #include "base/strings/string16.h" 9 #include "base/strings/string16.h"
10 #include "net/base/completion_callback.h" 10 #include "net/base/completion_callback.h"
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
77 CookieOptions* options) final; 77 CookieOptions* options) final;
78 bool OnCanAccessFile(const URLRequest& request, 78 bool OnCanAccessFile(const URLRequest& request,
79 const base::FilePath& path) const final; 79 const base::FilePath& path) const final;
80 bool OnCanThrottleRequest(const URLRequest& request) const final; 80 bool OnCanThrottleRequest(const URLRequest& request) const final;
81 bool OnCanEnablePrivacyMode(const GURL& url, 81 bool OnCanEnablePrivacyMode(const GURL& url,
82 const GURL& first_party_for_cookies) const final; 82 const GURL& first_party_for_cookies) const final;
83 bool OnCancelURLRequestWithPolicyViolatingReferrerHeader( 83 bool OnCancelURLRequestWithPolicyViolatingReferrerHeader(
84 const URLRequest& request, 84 const URLRequest& request,
85 const GURL& target_url, 85 const GURL& target_url,
86 const GURL& referrer_url) const final; 86 const GURL& referrer_url) const final;
87 bool OnIsSupportedMimeType(const std::string& mime_type) const final;
87 88
88 protected: 89 protected:
89 virtual void OnBeforeURLRequestInternal(URLRequest* request, 90 virtual void OnBeforeURLRequestInternal(URLRequest* request,
90 const CompletionCallback& callback, 91 const CompletionCallback& callback,
91 GURL* new_url); 92 GURL* new_url);
92 93
93 virtual void OnResolveProxyInternal(const GURL& url, 94 virtual void OnResolveProxyInternal(const GURL& url,
94 int load_flags, 95 int load_flags,
95 const ProxyService& proxy_service, 96 const ProxyService& proxy_service,
96 ProxyInfo* result); 97 ProxyInfo* result);
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
157 const GURL& target_url, 158 const GURL& target_url,
158 const GURL& referrer_url) const; 159 const GURL& referrer_url) const;
159 160
160 private: 161 private:
161 scoped_ptr<NetworkDelegate> nested_network_delegate_; 162 scoped_ptr<NetworkDelegate> nested_network_delegate_;
162 }; 163 };
163 164
164 } // namespace net 165 } // namespace net
165 166
166 #endif // NET_BASE_LAYERED_NETWORK_DELEGATE_H_ 167 #endif // NET_BASE_LAYERED_NETWORK_DELEGATE_H_
OLDNEW
« no previous file with comments | « content/shell/browser/shell_network_delegate.cc ('k') | net/base/layered_network_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698