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

Side by Side Diff: ios/chrome/browser/reading_list/offline_url_utils.cc

Issue 2763233003: Move ReadingList model to components/reading_list/core (Closed)
Patch Set: last? Created 3 years, 9 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 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 "ios/chrome/browser/reading_list/offline_url_utils.h" 5 #include "ios/chrome/browser/reading_list/offline_url_utils.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "base/md5.h" 8 #include "base/md5.h"
9 #include "base/strings/string_util.h" 9 #include "base/strings/string_util.h"
10 #include "base/strings/stringprintf.h" 10 #include "base/strings/stringprintf.h"
11 #include "base/strings/utf_string_conversions.h" 11 #include "base/strings/utf_string_conversions.h"
12 #include "components/reading_list/ios/offline_url_utils.h" 12 #include "components/reading_list/core/offline_url_utils.h"
13 #include "ios/chrome/browser/chrome_url_constants.h" 13 #include "ios/chrome/browser/chrome_url_constants.h"
14 #include "net/base/url_util.h" 14 #include "net/base/url_util.h"
15 15
16 namespace { 16 namespace {
17 const char kEntryURLQueryParam[] = "entryURL"; 17 const char kEntryURLQueryParam[] = "entryURL";
18 const char kVirtualURLQueryParam[] = "virtualURL"; 18 const char kVirtualURLQueryParam[] = "virtualURL";
19 } 19 }
20 20
21 namespace reading_list { 21 namespace reading_list {
22 22
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
78 if (resources_root_url) { 78 if (resources_root_url) {
79 *resources_root_url = file_url.Resolve("."); 79 *resources_root_url = file_url.Resolve(".");
80 } 80 }
81 return file_url; 81 return file_url;
82 } 82 }
83 83
84 bool IsOfflineURL(const GURL& url) { 84 bool IsOfflineURL(const GURL& url) {
85 return url.SchemeIs(kChromeUIScheme) && url.host() == kChromeUIOfflineHost; 85 return url.SchemeIs(kChromeUIScheme) && url.host() == kChromeUIOfflineHost;
86 } 86 }
87 } 87 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698