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

Side by Side Diff: webkit/fileapi/file_system_file_util_proxy.cc

Issue 7215027: Coverity: Initialize member variables. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 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
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 "webkit/fileapi/file_system_file_util_proxy.h" 5 #include "webkit/fileapi/file_system_file_util_proxy.h"
6 6
7 #include "base/message_loop_proxy.h" 7 #include "base/message_loop_proxy.h"
8 #include "webkit/fileapi/file_system_context.h" 8 #include "webkit/fileapi/file_system_context.h"
9 #include "webkit/fileapi/file_system_file_util.h" 9 #include "webkit/fileapi/file_system_file_util.h"
10 #include "webkit/fileapi/file_system_operation_context.h" 10 #include "webkit/fileapi/file_system_operation_context.h"
11 11
12 namespace { 12 namespace {
13 13
14 class MessageLoopRelay 14 class MessageLoopRelay
15 : public base::RefCountedThreadSafe<MessageLoopRelay> { 15 : public base::RefCountedThreadSafe<MessageLoopRelay> {
16 public: 16 public:
17 // FileSystemOperationContext is passed by value from the IO thread to the 17 // FileSystemOperationContext is passed by value from the IO thread to the
18 // File thread. 18 // File thread.
19 explicit MessageLoopRelay(const fileapi::FileSystemOperationContext& context) 19 explicit MessageLoopRelay(const fileapi::FileSystemOperationContext& context)
20 : origin_message_loop_proxy_( 20 : origin_message_loop_proxy_(
21 base::MessageLoopProxy::CreateForCurrentThread()), 21 base::MessageLoopProxy::CreateForCurrentThread()),
22 error_code_(base::PLATFORM_FILE_OK), 22 error_code_(base::PLATFORM_FILE_OK),
23 context_(context) { 23 context_(context),
24 file_system_file_util_(NULL) {
24 } 25 }
25 26
26 bool Start(scoped_refptr<base::MessageLoopProxy> message_loop_proxy, 27 bool Start(scoped_refptr<base::MessageLoopProxy> message_loop_proxy,
27 const tracked_objects::Location& from_here) { 28 const tracked_objects::Location& from_here) {
28 return message_loop_proxy->PostTask( 29 return message_loop_proxy->PostTask(
29 from_here, 30 from_here,
30 NewRunnableMethod(this, &MessageLoopRelay::ProcessOnTargetThread)); 31 NewRunnableMethod(this, &MessageLoopRelay::ProcessOnTargetThread));
31 } 32 }
32 33
33 protected: 34 protected:
(...skipping 530 matching lines...) Expand 10 before | Expand all | Expand 10 after
564 const FileSystemOperationContext& context, 565 const FileSystemOperationContext& context,
565 scoped_refptr<MessageLoopProxy> message_loop_proxy, 566 scoped_refptr<MessageLoopProxy> message_loop_proxy,
566 const FilePath& path, 567 const FilePath& path,
567 int64 length, 568 int64 length,
568 StatusCallback* callback) { 569 StatusCallback* callback) {
569 return Start(FROM_HERE, message_loop_proxy, 570 return Start(FROM_HERE, message_loop_proxy,
570 new RelayTruncate(context, path, length, callback)); 571 new RelayTruncate(context, path, length, callback));
571 } 572 }
572 573
573 } // namespace fileapi 574 } // namespace fileapi
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698