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

Side by Side Diff: components/history/ios/browser/history_database_helper.cc

Issue 1106763002: [iOS] Add HistoryDatabaseParamsForPath in //components/history/ios/browser (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 8 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
« no previous file with comments | « components/history/ios/browser/history_database_helper.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 "components/history/content/browser/history_database_helper.h" 5 #include "components/history/ios/browser/history_database_helper.h"
6 6
7 #include "base/files/file_path.h" 7 #include "base/files/file_path.h"
8 #include "components/history/content/browser/download_constants_utils.h"
9 #include "components/history/core/browser/history_database_params.h" 8 #include "components/history/core/browser/history_database_params.h"
10 #include "content/public/browser/download_interrupt_reasons.h"
11 9
12 namespace history { 10 namespace history {
11 namespace {
12
13 // The download successfully completed.
14 const DownloadInterruptReason kDownloadInterruptReasonNone = 0;
15
16 // The download was interrupted by a browser crash. Internal use only.
droger 2015/04/24 14:38:29 1) What does "Internal use only" means? 2) Why ar
17 // Resume pending downloads if possible.
18 const DownloadInterruptReason kDownloadInterruptReasonCrash = 50;
19
20 } // namespace
13 21
14 HistoryDatabaseParams HistoryDatabaseParamsForPath( 22 HistoryDatabaseParams HistoryDatabaseParamsForPath(
15 const base::FilePath& history_dir) { 23 const base::FilePath& history_dir) {
16 return HistoryDatabaseParams( 24 return HistoryDatabaseParams(
17 history_dir, 25 history_dir,
18 history::ToHistoryDownloadInterruptReason( 26 kDownloadInterruptReasonNone,
19 content::DOWNLOAD_INTERRUPT_REASON_NONE), 27 kDownloadInterruptReasonCrash);
20 history::ToHistoryDownloadInterruptReason(
21 content::DOWNLOAD_INTERRUPT_REASON_CRASH));
22 } 28 }
23 29
24 } // namespace 30 } // namespace
OLDNEW
« no previous file with comments | « components/history/ios/browser/history_database_helper.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698