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

Side by Side Diff: webkit/fileapi/file_system_path_manager.cc

Issue 3859003: FBTF: Even more ctor/virtual deinlining. (Closed) Base URL: http://git.chromium.org/git/chromium.git
Patch Set: Created 10 years, 2 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) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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_path_manager.h" 5 #include "webkit/fileapi/file_system_path_manager.h"
6 6
7 #include "base/file_util.h" 7 #include "base/file_util.h"
8 #include "base/rand_util.h" 8 #include "base/rand_util.h"
9 #include "base/logging.h" 9 #include "base/logging.h"
10 #include "base/message_loop.h" 10 #include "base/message_loop.h"
11 #include "base/message_loop_proxy.h"
11 #include "base/scoped_callback_factory.h" 12 #include "base/scoped_callback_factory.h"
12 #include "base/stringprintf.h" 13 #include "base/stringprintf.h"
13 #include "base/string_util.h" 14 #include "base/string_util.h"
14 #include "base/utf_string_conversions.h" 15 #include "base/utf_string_conversions.h"
15 #include "googleurl/src/gurl.h" 16 #include "googleurl/src/gurl.h"
16 #include "third_party/WebKit/WebKit/chromium/public/WebCString.h" 17 #include "third_party/WebKit/WebKit/chromium/public/WebCString.h"
17 #include "third_party/WebKit/WebKit/chromium/public/WebFileSystem.h" 18 #include "third_party/WebKit/WebKit/chromium/public/WebFileSystem.h"
18 #include "third_party/WebKit/WebKit/chromium/public/WebSecurityOrigin.h" 19 #include "third_party/WebKit/WebKit/chromium/public/WebSecurityOrigin.h"
19 #include "webkit/glue/webkit_glue.h" 20 #include "webkit/glue/webkit_glue.h"
20 21
(...skipping 149 matching lines...) Expand 10 before | Expand all | Expand 10 after
170 scoped_refptr<base::MessageLoopProxy> file_message_loop, 171 scoped_refptr<base::MessageLoopProxy> file_message_loop,
171 const FilePath& profile_path, 172 const FilePath& profile_path,
172 bool is_incognito, 173 bool is_incognito,
173 bool allow_file_access_from_files) 174 bool allow_file_access_from_files)
174 : file_message_loop_(file_message_loop), 175 : file_message_loop_(file_message_loop),
175 base_path_(profile_path.Append(kFileSystemDirectory)), 176 base_path_(profile_path.Append(kFileSystemDirectory)),
176 is_incognito_(is_incognito), 177 is_incognito_(is_incognito),
177 allow_file_access_from_files_(allow_file_access_from_files) { 178 allow_file_access_from_files_(allow_file_access_from_files) {
178 } 179 }
179 180
181 FileSystemPathManager::~FileSystemPathManager() {}
182
180 void FileSystemPathManager::GetFileSystemRootPath( 183 void FileSystemPathManager::GetFileSystemRootPath(
181 const GURL& origin_url, fileapi::FileSystemType type, 184 const GURL& origin_url, fileapi::FileSystemType type,
182 bool create, GetRootPathCallback* callback_ptr) { 185 bool create, GetRootPathCallback* callback_ptr) {
183 scoped_ptr<GetRootPathCallback> callback(callback_ptr); 186 scoped_ptr<GetRootPathCallback> callback(callback_ptr);
184 if (is_incognito_) { 187 if (is_incognito_) {
185 // TODO(kinuko): return an isolated temporary directory. 188 // TODO(kinuko): return an isolated temporary directory.
186 callback->Run(false, FilePath(), std::string()); 189 callback->Run(false, FilePath(), std::string());
187 return; 190 return;
188 } 191 }
189 192
(...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after
325 WebKit::WebSecurityOrigin::createFromString(UTF8ToUTF16(url.spec())); 328 WebKit::WebSecurityOrigin::createFromString(UTF8ToUTF16(url.spec()));
326 return web_security_origin.databaseIdentifier().utf8(); 329 return web_security_origin.databaseIdentifier().utf8();
327 } 330 }
328 331
329 } // namespace fileapi 332 } // namespace fileapi
330 333
331 COMPILE_ASSERT(int(WebFileSystem::TypeTemporary) == \ 334 COMPILE_ASSERT(int(WebFileSystem::TypeTemporary) == \
332 int(fileapi::kFileSystemTypeTemporary), mismatching_enums); 335 int(fileapi::kFileSystemTypeTemporary), mismatching_enums);
333 COMPILE_ASSERT(int(WebFileSystem::TypePersistent) == \ 336 COMPILE_ASSERT(int(WebFileSystem::TypePersistent) == \
334 int(fileapi::kFileSystemTypePersistent), mismatching_enums); 337 int(fileapi::kFileSystemTypePersistent), mismatching_enums);
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698