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

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

Issue 9380040: Revert 121620 - Refactor FileSystemOperation to take callback for each method. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 10 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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_DIR_URL_REQUEST_JOB_H_ 5 #ifndef WEBKIT_FILEAPI_FILE_SYSTEM_DIR_URL_REQUEST_JOB_H_
6 #define WEBKIT_FILEAPI_FILE_SYSTEM_DIR_URL_REQUEST_JOB_H_ 6 #define WEBKIT_FILEAPI_FILE_SYSTEM_DIR_URL_REQUEST_JOB_H_
7 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 29 matching lines...) Expand all
40 virtual bool GetMimeType(std::string* mime_type) const OVERRIDE; 40 virtual bool GetMimeType(std::string* mime_type) const OVERRIDE;
41 // TODO(adamk): Implement GetResponseInfo and GetResponseCode to simulate 41 // TODO(adamk): Implement GetResponseInfo and GetResponseCode to simulate
42 // an HTTP response. 42 // an HTTP response.
43 43
44 private: 44 private:
45 class CallbackDispatcher; 45 class CallbackDispatcher;
46 46
47 virtual ~FileSystemDirURLRequestJob(); 47 virtual ~FileSystemDirURLRequestJob();
48 48
49 void StartAsync(); 49 void StartAsync();
50 void DidReadDirectory(base::PlatformFileError result, 50 void DidReadDirectory(const std::vector<base::FileUtilProxy::Entry>& entries,
51 const std::vector<base::FileUtilProxy::Entry>& entries,
52 bool has_more); 51 bool has_more);
53 FileSystemOperationInterface* GetNewOperation(const GURL& url); 52 FileSystemOperationInterface* GetNewOperation(const GURL& url);
54 53
55 std::string data_; 54 std::string data_;
56 FileSystemContext* file_system_context_; 55 FileSystemContext* file_system_context_;
57 scoped_refptr<base::MessageLoopProxy> file_thread_proxy_; 56 scoped_refptr<base::MessageLoopProxy> file_thread_proxy_;
58 base::WeakPtrFactory<FileSystemDirURLRequestJob> weak_factory_; 57 base::WeakPtrFactory<FileSystemDirURLRequestJob> weak_factory_;
59 58
60 DISALLOW_COPY_AND_ASSIGN(FileSystemDirURLRequestJob); 59 DISALLOW_COPY_AND_ASSIGN(FileSystemDirURLRequestJob);
61 }; 60 };
62 61
63 } // namespace fileapi 62 } // namespace fileapi
64 63
65 #endif // WEBKIT_FILEAPI_FILE_SYSTEM_DIR_URL_REQUEST_JOB_H_ 64 #endif // WEBKIT_FILEAPI_FILE_SYSTEM_DIR_URL_REQUEST_JOB_H_
OLDNEW
« no previous file with comments | « webkit/fileapi/file_system_context.cc ('k') | webkit/fileapi/file_system_dir_url_request_job.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698