| 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 // See http://dev.chromium.org/developers/design-documents/multi-process-resourc
e-loading | 5 // See http://dev.chromium.org/developers/design-documents/multi-process-resourc
e-loading |
| 6 | 6 |
| 7 #include "content/browser/loader/resource_dispatcher_host_impl.h" | 7 #include "content/browser/loader/resource_dispatcher_host_impl.h" |
| 8 | 8 |
| 9 #include <algorithm> | 9 #include <algorithm> |
| 10 #include <set> | 10 #include <set> |
| (...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 87 #include "net/cookies/cookie_monster.h" | 87 #include "net/cookies/cookie_monster.h" |
| 88 #include "net/http/http_response_headers.h" | 88 #include "net/http/http_response_headers.h" |
| 89 #include "net/http/http_response_info.h" | 89 #include "net/http/http_response_info.h" |
| 90 #include "net/ssl/ssl_cert_request_info.h" | 90 #include "net/ssl/ssl_cert_request_info.h" |
| 91 #include "net/url_request/url_request.h" | 91 #include "net/url_request/url_request.h" |
| 92 #include "net/url_request/url_request_context.h" | 92 #include "net/url_request/url_request_context.h" |
| 93 #include "net/url_request/url_request_job_factory.h" | 93 #include "net/url_request/url_request_job_factory.h" |
| 94 #include "storage/browser/blob/blob_data_handle.h" | 94 #include "storage/browser/blob/blob_data_handle.h" |
| 95 #include "storage/browser/blob/blob_storage_context.h" | 95 #include "storage/browser/blob/blob_storage_context.h" |
| 96 #include "storage/browser/blob/blob_url_request_job_factory.h" | 96 #include "storage/browser/blob/blob_url_request_job_factory.h" |
| 97 #include "storage/browser/blob/shareable_file_reference.h" |
| 97 #include "storage/browser/fileapi/file_permission_policy.h" | 98 #include "storage/browser/fileapi/file_permission_policy.h" |
| 98 #include "storage/browser/fileapi/file_system_context.h" | 99 #include "storage/browser/fileapi/file_system_context.h" |
| 99 #include "storage/common/blob/blob_data.h" | |
| 100 #include "storage/common/blob/shareable_file_reference.h" | |
| 101 #include "url/url_constants.h" | 100 #include "url/url_constants.h" |
| 102 | 101 |
| 103 using base::Time; | 102 using base::Time; |
| 104 using base::TimeDelta; | 103 using base::TimeDelta; |
| 105 using base::TimeTicks; | 104 using base::TimeTicks; |
| 106 using storage::ShareableFileReference; | 105 using storage::ShareableFileReference; |
| 107 | 106 |
| 108 // ---------------------------------------------------------------------------- | 107 // ---------------------------------------------------------------------------- |
| 109 | 108 |
| 110 namespace content { | 109 namespace content { |
| (...skipping 2257 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2368 | 2367 |
| 2369 // Add a flag to selectively bypass the data reduction proxy if the resource | 2368 // Add a flag to selectively bypass the data reduction proxy if the resource |
| 2370 // type is not an image. | 2369 // type is not an image. |
| 2371 if (request_data.resource_type != RESOURCE_TYPE_IMAGE) | 2370 if (request_data.resource_type != RESOURCE_TYPE_IMAGE) |
| 2372 load_flags |= net::LOAD_BYPASS_DATA_REDUCTION_PROXY; | 2371 load_flags |= net::LOAD_BYPASS_DATA_REDUCTION_PROXY; |
| 2373 | 2372 |
| 2374 return load_flags; | 2373 return load_flags; |
| 2375 } | 2374 } |
| 2376 | 2375 |
| 2377 } // namespace content | 2376 } // namespace content |
| OLD | NEW |