OLD | NEW |
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 "chrome/browser/offline_pages/offline_page_mhtml_archiver.h" | 5 #include "chrome/browser/android/offline_pages/offline_page_mhtml_archiver.h" |
6 | 6 |
7 #include "base/bind.h" | 7 #include "base/bind.h" |
8 #include "base/files/file_path.h" | 8 #include "base/files/file_path.h" |
9 #include "base/logging.h" | 9 #include "base/logging.h" |
10 #include "base/message_loop/message_loop.h" | 10 #include "base/message_loop/message_loop.h" |
11 #include "base/single_thread_task_runner.h" | 11 #include "base/single_thread_task_runner.h" |
12 #include "base/strings/utf_string_conversions.h" | 12 #include "base/strings/utf_string_conversions.h" |
13 #include "content/public/browser/web_contents.h" | 13 #include "content/public/browser/web_contents.h" |
14 | 14 |
15 namespace offline_pages { | 15 namespace offline_pages { |
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
97 file_path = file_path_; | 97 file_path = file_path_; |
98 } else { | 98 } else { |
99 // Make sure both file path and file size are empty on failure. | 99 // Make sure both file path and file size are empty on failure. |
100 file_size = 0; | 100 file_size = 0; |
101 } | 101 } |
102 task_runner_->PostTask(FROM_HERE, base::Bind( | 102 task_runner_->PostTask(FROM_HERE, base::Bind( |
103 callback_, this, result, url, title, file_path, file_size)); | 103 callback_, this, result, url, title, file_path, file_size)); |
104 } | 104 } |
105 | 105 |
106 } // namespace offline_pages | 106 } // namespace offline_pages |
OLD | NEW |