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

Side by Side Diff: storage/browser/fileapi/file_system_url.cc

Issue 1139323003: Discard duplicate includes of files from storage (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 "storage/browser/fileapi/file_system_url.h" 5 #include "storage/browser/fileapi/file_system_url.h"
6 6
7 #include <sstream> 7 #include <sstream>
8 8
9 #include "base/logging.h" 9 #include "base/logging.h"
10 #include "base/strings/string_util.h" 10 #include "base/strings/string_util.h"
11 #include "net/base/escape.h" 11 #include "net/base/escape.h"
12 #include "storage/common/fileapi/file_system_types.h"
13 #include "storage/common/fileapi/file_system_util.h" 12 #include "storage/common/fileapi/file_system_util.h"
14 13
15 namespace storage { 14 namespace storage {
16 15
17 namespace { 16 namespace {
18 17
19 } // namespace 18 } // namespace
20 19
21 FileSystemURL::FileSystemURL() 20 FileSystemURL::FileSystemURL()
22 : is_valid_(false), 21 : is_valid_(false),
(...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after
163 if (lhs.origin_ != rhs.origin_) 162 if (lhs.origin_ != rhs.origin_)
164 return lhs.origin_ < rhs.origin_; 163 return lhs.origin_ < rhs.origin_;
165 if (lhs.type_ != rhs.type_) 164 if (lhs.type_ != rhs.type_)
166 return lhs.type_ < rhs.type_; 165 return lhs.type_ < rhs.type_;
167 if (lhs.filesystem_id_ != rhs.filesystem_id_) 166 if (lhs.filesystem_id_ != rhs.filesystem_id_)
168 return lhs.filesystem_id_ < rhs.filesystem_id_; 167 return lhs.filesystem_id_ < rhs.filesystem_id_;
169 return lhs.path_ < rhs.path_; 168 return lhs.path_ < rhs.path_;
170 } 169 }
171 170
172 } // namespace storage 171 } // namespace storage
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698