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/net/net_error_tab_helper.h" | 5 #include "chrome/browser/net/net_error_tab_helper.h" |
6 | 6 |
7 #include "base/bind.h" | 7 #include "base/bind.h" |
8 #include "base/logging.h" | 8 #include "base/logging.h" |
9 #include "chrome/browser/browser_process.h" | 9 #include "chrome/browser/browser_process.h" |
10 #include "chrome/browser/io_thread.h" | 10 #include "chrome/browser/io_thread.h" |
(...skipping 11 matching lines...) Expand all Loading... |
22 #include "content/public/browser/navigation_handle.h" | 22 #include "content/public/browser/navigation_handle.h" |
23 #include "content/public/browser/render_frame_host.h" | 23 #include "content/public/browser/render_frame_host.h" |
24 #include "content/public/common/associated_interface_provider.h" | 24 #include "content/public/common/associated_interface_provider.h" |
25 #include "ipc/ipc_message_macros.h" | 25 #include "ipc/ipc_message_macros.h" |
26 #include "net/base/net_errors.h" | 26 #include "net/base/net_errors.h" |
27 #include "url/gurl.h" | 27 #include "url/gurl.h" |
28 | 28 |
29 #if BUILDFLAG(ANDROID_JAVA_UI) | 29 #if BUILDFLAG(ANDROID_JAVA_UI) |
30 #include "base/guid.h" | 30 #include "base/guid.h" |
31 #include "chrome/browser/android/offline_pages/request_coordinator_factory.h" | 31 #include "chrome/browser/android/offline_pages/request_coordinator_factory.h" |
32 #include "components/offline_pages/background/request_coordinator.h" | 32 #include "components/offline_pages/core/background/request_coordinator.h" |
33 #include "components/offline_pages/client_namespace_constants.h" | 33 #include "components/offline_pages/core/client_namespace_constants.h" |
34 #endif // BUILDFLAG(ANDROID_JAVA_UI) | 34 #endif // BUILDFLAG(ANDROID_JAVA_UI) |
35 | 35 |
36 using content::BrowserContext; | 36 using content::BrowserContext; |
37 using content::BrowserThread; | 37 using content::BrowserThread; |
38 using content::WebContents; | 38 using content::WebContents; |
39 using content::WebContentsObserver; | 39 using content::WebContentsObserver; |
40 using error_page::DnsProbeStatus; | 40 using error_page::DnsProbeStatus; |
41 using error_page::DnsProbeStatusToString; | 41 using error_page::DnsProbeStatusToString; |
42 using ui::PageTransition; | 42 using ui::PageTransition; |
43 | 43 |
(...skipping 240 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
284 offline_pages::ClientId client_id( | 284 offline_pages::ClientId client_id( |
285 offline_pages::kAsyncNamespace, base::GenerateGUID()); | 285 offline_pages::kAsyncNamespace, base::GenerateGUID()); |
286 request_coordinator->SavePageLater( | 286 request_coordinator->SavePageLater( |
287 page_url, client_id, true /*user_requested*/, | 287 page_url, client_id, true /*user_requested*/, |
288 offline_pages::RequestCoordinator::RequestAvailability:: | 288 offline_pages::RequestCoordinator::RequestAvailability:: |
289 ENABLED_FOR_OFFLINER); | 289 ENABLED_FOR_OFFLINER); |
290 } | 290 } |
291 #endif // BUILDFLAG(ANDROID_JAVA_UI) | 291 #endif // BUILDFLAG(ANDROID_JAVA_UI) |
292 | 292 |
293 } // namespace chrome_browser_net | 293 } // namespace chrome_browser_net |
OLD | NEW |