| 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 #include "chrome/browser/renderer_host/offline_resource_throttle.h" | 5 #include "chrome/browser/renderer_host/offline_resource_throttle.h" |
| 6 | 6 |
| 7 #include <vector> | 7 #include <vector> |
| 8 | 8 |
| 9 #include "base/bind.h" | 9 #include "base/bind.h" |
| 10 #include "base/logging.h" | 10 #include "base/logging.h" |
| 11 #include "base/memory/singleton.h" | 11 #include "base/memory/singleton.h" |
| 12 #include "base/metrics/histogram.h" | 12 #include "base/metrics/histogram.h" |
| 13 #include "base/string_util.h" | 13 #include "base/string_util.h" |
| 14 #include "chrome/browser/chromeos/offline/offline_load_page.h" | 14 #include "chrome/browser/chromeos/offline/offline_load_page.h" |
| 15 #include "chrome/browser/net/chrome_url_request_context.h" | 15 #include "chrome/browser/net/chrome_url_request_context.h" |
| 16 #include "chrome/common/url_constants.h" | 16 #include "chrome/common/url_constants.h" |
| 17 #include "content/browser/renderer_host/render_view_host.h" | 17 #include "content/browser/renderer_host/render_view_host.h" |
| 18 #include "content/browser/renderer_host/resource_dispatcher_host.h" | |
| 19 #include "content/browser/renderer_host/resource_dispatcher_host_request_info.h" | |
| 20 #include "content/public/browser/browser_thread.h" | 18 #include "content/public/browser/browser_thread.h" |
| 21 #include "content/public/browser/render_view_host_delegate.h" | 19 #include "content/public/browser/render_view_host_delegate.h" |
| 22 #include "content/public/browser/resource_context.h" | 20 #include "content/public/browser/resource_context.h" |
| 23 #include "content/public/browser/resource_throttle_controller.h" | 21 #include "content/public/browser/resource_throttle_controller.h" |
| 24 #include "net/base/net_errors.h" | 22 #include "net/base/net_errors.h" |
| 25 #include "net/base/network_change_notifier.h" | 23 #include "net/base/network_change_notifier.h" |
| 26 #include "net/url_request/url_request.h" | 24 #include "net/url_request/url_request.h" |
| 27 #include "net/url_request/url_request_context.h" | 25 #include "net/url_request/url_request_context.h" |
| 28 #include "webkit/appcache/appcache_service.h" | 26 #include "webkit/appcache/appcache_service.h" |
| 29 | 27 |
| (...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 132 base::Bind( | 130 base::Bind( |
| 133 &ShowOfflinePage, | 131 &ShowOfflinePage, |
| 134 render_process_id_, | 132 render_process_id_, |
| 135 render_view_id_, | 133 render_view_id_, |
| 136 request_->url(), | 134 request_->url(), |
| 137 base::Bind( | 135 base::Bind( |
| 138 &OfflineResourceThrottle::OnBlockingPageComplete, | 136 &OfflineResourceThrottle::OnBlockingPageComplete, |
| 139 AsWeakPtr()))); | 137 AsWeakPtr()))); |
| 140 } | 138 } |
| 141 } | 139 } |
| OLD | NEW |