Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 CONTENT_PUBLIC_BROWSER_RESOURCE_DISPATCHER_HOST_DELEGATE_H_ | 5 #ifndef CONTENT_PUBLIC_BROWSER_RESOURCE_DISPATCHER_HOST_DELEGATE_H_ |
| 6 #define CONTENT_PUBLIC_BROWSER_RESOURCE_DISPATCHER_HOST_DELEGATE_H_ | 6 #define CONTENT_PUBLIC_BROWSER_RESOURCE_DISPATCHER_HOST_DELEGATE_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/files/file_path.h" | 10 #include "base/files/file_path.h" |
| 11 #include "base/memory/scoped_ptr.h" | 11 #include "base/memory/scoped_ptr.h" |
| 12 #include "content/common/content_export.h" | 12 #include "content/common/content_export.h" |
| 13 #include "content/public/browser/resource_request_info.h" | 13 #include "content/public/browser/resource_request_info.h" |
| 14 #include "content/public/common/resource_type.h" | 14 #include "content/public/common/resource_type.h" |
| 15 #include "ui/base/page_transition_types.h" | 15 #include "ui/base/page_transition_types.h" |
| 16 | 16 |
| 17 class GURL; | 17 class GURL; |
| 18 template <class T> class ScopedVector; | 18 template <class T> class ScopedVector; |
| 19 | 19 |
| 20 namespace IPC { | 20 namespace IPC { |
| 21 class Sender; | 21 class Sender; |
| 22 } | 22 } |
| 23 | 23 |
| 24 namespace net { | 24 namespace net { |
| 25 class AuthChallengeInfo; | 25 class AuthChallengeInfo; |
| 26 class URLRequest; | 26 class URLRequest; |
| 27 class HostPortPair; | |
|
tbansal1
2016/03/07 18:05:05
Alphabetical order.
RyanSturm
2016/03/08 19:47:43
Done.
| |
| 27 } | 28 } |
| 28 | 29 |
| 29 namespace content { | 30 namespace content { |
| 30 | 31 |
| 31 class AppCacheService; | 32 class AppCacheService; |
| 32 class ResourceContext; | 33 class ResourceContext; |
| 33 class ResourceDispatcherHostLoginDelegate; | 34 class ResourceDispatcherHostLoginDelegate; |
| 34 class ResourceThrottle; | 35 class ResourceThrottle; |
| 35 struct Referrer; | 36 struct Referrer; |
| 36 struct ResourceResponse; | 37 struct ResourceResponse; |
| (...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 123 ResourceResponse* response); | 124 ResourceResponse* response); |
| 124 | 125 |
| 125 // Notification that a request has completed. | 126 // Notification that a request has completed. |
| 126 virtual void RequestComplete(net::URLRequest* url_request); | 127 virtual void RequestComplete(net::URLRequest* url_request); |
| 127 | 128 |
| 128 // Asks the embedder if Lo-Fi mode should be enabled for the given request. It | 129 // Asks the embedder if Lo-Fi mode should be enabled for the given request. It |
| 129 // is only called for requests with an unspecified Lo-Fi value. | 130 // is only called for requests with an unspecified Lo-Fi value. |
| 130 virtual bool ShouldEnableLoFiMode(const net::URLRequest& url_request, | 131 virtual bool ShouldEnableLoFiMode(const net::URLRequest& url_request, |
| 131 content::ResourceContext* resource_context); | 132 content::ResourceContext* resource_context); |
| 132 | 133 |
| 134 virtual bool UsedDataReductionProxy(const net::HostPortPair& proxy_server, | |
|
tbansal1
2016/03/07 18:05:05
Please add function comments.
RyanSturm
2016/03/08 19:47:43
Done.
| |
| 135 ResourceContext* resource_context); | |
| 136 | |
| 133 protected: | 137 protected: |
| 134 ResourceDispatcherHostDelegate(); | 138 ResourceDispatcherHostDelegate(); |
| 135 virtual ~ResourceDispatcherHostDelegate(); | 139 virtual ~ResourceDispatcherHostDelegate(); |
| 136 }; | 140 }; |
| 137 | 141 |
| 138 } // namespace content | 142 } // namespace content |
| 139 | 143 |
| 140 #endif // CONTENT_PUBLIC_BROWSER_RESOURCE_DISPATCHER_HOST_DELEGATE_H_ | 144 #endif // CONTENT_PUBLIC_BROWSER_RESOURCE_DISPATCHER_HOST_DELEGATE_H_ |
| OLD | NEW |