Lines Matching refs:base
5 #include "base/file_util.h"
15 #include "base/file_path.h"
16 #include "base/logging.h"
17 #include "base/metrics/histogram.h"
18 #include "base/win/pe_image.h"
19 #include "base/win/scoped_handle.h"
20 #include "base/string_number_conversions.h"
21 #include "base/string_util.h"
22 #include "base/threading/thread_restrictions.h"
23 #include "base/time.h"
24 #include "base/utf_string_conversions.h"
25 #include "base/win/scoped_comptr.h"
26 #include "base/win/win_util.h"
27 #include "base/win/windows_version.h"
39 base::ThreadRestrictions::AssertIOAllowed();
81 base::ThreadRestrictions::AssertIOAllowed();
90 const base::Time& comparison_time) {
91 base::ThreadRestrictions::AssertIOAllowed();
120 base::ThreadRestrictions::AssertIOAllowed();
128 base::PlatformFileInfo file_info;
168 base::ThreadRestrictions::AssertIOAllowed();
179 base::ThreadRestrictions::AssertIOAllowed();
213 base::ThreadRestrictions::AssertIOAllowed();
234 base::ThreadRestrictions::AssertIOAllowed();
248 base::ThreadRestrictions::AssertIOAllowed();
281 base::ThreadRestrictions::AssertIOAllowed();
294 if (base::win::GetVersion() >= base::win::VERSION_VISTA)
306 base::ThreadRestrictions::AssertIOAllowed();
321 base::ThreadRestrictions::AssertIOAllowed();
326 base::ThreadRestrictions::AssertIOAllowed();
339 base::ThreadRestrictions::AssertIOAllowed();
348 base::ThreadRestrictions::AssertIOAllowed();
365 base::ThreadRestrictions::AssertIOAllowed();
366 base::win::ScopedHandle file_handle(
373 base::ThreadRestrictions::AssertIOAllowed();
376 base::win::ScopedComPtr<IShellLink> i_shell_link;
383 base::win::ScopedComPtr<IPersistFile> persist;
410 base::ThreadRestrictions::AssertIOAllowed();
416 base::win::ScopedComPtr<IShellLink> i_shell_link;
417 base::win::ScopedComPtr<IPersistFile> i_persist_file;
445 if (app_id && (base::win::GetVersion() >= base::win::VERSION_WIN7)) {
446 base::win::ScopedComPtr<IPropertyStore> property_store;
450 if (!base::win::SetAppIdForPropertyStore(property_store, app_id))
462 base::ThreadRestrictions::AssertIOAllowed();
469 base::win::ScopedComPtr<IShellLink> i_shell_link;
474 base::win::ScopedComPtr<IPersistFile> i_persist_file;
496 if (app_id && base::win::GetVersion() >= base::win::VERSION_WIN7) {
497 base::win::ScopedComPtr<IPropertyStore> property_store;
501 if (!base::win::SetAppIdForPropertyStore(property_store, app_id))
520 base::ThreadRestrictions::AssertIOAllowed();
523 if (base::win::GetVersion() < base::win::VERSION_WIN7)
532 base::ThreadRestrictions::AssertIOAllowed();
535 if (base::win::GetVersion() < base::win::VERSION_WIN7)
544 base::ThreadRestrictions::AssertIOAllowed();
562 base::ThreadRestrictions::AssertIOAllowed();
578 base::ThreadRestrictions::AssertIOAllowed();
587 base::ThreadRestrictions::AssertIOAllowed();
599 base::ThreadRestrictions::AssertIOAllowed();
623 base::ThreadRestrictions::AssertIOAllowed();
633 new_dir_name.append(base::IntToString16(rand() % kint16max));
647 base::ThreadRestrictions::AssertIOAllowed();
657 base::ThreadRestrictions::AssertIOAllowed();
705 bool GetFileInfo(const FilePath& file_path, base::PlatformFileInfo* results) {
706 base::ThreadRestrictions::AssertIOAllowed();
721 results->last_modified = base::Time::FromFileTime(attr.ftLastWriteTime);
722 results->last_accessed = base::Time::FromFileTime(attr.ftLastAccessTime);
723 results->creation_time = base::Time::FromFileTime(attr.ftCreationTime);
729 base::ThreadRestrictions::AssertIOAllowed();
735 base::ThreadRestrictions::AssertIOAllowed();
740 base::ThreadRestrictions::AssertIOAllowed();
741 base::win::ScopedHandle file(CreateFile(filename.value().c_str(),
759 base::ThreadRestrictions::AssertIOAllowed();
760 base::win::ScopedHandle file(CreateFile(filename.value().c_str(),
792 base::ThreadRestrictions::AssertIOAllowed();
816 base::ThreadRestrictions::AssertIOAllowed();
833 base::ThreadRestrictions::AssertIOAllowed();
891 base::ThreadRestrictions::AssertIOAllowed();
967 file_ = base::CreatePlatformFile(
968 file_name, basebase::PLATFORM_FILE_READ,
971 if (file_ == base::kInvalidPlatformFileValue) {
989 base::ThreadRestrictions::AssertIOAllowed();
1031 const base::Time& cutoff_time) {
1032 base::ThreadRestrictions::AssertIOAllowed();
1039 base::ThreadRestrictions::AssertIOAllowed();
1051 base::ThreadRestrictions::AssertIOAllowed();
1057 base::win::ScopedHandle file_handle(
1071 base::win::ScopedHandle file_map_handle(
1107 base::ThreadRestrictions::AssertIOAllowed();
1108 if (base::win::GetVersion() > base::win::VERSION_XP) {
1112 base::win::ScopedHandle file(
1155 base::win::PEImage pe_image(dll_module);