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_BROWSER_NET_VIEW_HTTP_CACHE_JOB_FACTORY_H_ | 5 #ifndef CONTENT_BROWSER_NET_VIEW_HTTP_CACHE_JOB_FACTORY_H_ |
6 #define CONTENT_BROWSER_NET_VIEW_HTTP_CACHE_JOB_FACTORY_H_ | 6 #define CONTENT_BROWSER_NET_VIEW_HTTP_CACHE_JOB_FACTORY_H_ |
7 | 7 |
8 namespace net { | 8 namespace net { |
9 class NetworkDelegate; | 9 class NetworkDelegate; |
10 class URLRequest; | 10 class URLRequest; |
11 class URLRequestJob; | 11 class URLRequestJob; |
12 } // namespace net | 12 } // namespace net |
13 | 13 |
14 class GURL; | 14 class GURL; |
15 | 15 |
| 16 namespace content { |
| 17 |
16 class ViewHttpCacheJobFactory { | 18 class ViewHttpCacheJobFactory { |
17 public: | 19 public: |
18 static bool IsSupportedURL(const GURL& url); | 20 static bool IsSupportedURL(const GURL& url); |
19 static net::URLRequestJob* CreateJobForRequest( | 21 static net::URLRequestJob* CreateJobForRequest( |
20 net::URLRequest* request, net::NetworkDelegate* network_delegate); | 22 net::URLRequest* request, net::NetworkDelegate* network_delegate); |
21 }; | 23 }; |
22 | 24 |
| 25 } // namespace content |
| 26 |
23 #endif // CONTENT_BROWSER_NET_VIEW_HTTP_CACHE_JOB_FACTORY_H_ | 27 #endif // CONTENT_BROWSER_NET_VIEW_HTTP_CACHE_JOB_FACTORY_H_ |
OLD | NEW |