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

Side by Side Diff: webkit/common/fileapi/file_system_util.cc

Issue 15658004: Split FileAPI code for common|common_child|renderer (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 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 | Annotate | Revision Log
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 "webkit/fileapi/file_system_util.h" 5 #include "webkit/common/fileapi/file_system_util.h"
6
7 #include "build/build_config.h"
8 6
9 #include "base/files/file_path.h" 7 #include "base/files/file_path.h"
10 #include "base/logging.h" 8 #include "base/logging.h"
11 #include "base/string_util.h" 9 #include "base/string_util.h"
12 #include "base/strings/sys_string_conversions.h" 10 #include "base/strings/sys_string_conversions.h"
13 #include "base/utf_string_conversions.h" 11 #include "base/utf_string_conversions.h"
14 #include "googleurl/src/gurl.h" 12 #include "googleurl/src/gurl.h"
15 #include "third_party/WebKit/Source/Platform/chromium/public/WebCString.h"
16 #include "third_party/WebKit/Source/Platform/chromium/public/WebString.h"
17 #include "third_party/WebKit/Source/WebKit/chromium/public/WebSecurityOrigin.h"
18 #include "webkit/base/origin_url_conversions.h" 13 #include "webkit/base/origin_url_conversions.h"
19 #include "webkit/fileapi/file_system_url.h" 14 #include "webkit/common/fileapi/file_system_url.h"
20 15
21 namespace fileapi { 16 namespace fileapi {
22 17
23 const char kPersistentDir[] = "/persistent"; 18 const char kPersistentDir[] = "/persistent";
24 const char kTemporaryDir[] = "/temporary"; 19 const char kTemporaryDir[] = "/temporary";
25 const char kIsolatedDir[] = "/isolated"; 20 const char kIsolatedDir[] = "/isolated";
26 const char kExternalDir[] = "/external"; 21 const char kExternalDir[] = "/external";
27 const char kTestDir[] = "/test"; 22 const char kTestDir[] = "/test";
28 23
29 const base::FilePath::CharType VirtualPath::kRoot[] = FILE_PATH_LITERAL("/"); 24 const base::FilePath::CharType VirtualPath::kRoot[] = FILE_PATH_LITERAL("/");
(...skipping 327 matching lines...) Expand 10 before | Expand all | Expand 10 after
357 root.append("/"); 352 root.append("/");
358 } 353 }
359 return root; 354 return root;
360 } 355 }
361 356
362 bool AreSameFileSystem(const FileSystemURL& url1, const FileSystemURL& url2) { 357 bool AreSameFileSystem(const FileSystemURL& url1, const FileSystemURL& url2) {
363 return url1.origin() == url2.origin() && url1.type() == url2.type(); 358 return url1.origin() == url2.origin() && url1.type() == url2.type();
364 } 359 }
365 360
366 } // namespace fileapi 361 } // namespace fileapi
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698