blob: 8dff3486b339fe1953748d1c55260156d880d2d1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
|
// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "webkit/fileapi/file_system_path.h"
#include "webkit/fileapi/file_system_types.h"
namespace fileapi {
FileSystemPath::FileSystemPath()
: type_(kFileSystemTypeUnknown) {}
FileSystemPath::FileSystemPath(
const GURL& origin,
FileSystemType type,
const FilePath& internal_path)
: origin_(origin),
type_(type),
internal_path_(internal_path) {}
FileSystemPath::~FileSystemPath() {}
FileSystemPath FileSystemPath::WithInternalPath(const FilePath& internal_path)
const {
FileSystemPath new_path(*this);
new_path.set_internal_path(internal_path);
return new_path;
}
bool FileSystemPath::operator==(const FileSystemPath& that) const {
return origin_ == that.origin_ &&
type_ == that.type_ &&
internal_path_ == that.internal_path_;
}
} // namespace fileapi
|