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

Side by Side Diff: webkit/fileapi/file_system_url_request_job.h

Issue 8231004: Remaining cleanup (base::Bind): Replacing FileUtilProxy calls with new callback (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: got it building Created 9 years, 2 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 #ifndef WEBKIT_FILEAPI_FILE_SYSTEM_URL_REQUEST_JOB_H_ 5 #ifndef WEBKIT_FILEAPI_FILE_SYSTEM_URL_REQUEST_JOB_H_
6 #define WEBKIT_FILEAPI_FILE_SYSTEM_URL_REQUEST_JOB_H_ 6 #define WEBKIT_FILEAPI_FILE_SYSTEM_URL_REQUEST_JOB_H_
7 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 10
11 #include "base/memory/scoped_callback_factory.h"
12 #include "base/memory/scoped_ptr.h" 11 #include "base/memory/scoped_ptr.h"
12 #include "base/memory/weak_ptr.h"
13 #include "base/message_loop_proxy.h" 13 #include "base/message_loop_proxy.h"
14 #include "base/platform_file.h" 14 #include "base/platform_file.h"
15 #include "base/task.h" 15 #include "base/task.h"
16 #include "net/base/completion_callback.h" 16 #include "net/base/completion_callback.h"
17 #include "net/http/http_byte_range.h" 17 #include "net/http/http_byte_range.h"
18 #include "net/url_request/url_request_job.h" 18 #include "net/url_request/url_request_job.h"
19 19
20 class GURL; 20 class GURL;
21 class FilePath; 21 class FilePath;
22 22
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
55 void StartAsync(); 55 void StartAsync();
56 void DidGetMetadata(const base::PlatformFileInfo& file_info, 56 void DidGetMetadata(const base::PlatformFileInfo& file_info,
57 const FilePath& platform_path); 57 const FilePath& platform_path);
58 void DidOpen(base::PlatformFileError error_code, 58 void DidOpen(base::PlatformFileError error_code,
59 base::PassPlatformFile file, bool created); 59 base::PassPlatformFile file, bool created);
60 void DidRead(int result); 60 void DidRead(int result);
61 void NotifyFailed(int rv); 61 void NotifyFailed(int rv);
62 62
63 FileSystemContext* file_system_context_; 63 FileSystemContext* file_system_context_;
64 scoped_refptr<base::MessageLoopProxy> file_thread_proxy_; 64 scoped_refptr<base::MessageLoopProxy> file_thread_proxy_;
65 ScopedRunnableMethodFactory<FileSystemURLRequestJob> method_factory_; 65 base::WeakPtrFactory<FileSystemURLRequestJob> weak_factory_;
66 base::ScopedCallbackFactory<FileSystemURLRequestJob> callback_factory_;
67 net::OldCompletionCallbackImpl<FileSystemURLRequestJob> io_callback_; 66 net::OldCompletionCallbackImpl<FileSystemURLRequestJob> io_callback_;
68 scoped_ptr<net::FileStream> stream_; 67 scoped_ptr<net::FileStream> stream_;
69 bool is_directory_; 68 bool is_directory_;
70 scoped_ptr<net::HttpResponseInfo> response_info_; 69 scoped_ptr<net::HttpResponseInfo> response_info_;
71 int64 remaining_bytes_; 70 int64 remaining_bytes_;
72 net::HttpByteRange byte_range_; 71 net::HttpByteRange byte_range_;
73 72
74 DISALLOW_COPY_AND_ASSIGN(FileSystemURLRequestJob); 73 DISALLOW_COPY_AND_ASSIGN(FileSystemURLRequestJob);
75 }; 74 };
76 75
77 } // namespace fileapi 76 } // namespace fileapi
78 77
79 #endif // WEBKIT_FILEAPI_FILE_SYSTEM_URL_REQUEST_JOB_H_ 78 #endif // WEBKIT_FILEAPI_FILE_SYSTEM_URL_REQUEST_JOB_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698