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

Side by Side Diff: content/browser/loader/resource_dispatcher_host_impl.cc

Issue 2512563003: Convert enable_plugins to a buildflag header. (Closed)
Patch Set: Merge Created 4 years, 1 month 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 // 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 <stddef.h> 9 #include <stddef.h>
10 10
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after
102 #include "net/cert/cert_status_flags.h" 102 #include "net/cert/cert_status_flags.h"
103 #include "net/cookies/cookie_monster.h" 103 #include "net/cookies/cookie_monster.h"
104 #include "net/http/http_request_headers.h" 104 #include "net/http/http_request_headers.h"
105 #include "net/http/http_response_headers.h" 105 #include "net/http/http_response_headers.h"
106 #include "net/http/http_response_info.h" 106 #include "net/http/http_response_info.h"
107 #include "net/ssl/client_cert_store.h" 107 #include "net/ssl/client_cert_store.h"
108 #include "net/ssl/ssl_cert_request_info.h" 108 #include "net/ssl/ssl_cert_request_info.h"
109 #include "net/url_request/url_request.h" 109 #include "net/url_request/url_request.h"
110 #include "net/url_request/url_request_context.h" 110 #include "net/url_request/url_request_context.h"
111 #include "net/url_request/url_request_job_factory.h" 111 #include "net/url_request/url_request_job_factory.h"
112 #include "ppapi/features/features.h"
112 #include "storage/browser/blob/blob_data_handle.h" 113 #include "storage/browser/blob/blob_data_handle.h"
113 #include "storage/browser/blob/blob_storage_context.h" 114 #include "storage/browser/blob/blob_storage_context.h"
114 #include "storage/browser/blob/blob_url_request_job_factory.h" 115 #include "storage/browser/blob/blob_url_request_job_factory.h"
115 #include "storage/browser/blob/shareable_file_reference.h" 116 #include "storage/browser/blob/shareable_file_reference.h"
116 #include "storage/browser/fileapi/file_permission_policy.h" 117 #include "storage/browser/fileapi/file_permission_policy.h"
117 #include "storage/browser/fileapi/file_system_context.h" 118 #include "storage/browser/fileapi/file_system_context.h"
118 #include "url/third_party/mozilla/url_parse.h" 119 #include "url/third_party/mozilla/url_parse.h"
119 #include "url/url_constants.h" 120 #include "url/url_constants.h"
120 121
121 using base::Time; 122 using base::Time;
(...skipping 1602 matching lines...) Expand 10 before | Expand all | Expand 10 after
1724 post_mime_sniffing_throttles.push_back(throttle); 1725 post_mime_sniffing_throttles.push_back(throttle);
1725 } 1726 }
1726 } 1727 }
1727 throttles.weak_clear(); 1728 throttles.weak_clear();
1728 1729
1729 // Add the post mime sniffing throttles. 1730 // Add the post mime sniffing throttles.
1730 handler.reset(new ThrottlingResourceHandler( 1731 handler.reset(new ThrottlingResourceHandler(
1731 std::move(handler), request, std::move(post_mime_sniffing_throttles))); 1732 std::move(handler), request, std::move(post_mime_sniffing_throttles)));
1732 1733
1733 PluginService* plugin_service = nullptr; 1734 PluginService* plugin_service = nullptr;
1734 #if defined(ENABLE_PLUGINS) 1735 #if BUILDFLAG(ENABLE_PLUGINS)
1735 plugin_service = PluginService::GetInstance(); 1736 plugin_service = PluginService::GetInstance();
1736 #endif 1737 #endif
1737 1738
1738 // Insert a buffered event handler to sniff the mime type. 1739 // Insert a buffered event handler to sniff the mime type.
1739 // Note: all ResourceHandler following the MimeSniffingResourceHandler 1740 // Note: all ResourceHandler following the MimeSniffingResourceHandler
1740 // should expect OnWillRead to be called *before* OnResponseStarted as 1741 // should expect OnWillRead to be called *before* OnResponseStarted as
1741 // part of the mime sniffing process. 1742 // part of the mime sniffing process.
1742 handler.reset(new MimeSniffingResourceHandler( 1743 handler.reset(new MimeSniffingResourceHandler(
1743 std::move(handler), this, plugin_service, intercepting_handler, request, 1744 std::move(handler), this, plugin_service, intercepting_handler, request,
1744 fetch_request_context_type)); 1745 fetch_request_context_type));
(...skipping 1054 matching lines...) Expand 10 before | Expand all | Expand 10 after
2799 &throttles); 2800 &throttles);
2800 if (!throttles.empty()) { 2801 if (!throttles.empty()) {
2801 handler.reset(new ThrottlingResourceHandler(std::move(handler), request, 2802 handler.reset(new ThrottlingResourceHandler(std::move(handler), request,
2802 std::move(throttles))); 2803 std::move(throttles)));
2803 } 2804 }
2804 } 2805 }
2805 return handler; 2806 return handler;
2806 } 2807 }
2807 2808
2808 } // namespace content 2809 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/loader/mime_sniffing_resource_handler_unittest.cc ('k') | content/browser/plugin_private_storage_helper.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698