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

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

Issue 1236403003: [Offline pages] Moving browser code to android path (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Narrowing the move to archiver only due to another patch moving the rest ot components Created 5 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 "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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698