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

Side by Side Diff: chrome/browser/android/offline_pages/offline_page_request_job.cc

Issue 2489443002: Move all components/offline_pages/ files into component/offline_pages/core (Closed)
Patch Set: update 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 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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/android/offline_pages/offline_page_request_job.h" 5 #include "chrome/browser/android/offline_pages/offline_page_request_job.h"
6 6
7 #include <string> 7 #include <string>
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/files/file_path.h" 10 #include "base/files/file_path.h"
11 #include "base/logging.h" 11 #include "base/logging.h"
12 #include "base/metrics/histogram_macros.h" 12 #include "base/metrics/histogram_macros.h"
13 #include "base/strings/string_number_conversions.h" 13 #include "base/strings/string_number_conversions.h"
14 #include "base/threading/thread_task_runner_handle.h" 14 #include "base/threading/thread_task_runner_handle.h"
15 #include "chrome/browser/android/offline_pages/offline_page_model_factory.h" 15 #include "chrome/browser/android/offline_pages/offline_page_model_factory.h"
16 #include "chrome/browser/android/offline_pages/offline_page_tab_helper.h" 16 #include "chrome/browser/android/offline_pages/offline_page_tab_helper.h"
17 #include "chrome/browser/android/offline_pages/offline_page_utils.h" 17 #include "chrome/browser/android/offline_pages/offline_page_utils.h"
18 #include "chrome/browser/browser_process.h" 18 #include "chrome/browser/browser_process.h"
19 #include "chrome/browser/profiles/profile_manager.h" 19 #include "chrome/browser/profiles/profile_manager.h"
20 #include "components/offline_pages/offline_page_model.h" 20 #include "components/offline_pages/core/offline_page_model.h"
21 #include "components/offline_pages/request_header/offline_page_header.h" 21 #include "components/offline_pages/core/request_header/offline_page_header.h"
22 #include "components/previews/core/previews_decider.h" 22 #include "components/previews/core/previews_decider.h"
23 #include "components/previews/core/previews_experiments.h" 23 #include "components/previews/core/previews_experiments.h"
24 #include "content/public/browser/browser_thread.h" 24 #include "content/public/browser/browser_thread.h"
25 #include "content/public/browser/resource_request_info.h" 25 #include "content/public/browser/resource_request_info.h"
26 #include "content/public/browser/web_contents.h" 26 #include "content/public/browser/web_contents.h"
27 #include "content/public/common/resource_type.h" 27 #include "content/public/common/resource_type.h"
28 #include "net/base/network_change_notifier.h" 28 #include "net/base/network_change_notifier.h"
29 #include "net/http/http_request_headers.h" 29 #include "net/http/http_request_headers.h"
30 #include "net/url_request/url_request.h" 30 #include "net/url_request/url_request.h"
31 31
(...skipping 523 matching lines...) Expand 10 before | Expand all | Expand 10 after
555 file_path_ = offline_file_path; 555 file_path_ = offline_file_path;
556 URLRequestFileJob::Start(); 556 URLRequestFileJob::Start();
557 } 557 }
558 558
559 void OfflinePageRequestJob::SetDelegateForTesting( 559 void OfflinePageRequestJob::SetDelegateForTesting(
560 std::unique_ptr<Delegate> delegate) { 560 std::unique_ptr<Delegate> delegate) {
561 delegate_ = std::move(delegate); 561 delegate_ = std::move(delegate);
562 } 562 }
563 563
564 } // namespace offline_pages 564 } // namespace offline_pages
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698