Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(52)

Side by Side Diff: chrome/browser/loader/chrome_resource_dispatcher_host_delegate.cc

Issue 2881223002: Create chrome/browser/offline_pages to host browser-related parts of offline_pages whcih (Closed)
Patch Set: modified OWNERS and added DEPS Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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/loader/chrome_resource_dispatcher_host_delegate.h" 5 #include "chrome/browser/loader/chrome_resource_dispatcher_host_delegate.h"
6 6
7 #include <stdint.h> 7 #include <stdint.h>
8 #include <string> 8 #include <string>
9 #include <utility> 9 #include <utility>
10 #include <vector> 10 #include <vector>
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after
94 #include "extensions/browser/guest_view/web_view/web_view_renderer_state.h" 94 #include "extensions/browser/guest_view/web_view/web_view_renderer_state.h"
95 #include "extensions/browser/info_map.h" 95 #include "extensions/browser/info_map.h"
96 #include "extensions/common/constants.h" 96 #include "extensions/common/constants.h"
97 #include "extensions/common/extension_urls.h" 97 #include "extensions/common/extension_urls.h"
98 #include "extensions/common/manifest_handlers/mime_types_handler.h" 98 #include "extensions/common/manifest_handlers/mime_types_handler.h"
99 #include "extensions/common/user_script.h" 99 #include "extensions/common/user_script.h"
100 #endif 100 #endif
101 101
102 #if defined(OS_ANDROID) 102 #if defined(OS_ANDROID)
103 #include "chrome/browser/android/download/intercept_download_resource_throttle.h " 103 #include "chrome/browser/android/download/intercept_download_resource_throttle.h "
104 #include "chrome/browser/android/offline_pages/background_loader_offliner.h"
105 #include "chrome/browser/android/offline_pages/downloads/resource_throttle.h" 104 #include "chrome/browser/android/offline_pages/downloads/resource_throttle.h"
106 #include "chrome/browser/loader/data_reduction_proxy_resource_throttle_android.h " 105 #include "chrome/browser/loader/data_reduction_proxy_resource_throttle_android.h "
106 #include "chrome/browser/offline_pages/background_loader_offliner.h"
107 #include "components/navigation_interception/intercept_navigation_delegate.h" 107 #include "components/navigation_interception/intercept_navigation_delegate.h"
108 #endif 108 #endif
109 109
110 #if defined(OS_CHROMEOS) 110 #if defined(OS_CHROMEOS)
111 #include "chrome/browser/chromeos/login/signin/merge_session_resource_throttle.h " 111 #include "chrome/browser/chromeos/login/signin/merge_session_resource_throttle.h "
112 #include "chrome/browser/chromeos/login/signin/merge_session_throttling_utils.h" 112 #include "chrome/browser/chromeos/login/signin/merge_session_throttling_utils.h"
113 #endif 113 #endif
114 114
115 using content::BrowserThread; 115 using content::BrowserThread;
116 using content::RenderViewHost; 116 using content::RenderViewHost;
(...skipping 848 matching lines...) Expand 10 before | Expand all | Expand 10 after
965 &ChromeResourceDispatcherHostDelegate::OnAbortedFrameLoad, 965 &ChromeResourceDispatcherHostDelegate::OnAbortedFrameLoad,
966 base::Unretained(this), url, request_loading_time)); 966 base::Unretained(this), url, request_loading_time));
967 return; 967 return;
968 } 968 }
969 969
970 std::string metric_name = (request_loading_time.InMilliseconds() < 100 ? 970 std::string metric_name = (request_loading_time.InMilliseconds() < 100 ?
971 "Net.ErrAborted.Fast" : "Net.ErrAborted.Slow"); 971 "Net.ErrAborted.Fast" : "Net.ErrAborted.Slow");
972 rappor::SampleDomainAndRegistryFromGURL( 972 rappor::SampleDomainAndRegistryFromGURL(
973 g_browser_process->rappor_service(), metric_name, url); 973 g_browser_process->rappor_service(), metric_name, url);
974 } 974 }
OLDNEW
« no previous file with comments | « chrome/browser/android/offline_pages/request_coordinator_factory.cc ('k') | chrome/browser/offline_pages/DEPS » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698