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

Side by Side Diff: content/browser/service_worker/foreign_fetch_request_handler.cc

Issue 2969463003: Move resource_request.h to content/public/common. (Closed)
Patch Set: Merge Created 3 years, 5 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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 "content/browser/service_worker/foreign_fetch_request_handler.h" 5 #include "content/browser/service_worker/foreign_fetch_request_handler.h"
6 6
7 #include <string> 7 #include <string>
8 #include <utility> 8 #include <utility>
9 9
10 #include "base/command_line.h" 10 #include "base/command_line.h"
11 #include "base/macros.h" 11 #include "base/macros.h"
12 #include "base/memory/ptr_util.h" 12 #include "base/memory/ptr_util.h"
13 #include "base/stl_util.h" 13 #include "base/stl_util.h"
14 #include "content/browser/service_worker/service_worker_context_wrapper.h" 14 #include "content/browser/service_worker/service_worker_context_wrapper.h"
15 #include "content/browser/service_worker/service_worker_response_info.h" 15 #include "content/browser/service_worker/service_worker_response_info.h"
16 #include "content/browser/service_worker/service_worker_url_request_job.h" 16 #include "content/browser/service_worker/service_worker_url_request_job.h"
17 #include "content/common/service_worker/service_worker_types.h"
18 #include "content/common/service_worker/service_worker_utils.h" 17 #include "content/common/service_worker/service_worker_utils.h"
19 #include "content/public/browser/content_browser_client.h" 18 #include "content/public/browser/content_browser_client.h"
20 #include "content/public/browser/resource_request_info.h" 19 #include "content/public/browser/resource_request_info.h"
21 #include "content/public/common/content_client.h" 20 #include "content/public/common/content_client.h"
22 #include "content/public/common/content_switches.h" 21 #include "content/public/common/content_switches.h"
23 #include "content/public/common/origin_trial_policy.h" 22 #include "content/public/common/origin_trial_policy.h"
24 #include "content/public/common/resource_request_body.h" 23 #include "content/public/common/resource_request_body.h"
24 #include "content/public/common/service_worker_modes.h"
25 #include "net/url_request/url_request.h" 25 #include "net/url_request/url_request.h"
26 #include "net/url_request/url_request_interceptor.h" 26 #include "net/url_request/url_request_interceptor.h"
27 #include "storage/browser/blob/blob_storage_context.h" 27 #include "storage/browser/blob/blob_storage_context.h"
28 28
29 namespace content { 29 namespace content {
30 30
31 namespace { 31 namespace {
32 32
33 int kUserDataKey; // Only address is used. 33 int kUserDataKey; // Only address is used.
34 34
(...skipping 270 matching lines...) Expand 10 before | Expand all | Expand 10 after
305 // The worker entry in the database was written by old version Chrome (< M56) 305 // The worker entry in the database was written by old version Chrome (< M56)
306 // and the main script was not loaded yet. In this case, we can't check the 306 // and the main script was not loaded yet. In this case, we can't check the
307 // origin trial token. 307 // origin trial token.
308 if (!active_version->origin_trial_tokens()) 308 if (!active_version->origin_trial_tokens())
309 return true; 309 return true;
310 const auto& token_map = *active_version->origin_trial_tokens(); 310 const auto& token_map = *active_version->origin_trial_tokens();
311 return base::ContainsKey(token_map, "ForeignFetch"); 311 return base::ContainsKey(token_map, "ForeignFetch");
312 } 312 }
313 313
314 } // namespace content 314 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698