/external/chromium/base/ |
file_util.cc | 3 // found in the LICENSE file. 80 // We open the file in binary format even if they are text files because 89 // any unusable file yields a result of "false". 118 // any unusable file yields a result of "false". 154 FILE* file = OpenFile(path, "rb"); local 155 if (!file) { 161 while ((len = fread(buf, 1, sizeof(buf), file)) > 0) { 165 CloseFile(file); 179 FILE* CreateAndOpenTemporaryFile(FilePath* path) 206 base::PlatformFile file = local [all...] |
/external/chromium/chrome/browser/printing/ |
printing_layout_uitest.cc | 3 // found in the LICENSE file. 83 // File compare between test and result. 93 // Backup the result emf file. 105 // Backup the rendered emf file to detect the rendering difference. 131 // Verifies that there is one .emf and one .prn file in the dump directory. 132 // Returns the path of the .emf file and deletes the .prn file. 146 FilePath file; local 147 while (!(file = enumerator.Next()).empty()) { 148 std::wstring ext = file.Extension() [all...] |
/external/chromium/chrome/browser/themes/ |
browser_theme_pack_unittest.cc | 3 // found in the LICENSE file. 26 fake_file_thread(BrowserThread::FILE, &message_loop), 395 FilePath file = dir.path().Append(FILE_PATH_LITERAL("data.pak")); local 417 ASSERT_TRUE(pack->WriteToDisk(file)); 425 file, "mblmlcbknbnfebdfjnolmcapmdofhmme");
|
/external/chromium/chrome/browser/ui/webui/ |
slideshow_ui.cc | 3 // found in the LICENSE file. 210 FilePath file = FilePath(filename); local 211 std::string ext = file.Extension();
|
/external/chromium/chrome/common/extensions/ |
extension_file_util.cc | 3 // found in the LICENSE file. 37 // Returns false and sets the error if script file can't be loaded, 104 // If |error| is empty, than the file could not be read. 106 // in this case, but other code tests for a file error with 185 const UserScript::File& js_script = script.js_scripts()[j]; 194 const UserScript::File& css_script = script.css_scripts()[j]; 343 // If there is no entry in the prefs file, just delete the directory and 451 // Only message file for default locale has to exist. 503 FilePath file; local 504 while (!(file = all_files.Next()).empty()) [all...] |
/external/chromium/net/base/ |
file_stream_unittest.cc | 3 // found in the LICENSE file. 47 // Test the use of FileStream with a file handle provided at construction. 51 // 1. Test reading with a file handle. 55 base::PlatformFile file = base::CreatePlatformFile( local 58 // Seek to the beginning of the file and read. 59 FileStream read_stream(file, flags); 68 // 2. Test writing with a file handle. 71 file = base::CreatePlatformFile(temp_file_path(), flags, &created, NULL); 73 FileStream write_stream(file, flags); 815 } else { // We're done writing all data. Close the file [all...] |
/external/chromium/net/disk_cache/ |
stats.cc | 3 // found in the LICENSE file. 73 MappedFile* file = backend->File(address); local 74 if (!file) 80 if (!file->Read(stats, sizeof(*stats), offset)) 96 MappedFile* file = backend->File(address); local 97 if (!file) 102 return file->Write(stats, sizeof(*stats), offset);
|
/external/chromium/sdch/open-vcdiff/src/gtest/ |
gtest-port.cc | 77 void GTestLog(GTestLogSeverity severity, const char* file, 83 fprintf(stderr, "\n%s %s:%d: %s\n", marker, file, line, msg); 95 // The ctor redirects stderr to a temporary file. 120 // Returns the name of the temporary file holding the stderr output. 132 // Returns the size (in bytes) of a file. 133 static size_t GetFileSize(FILE * file) { 134 fseek(file, 0, SEEK_END); 135 return static_cast<size_t>(ftell(file)); 138 // Reads the entire content of a file as a string 176 FILE* const file = fopen(g_captured_stderr->filename().c_str(), "r"); local [all...] |
/external/chromium/testing/gtest/src/ |
gtest-filepath.cc | 68 // noted, a file path can contain either kind of path separators, or a mixture 115 // Example: FilePath("dir/file.exe").RemoveExtension("EXE") returns 116 // FilePath("dir/file"). If a case-insensitive extension is not 143 // Example: FilePath("path/to/file").RemoveDirectoryName() returns 144 // FilePath("file"). If there is no directory part ("just_a_file"), it returns 145 // the FilePath unmodified. If there is no file part ("just_a_dir/") it 154 // Example: FilePath("path/to/file").RemoveFileName() returns "path/to/". 157 // not have a file, like "just/a/dir/", it returns the FilePath unmodified. 180 String file; local 182 file = String::Format("%s.%s", base_name.c_str(), extension) [all...] |
/external/chromium/third_party/libjingle/source/talk/base/ |
flags.h | 89 Flag(const char* file, const char* name, const char* comment, 93 const char* file() const { return file_; } function in class:Flag 209 // If file != NULL, prints information for all flags defined in file; 212 static void Print(const char* file, bool print_current_value);
|
/external/chromium_org/base/files/ |
file_posix.cc | 3 // found in the LICENSE file. 5 #include "base/files/file.h" 28 COMPILE_ASSERT(File::FROM_BEGIN == SEEK_SET && 29 File::FROM_CURRENT == SEEK_CUR && 30 File::FROM_END == SEEK_END, whence_matches_system); 49 // wrap them in order to minimize the number of #ifdef's in this file. 51 static bool IsOpenAppend(PlatformFile file) { 52 return (fcntl(file, F_GETFL) & O_APPEND) != 0; 55 static int CallFtruncate(PlatformFile file, int64 length) { 56 return HANDLE_EINTR(ftruncate(file, length)) 214 PlatformFile file = file_; local [all...] |
file_util_proxy_unittest.cc | 3 // found in the LICENSE file. 48 PassPlatformFile file, 51 file_ = file.ReleaseValue(); 57 PassPlatformFile file, 60 file_ = file.ReleaseValue(); 135 // Creates a file. 139 // Opens the created file. 166 // Creates a file. 167 PlatformFile file = GetTestPlatformFile( local 171 // This fails on Windows if the file is not closed 178 file, local 298 PlatformFile file = GetTestPlatformFile( local 303 file, local 316 file, local [all...] |
/external/chromium_org/chrome/app/ |
client_util.cc | 3 // found in the LICENSE file. 278 string16 file; local 279 dll_ = Load(&version, &file); 293 OnBeforeLaunch(file); 301 return OnBeforeExit(rc, file);
|
/external/chromium_org/chrome/browser/drive/ |
drive_api_util.cc | 3 // found in the LICENSE file. 308 scoped_ptr<google_apis::FileResource> file(new google_apis::FileResource); 310 file->set_file_id(entry.resource_id()); 311 file->set_title(entry.title()); 312 file->set_created_date(entry.published_time()); 316 // Set current time to mark the file is shared_with_me, since ResourceEntry 318 file->set_shared_with_me_date(base::Time::Now()); 321 file->set_shared(std::find(entry.labels().begin(), entry.labels().end(), 324 file->set_download_url(entry.download_url()); 326 file->set_mime_type(kDriveFolderMimeType) 563 base::PlatformFile file = base::CreatePlatformFile( local [all...] |
/external/chromium_org/chrome/browser/extensions/api/file_handlers/ |
app_file_handler_util.cc | 3 // found in the LICENSE file. 75 // Create the file if it doesn't already exist. 80 base::PlatformFile file = base::CreatePlatformFile(path, creation_flags, local 82 // Close the file so we don't keep a lock open. 83 if (file != base::kInvalidPlatformFileValue) 84 base::ClosePlatformFile(file); 94 // on_success or on_failure callback when done. A file is OK for writing if it 168 content::BrowserThread::FILE, 194 DCHECK(content::BrowserThread::CurrentlyOn(content::BrowserThread::FILE)); 272 // Look for file handlers which can handle all the MIME types specified [all...] |
/external/chromium_org/chrome/browser/printing/ |
printing_layout_browsertest.cc | 3 // found in the LICENSE file. 141 // File compare between test and result. 151 // Backup the result emf file. 164 // Backup the rendered emf file to detect the rendering difference. 192 // Verifies that there is one .emf and one .prn file in the dump directory. 193 // Returns the path of the .emf file and deletes the .prn file. 207 base::FilePath file; local 208 while (!(file = enumerator.Next()).empty()) { 209 std::wstring ext = file.Extension() [all...] |
/external/chromium_org/chrome/browser/resources/google_now/ |
utility.js | 3 // found in the LICENSE file. 101 var file; 130 file = topFrameElements[topFrameElements.length - 3]; 141 file: file,
|
/external/chromium_org/chrome/browser/spellchecker/ |
spellcheck_service.cc | 3 // found in the LICENSE file. 167 IPC::PlatformFileForTransit file = IPC::InvalidPlatformFileForTransit(); local 172 file = base::FileDescriptor(hunspell_dictionary_->GetDictionaryFile(), 178 &file, 187 file,
|
/external/chromium_org/chrome/browser/sync_file_system/drive_backend/ |
local_to_remote_syncer.cc | 3 // found in the LICENSE file. 87 // Stray file, we can just return. 133 // !IsDelete() but SYNC_FILE_TYPE_UNKNOWN could happen when a file is 135 // but there're remaining changes for the same file in the tracker. 137 // Local file is deleted and remote file is missing, already deleted or 138 // not yet synced. There is nothing to do for the file. 145 // The original target doesn't have remote file and parent. 168 // The original target has remote active file/folder. 177 // Both local and remote file has pending modification 417 FileMetadata file; local [all...] |
remote_to_local_syncer_unittest.cc | 3 // found in the LICENSE file. 257 const std::string file = CreateRemoteFile(app_root, "file", "data"); local 262 AppendExpectedChange(URL(kOrigin, "file"), 270 DeleteRemoteFile(file); 275 AppendExpectedChange(URL(kOrigin, "file"), 340 // Folder-File conflict happens. File creation should be ignored. 346 // Tracker for the remote file should be lowered. 361 CreateLocalFile(URL(kOrigin, "file")); [all...] |
/external/chromium_org/chrome/browser/ui/webui/ |
downloads_dom_handler.cc | 3 // found in the LICENSE file. 153 // Keep file names as LTR. 366 content::DownloadItem* file = GetDownloadByValue(args); local 367 if (file) 368 file->OpenDownload(); 373 content::DownloadItem* file = GetDownloadByValue(args); local 374 if (!file) 382 if (file->GetState() != content::DownloadItem::COMPLETE) 386 file->GetTargetFilePath(), IconLoader::NORMAL); 392 DragDownloadItem(file, icon, view) 398 content::DownloadItem* file = GetDownloadByValue(args); local 405 content::DownloadItem* file = GetDownloadByValue(args); local 412 content::DownloadItem* file = GetDownloadByValue(args); local 419 content::DownloadItem* file = GetDownloadByValue(args); local 426 content::DownloadItem* file = GetDownloadByValue(args); local 436 content::DownloadItem* file = GetDownloadByValue(args); local 443 content::DownloadItem* file = GetDownloadByValue(args); local [all...] |
/external/chromium_org/chrome/common/extensions/ |
extension_file_util.cc | 3 // found in the LICENSE file. 78 // Get a temp directory on the same file system as the profile. 180 // If |error| is empty, than the file could not be read. 182 // in this case, but other code tests for a file error with 214 // If we can't read the file, assume it's not a private key. 370 // If there is no entry in the prefs file, just delete the directory and 477 base::FilePath file; local 478 while (!(file = all_files.Next()).empty()) { 479 base::FilePath::StringType filename = file.BaseName().value(); 485 "Cannot load extension with file or directory name %s. [all...] |
extension_l10n_util.cc | 3 // found in the LICENSE file. 34 // Loads contents of the messages file for given locale. If file is not found, 40 base::FilePath file = locale_path.AppendASCII(locale) local 42 JSONFileValueSerializer messages_serializer(file); 46 // JSONFileValueSerializer just returns NULL if file cannot be found. It 48 *error = base::StringPrintf("Catalog file is missing for locale %s.", 53 UTF16ToUTF8(file.LossyDisplayName()), 298 // Check if messages file is actually present (but don't check content). 303 *error = base::StringPrintf("Catalog file is missing for locale %s." [all...] |
/external/chromium_org/chrome/installer/mini_installer/ |
decompress.cc | 3 // found in the LICENSE file. 87 HANDLE file = CreateFileW(path, access, FILE_SHARE_READ, NULL, disposition, local 89 return reinterpret_cast<INT_PTR>(file); 117 // Since we will only ever be decompressing a single file at a time 118 // we take a shortcut and provide a pointer to the wide destination file 119 // of the file we want to write. This way we don't have to bother with 120 // utf8/wide conversion and concatenation of directory and file name. 134 // Converts MS-DOS date and time values to a file time
|
/external/chromium_org/chrome/installer/util/ |
installer_state_unittest.cc | 3 // found in the LICENSE file. 55 static bool IsFileInUse(const base::FilePath& file) { 56 return InstallerState::IsFileInUse(file); 66 // Simple function to dump some text into a new file. 69 std::ofstream file; local 70 file.open(filename.c_str()); 71 ASSERT_TRUE(file.is_open()); 72 file << contents; 73 file.close(); 197 // Open the file to make it in use 198 std::ofstream file; local [all...] |