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

Side by Side Diff: content/child/blink_platform_impl.cc

Issue 316373003: Remove base::kInvalidPlatformFileValue from Content (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 6 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 | « content/child/blink_platform_impl.h ('k') | content/renderer/pepper/pepper_broker.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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 "content/child/blink_platform_impl.h" 5 #include "content/child/blink_platform_impl.h"
6 6
7 #include <math.h> 7 #include <math.h>
8 8
9 #include <vector> 9 #include <vector>
10 10
11 #include "base/allocator/allocator_extension.h" 11 #include "base/allocator/allocator_extension.h"
12 #include "base/bind.h" 12 #include "base/bind.h"
13 #include "base/files/file_path.h" 13 #include "base/files/file_path.h"
14 #include "base/memory/scoped_ptr.h" 14 #include "base/memory/scoped_ptr.h"
15 #include "base/memory/singleton.h" 15 #include "base/memory/singleton.h"
16 #include "base/message_loop/message_loop.h" 16 #include "base/message_loop/message_loop.h"
17 #include "base/metrics/histogram.h" 17 #include "base/metrics/histogram.h"
18 #include "base/metrics/sparse_histogram.h" 18 #include "base/metrics/sparse_histogram.h"
19 #include "base/metrics/stats_counters.h" 19 #include "base/metrics/stats_counters.h"
20 #include "base/platform_file.h"
21 #include "base/process/process_metrics.h" 20 #include "base/process/process_metrics.h"
22 #include "base/rand_util.h" 21 #include "base/rand_util.h"
23 #include "base/strings/string_number_conversions.h" 22 #include "base/strings/string_number_conversions.h"
24 #include "base/strings/string_util.h" 23 #include "base/strings/string_util.h"
25 #include "base/strings/utf_string_conversions.h" 24 #include "base/strings/utf_string_conversions.h"
26 #include "base/synchronization/lock.h" 25 #include "base/synchronization/lock.h"
27 #include "base/synchronization/waitable_event.h" 26 #include "base/synchronization/waitable_event.h"
28 #include "base/sys_info.h" 27 #include "base/sys_info.h"
29 #include "base/time/time.h" 28 #include "base/time/time.h"
30 #include "content/child/content_child_helpers.h" 29 #include "content/child/content_child_helpers.h"
(...skipping 882 matching lines...) Expand 10 before | Expand all | Expand 10 after
913 912
914 913
915 WebThemeEngine* BlinkPlatformImpl::themeEngine() { 914 WebThemeEngine* BlinkPlatformImpl::themeEngine() {
916 return &native_theme_engine_; 915 return &native_theme_engine_;
917 } 916 }
918 917
919 WebFallbackThemeEngine* BlinkPlatformImpl::fallbackThemeEngine() { 918 WebFallbackThemeEngine* BlinkPlatformImpl::fallbackThemeEngine() {
920 return &fallback_theme_engine_; 919 return &fallback_theme_engine_;
921 } 920 }
922 921
923 base::PlatformFile BlinkPlatformImpl::databaseOpenFile( 922 blink::Platform::FileHandle BlinkPlatformImpl::databaseOpenFile(
924 const blink::WebString& vfs_file_name, int desired_flags) { 923 const blink::WebString& vfs_file_name, int desired_flags) {
925 return base::kInvalidPlatformFileValue; 924 #if defined(OS_WIN)
925 return INVALID_HANDLE_VALUE;
926 #elif defined(OS_POSIX)
927 return -1;
928 #endif
926 } 929 }
927 930
928 int BlinkPlatformImpl::databaseDeleteFile( 931 int BlinkPlatformImpl::databaseDeleteFile(
929 const blink::WebString& vfs_file_name, bool sync_dir) { 932 const blink::WebString& vfs_file_name, bool sync_dir) {
930 return -1; 933 return -1;
931 } 934 }
932 935
933 long BlinkPlatformImpl::databaseGetFileAttributes( 936 long BlinkPlatformImpl::databaseGetFileAttributes(
934 const blink::WebString& vfs_file_name) { 937 const blink::WebString& vfs_file_name) {
935 return 0; 938 return 0;
(...skipping 157 matching lines...) Expand 10 before | Expand all | Expand 10 after
1093 } 1096 }
1094 1097
1095 // static 1098 // static
1096 void BlinkPlatformImpl::DestroyCurrentThread(void* thread) { 1099 void BlinkPlatformImpl::DestroyCurrentThread(void* thread) {
1097 WebThreadImplForMessageLoop* impl = 1100 WebThreadImplForMessageLoop* impl =
1098 static_cast<WebThreadImplForMessageLoop*>(thread); 1101 static_cast<WebThreadImplForMessageLoop*>(thread);
1099 delete impl; 1102 delete impl;
1100 } 1103 }
1101 1104
1102 } // namespace content 1105 } // namespace content
OLDNEW
« no previous file with comments | « content/child/blink_platform_impl.h ('k') | content/renderer/pepper/pepper_broker.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698