Commit adc76107 authored by Miyoung Shin's avatar Miyoung Shin Committed by Commit Bot

Change long to int32_t in third_party/blink/public/platform/platform.h

- long -> int32_t
- no logic change.
- Reference: https://google.github.io/styleguide/cppguide.html#Integer_Types

Bug: 930251
Change-Id: Ibd4692de40e80b8147e18b22b28f7ca928eb3a41
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1538273Reviewed-by: default avatarKentaro Hara <haraken@chromium.org>
Commit-Queue: Miyoung Shin <myid.shin@chromium.org>
Cr-Commit-Position: refs/heads/master@{#645195}
parent 01679b94
...@@ -634,7 +634,7 @@ int BlinkPlatformImpl::DatabaseDeleteFile(const blink::WebString& vfs_file_name, ...@@ -634,7 +634,7 @@ int BlinkPlatformImpl::DatabaseDeleteFile(const blink::WebString& vfs_file_name,
return -1; return -1;
} }
long BlinkPlatformImpl::DatabaseGetFileAttributes( int32_t BlinkPlatformImpl::DatabaseGetFileAttributes(
const blink::WebString& vfs_file_name) { const blink::WebString& vfs_file_name) {
return 0; return 0;
} }
......
...@@ -51,7 +51,7 @@ class CONTENT_EXPORT BlinkPlatformImpl : public blink::Platform { ...@@ -51,7 +51,7 @@ class CONTENT_EXPORT BlinkPlatformImpl : public blink::Platform {
int desired_flags) override; int desired_flags) override;
int DatabaseDeleteFile(const blink::WebString& vfs_file_name, int DatabaseDeleteFile(const blink::WebString& vfs_file_name,
bool sync_dir) override; bool sync_dir) override;
long DatabaseGetFileAttributes( int32_t DatabaseGetFileAttributes(
const blink::WebString& vfs_file_name) override; const blink::WebString& vfs_file_name) override;
int64_t DatabaseGetFileSize(const blink::WebString& vfs_file_name) override; int64_t DatabaseGetFileSize(const blink::WebString& vfs_file_name) override;
int64_t DatabaseGetSpaceAvailableForOrigin( int64_t DatabaseGetSpaceAvailableForOrigin(
......
...@@ -541,7 +541,7 @@ int RendererBlinkPlatformImpl::DatabaseDeleteFile( ...@@ -541,7 +541,7 @@ int RendererBlinkPlatformImpl::DatabaseDeleteFile(
return rv; return rv;
} }
long RendererBlinkPlatformImpl::DatabaseGetFileAttributes( int32_t RendererBlinkPlatformImpl::DatabaseGetFileAttributes(
const WebString& vfs_file_name) { const WebString& vfs_file_name) {
int32_t rv = -1; int32_t rv = -1;
GetWebDatabaseHost().GetFileAttributes(vfs_file_name.Utf16(), &rv); GetWebDatabaseHost().GetFileAttributes(vfs_file_name.Utf16(), &rv);
......
...@@ -112,7 +112,7 @@ class CONTENT_EXPORT RendererBlinkPlatformImpl : public BlinkPlatformImpl { ...@@ -112,7 +112,7 @@ class CONTENT_EXPORT RendererBlinkPlatformImpl : public BlinkPlatformImpl {
int desired_flags) override; int desired_flags) override;
int DatabaseDeleteFile(const blink::WebString& vfs_file_name, int DatabaseDeleteFile(const blink::WebString& vfs_file_name,
bool sync_dir) override; bool sync_dir) override;
long DatabaseGetFileAttributes( int32_t DatabaseGetFileAttributes(
const blink::WebString& vfs_file_name) override; const blink::WebString& vfs_file_name) override;
int64_t DatabaseGetFileSize(const blink::WebString& vfs_file_name) override; int64_t DatabaseGetFileSize(const blink::WebString& vfs_file_name) override;
int64_t DatabaseGetSpaceAvailableForOrigin( int64_t DatabaseGetSpaceAvailableForOrigin(
......
...@@ -234,7 +234,7 @@ class BLINK_PLATFORM_EXPORT Platform { ...@@ -234,7 +234,7 @@ class BLINK_PLATFORM_EXPORT Platform {
} }
// Returns the attributes of the given database file. // Returns the attributes of the given database file.
virtual long DatabaseGetFileAttributes(const WebString& vfs_file_name) { virtual int32_t DatabaseGetFileAttributes(const WebString& vfs_file_name) {
return 0; return 0;
} }
......
...@@ -220,7 +220,7 @@ int SandboxedVfs::Delete(const char* full_path, int sync_dir) { ...@@ -220,7 +220,7 @@ int SandboxedVfs::Delete(const char* full_path, int sync_dir) {
int SandboxedVfs::Access(const char* full_path, int flags, int* result) { int SandboxedVfs::Access(const char* full_path, int flags, int* result) {
DCHECK(full_path); DCHECK(full_path);
DCHECK(result); DCHECK(result);
long attributes = int32_t attributes =
platform_->DatabaseGetFileAttributes(StringFromFullPath(full_path)); platform_->DatabaseGetFileAttributes(StringFromFullPath(full_path));
// TODO(pwnall): Make the mojo interface portable across OSes, instead of // TODO(pwnall): Make the mojo interface portable across OSes, instead of
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment