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

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

Issue 1100763002: Inject CanAddURLToHistory into TopSitesImpl (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@prefs
Patch Set: Fix error introduced during rebase Created 5 years, 7 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
(Empty)
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
3 // found in the LICENSE file.
4
5 #include "components/history/ios/browser/history_database_helper.h"
6
7 #include "base/files/file_path.h"
8 #include "components/history/core/browser/history_database_params.h"
9
10 namespace history {
11 namespace {
12
13 // Values are copied from content/public/browser/download_interrupt_reasons.h.
14 // Their value is irrelevant for iOS but must be kept in sync until iOS code
15 // downstream stops compiling some part of content.
16
17 // The download successfully completed.
18 const DownloadInterruptReason kDownloadInterruptReasonNone = 0;
19
20 // The download was interrupted by a browser crash.
21 // Resume pending downloads if possible.
22 const DownloadInterruptReason kDownloadInterruptReasonCrash = 50;
23
24 } // namespace
25
26 HistoryDatabaseParams HistoryDatabaseParamsForPath(
27 const base::FilePath& history_dir) {
28 return HistoryDatabaseParams(
29 history_dir,
30 kDownloadInterruptReasonNone,
31 kDownloadInterruptReasonCrash);
32 }
33
34 } // namespace
OLDNEW
« no previous file with comments | « components/history/ios/browser/history_database_helper.h ('k') | components/html_viewer/web_url_loader_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698