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

Side by Side Diff: chrome/browser/net/chrome_network_delegate.cc

Issue 147923005: Split ExtensionSystem interface from ExtensionSystemImpl implementation, part 1. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: re^3base Created 6 years, 10 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 | Annotate | Revision Log
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/net/chrome_network_delegate.h" 5 #include "chrome/browser/net/chrome_network_delegate.h"
6 6
7 #include <stdlib.h> 7 #include <stdlib.h>
8 8
9 #include <vector> 9 #include <vector>
10 10
11 #include "base/base_paths.h" 11 #include "base/base_paths.h"
12 #include "base/debug/trace_event.h" 12 #include "base/debug/trace_event.h"
13 #include "base/logging.h" 13 #include "base/logging.h"
14 #include "base/metrics/histogram.h" 14 #include "base/metrics/histogram.h"
15 #include "base/path_service.h" 15 #include "base/path_service.h"
16 #include "base/prefs/pref_member.h" 16 #include "base/prefs/pref_member.h"
17 #include "base/prefs/pref_service.h" 17 #include "base/prefs/pref_service.h"
18 #include "base/strings/string_number_conversions.h" 18 #include "base/strings/string_number_conversions.h"
19 #include "base/strings/string_split.h" 19 #include "base/strings/string_split.h"
20 #include "base/time/time.h" 20 #include "base/time/time.h"
21 #include "chrome/browser/browser_process.h" 21 #include "chrome/browser/browser_process.h"
22 #include "chrome/browser/content_settings/cookie_settings.h" 22 #include "chrome/browser/content_settings/cookie_settings.h"
23 #include "chrome/browser/content_settings/tab_specific_content_settings.h" 23 #include "chrome/browser/content_settings/tab_specific_content_settings.h"
24 #include "chrome/browser/custom_handlers/protocol_handler_registry.h" 24 #include "chrome/browser/custom_handlers/protocol_handler_registry.h"
25 #include "chrome/browser/extensions/api/proxy/proxy_api.h" 25 #include "chrome/browser/extensions/api/proxy/proxy_api.h"
26 #include "chrome/browser/extensions/api/web_request/web_request_api.h" 26 #include "chrome/browser/extensions/api/web_request/web_request_api.h"
27 #include "chrome/browser/extensions/event_router_forwarder.h" 27 #include "chrome/browser/extensions/event_router_forwarder.h"
28 #include "chrome/browser/extensions/extension_system.h"
29 #include "chrome/browser/google/google_util.h" 28 #include "chrome/browser/google/google_util.h"
30 #include "chrome/browser/net/client_hints.h" 29 #include "chrome/browser/net/client_hints.h"
31 #include "chrome/browser/net/connect_interceptor.h" 30 #include "chrome/browser/net/connect_interceptor.h"
32 #include "chrome/browser/net/spdyproxy/data_saving_metrics.h" 31 #include "chrome/browser/net/spdyproxy/data_saving_metrics.h"
33 #include "chrome/browser/performance_monitor/performance_monitor.h" 32 #include "chrome/browser/performance_monitor/performance_monitor.h"
34 #include "chrome/browser/profiles/profile_manager.h" 33 #include "chrome/browser/profiles/profile_manager.h"
35 #include "chrome/browser/task_manager/task_manager.h" 34 #include "chrome/browser/task_manager/task_manager.h"
36 #include "chrome/common/pref_names.h" 35 #include "chrome/common/pref_names.h"
37 #include "chrome/common/url_constants.h" 36 #include "chrome/common/url_constants.h"
38 #include "content/public/browser/browser_thread.h" 37 #include "content/public/browser/browser_thread.h"
39 #include "content/public/browser/render_frame_host.h" 38 #include "content/public/browser/render_frame_host.h"
40 #include "content/public/browser/render_view_host.h" 39 #include "content/public/browser/render_view_host.h"
41 #include "content/public/browser/resource_request_info.h" 40 #include "content/public/browser/resource_request_info.h"
41 #include "extensions/browser/extension_system.h"
42 #include "extensions/browser/info_map.h" 42 #include "extensions/browser/info_map.h"
43 #include "extensions/browser/process_manager.h" 43 #include "extensions/browser/process_manager.h"
44 #include "extensions/common/constants.h" 44 #include "extensions/common/constants.h"
45 #include "net/base/host_port_pair.h" 45 #include "net/base/host_port_pair.h"
46 #include "net/base/net_errors.h" 46 #include "net/base/net_errors.h"
47 #include "net/base/net_log.h" 47 #include "net/base/net_log.h"
48 #include "net/cookies/canonical_cookie.h" 48 #include "net/cookies/canonical_cookie.h"
49 #include "net/cookies/cookie_options.h" 49 #include "net/cookies/cookie_options.h"
50 #include "net/http/http_request_headers.h" 50 #include "net/http/http_request_headers.h"
51 #include "net/http/http_response_headers.h" 51 #include "net/http/http_response_headers.h"
(...skipping 748 matching lines...) Expand 10 before | Expand all | Expand 10 after
800 spdyproxy::DataReductionRequestType data_reduction_type) { 800 spdyproxy::DataReductionRequestType data_reduction_type) {
801 DCHECK_GE(received_content_length, 0); 801 DCHECK_GE(received_content_length, 0);
802 DCHECK_GE(original_content_length, 0); 802 DCHECK_GE(original_content_length, 0);
803 StoreAccumulatedContentLength(received_content_length, 803 StoreAccumulatedContentLength(received_content_length,
804 original_content_length, 804 original_content_length,
805 data_reduction_type, 805 data_reduction_type,
806 reinterpret_cast<Profile*>(profile_)); 806 reinterpret_cast<Profile*>(profile_));
807 received_content_length_ += received_content_length; 807 received_content_length_ += received_content_length;
808 original_content_length_ += original_content_length; 808 original_content_length_ += original_content_length;
809 } 809 }
OLDNEW
« no previous file with comments | « chrome/browser/nacl_host/nacl_browser_delegate_impl.cc ('k') | chrome/browser/notifications/desktop_notification_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698