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

Side by Side Diff: webkit/support/simple_database_system.h

Issue 12163003: Add FilePath to base namespace. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 10 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
« no previous file with comments | « webkit/support/platform_support_win.cc ('k') | webkit/support/simple_database_system.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 #ifndef WEBKIT_SUPPORT_SIMPLE_DATABASE_SYSTEM_H_ 5 #ifndef WEBKIT_SUPPORT_SIMPLE_DATABASE_SYSTEM_H_
6 #define WEBKIT_SUPPORT_SIMPLE_DATABASE_SYSTEM_H_ 6 #define WEBKIT_SUPPORT_SIMPLE_DATABASE_SYSTEM_H_
7 7
8 #include "base/file_path.h" 8 #include "base/file_path.h"
9 #include "base/files/scoped_temp_dir.h" 9 #include "base/files/scoped_temp_dir.h"
10 #include "base/hash_tables.h" 10 #include "base/hash_tables.h"
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
73 base::PlatformFile* result, base::WaitableEvent* done_event); 73 base::PlatformFile* result, base::WaitableEvent* done_event);
74 void VfsDeleteFile(const string16& vfs_file_name, bool sync_dir, 74 void VfsDeleteFile(const string16& vfs_file_name, bool sync_dir,
75 int* result, base::WaitableEvent* done_event); 75 int* result, base::WaitableEvent* done_event);
76 void VfsGetFileAttributes(const string16& vfs_file_name, 76 void VfsGetFileAttributes(const string16& vfs_file_name,
77 uint32* result, base::WaitableEvent* done_event); 77 uint32* result, base::WaitableEvent* done_event);
78 void VfsGetFileSize(const string16& vfs_file_name, 78 void VfsGetFileSize(const string16& vfs_file_name,
79 int64* result, base::WaitableEvent* done_event); 79 int64* result, base::WaitableEvent* done_event);
80 void VfsGetSpaceAvailable(const string16& origin_identifier, 80 void VfsGetSpaceAvailable(const string16& origin_identifier,
81 int64* result, base::WaitableEvent* done_event); 81 int64* result, base::WaitableEvent* done_event);
82 82
83 FilePath GetFullFilePathForVfsFile(const string16& vfs_file_name); 83 base::FilePath GetFullFilePathForVfsFile(const string16& vfs_file_name);
84 84
85 void ResetTracker(); 85 void ResetTracker();
86 void ThreadCleanup(base::WaitableEvent* done_event); 86 void ThreadCleanup(base::WaitableEvent* done_event);
87 87
88 // Where the tracker database file and per origin database files reside. 88 // Where the tracker database file and per origin database files reside.
89 base::ScopedTempDir temp_dir_; 89 base::ScopedTempDir temp_dir_;
90 90
91 // All access to the db_tracker (except for its construction) and 91 // All access to the db_tracker (except for its construction) and
92 // vfs operations are serialized on a background thread. 92 // vfs operations are serialized on a background thread.
93 base::Thread db_thread_; 93 base::Thread db_thread_;
94 scoped_refptr<base::MessageLoopProxy> db_thread_proxy_; 94 scoped_refptr<base::MessageLoopProxy> db_thread_proxy_;
95 scoped_refptr<webkit_database::DatabaseTracker> db_tracker_; 95 scoped_refptr<webkit_database::DatabaseTracker> db_tracker_;
96 int64 quota_per_origin_; 96 int64 quota_per_origin_;
97 97
98 // Data members to support waiting for all connections to be closed. 98 // Data members to support waiting for all connections to be closed.
99 scoped_refptr<webkit_database::DatabaseConnectionsWrapper> open_connections_; 99 scoped_refptr<webkit_database::DatabaseConnectionsWrapper> open_connections_;
100 100
101 static SimpleDatabaseSystem* instance_; 101 static SimpleDatabaseSystem* instance_;
102 }; 102 };
103 103
104 #endif // WEBKIT_SUPPORT_SIMPLE_DATABASE_SYSTEM_H_ 104 #endif // WEBKIT_SUPPORT_SIMPLE_DATABASE_SYSTEM_H_
OLDNEW
« no previous file with comments | « webkit/support/platform_support_win.cc ('k') | webkit/support/simple_database_system.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698