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

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

Issue 10447055: Move fileapi into its own component (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Cleanup Created 8 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 | « webkit/fileapi/file_system_context.h ('k') | webkit/fileapi/file_system_directory_database.h » ('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 (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>
11 11
12 #include "base/file_path.h" 12 #include "base/file_path.h"
13 #include "base/file_util_proxy.h" 13 #include "base/file_util_proxy.h"
14 #include "base/memory/weak_ptr.h" 14 #include "base/memory/weak_ptr.h"
15 #include "base/message_loop_proxy.h" 15 #include "base/message_loop_proxy.h"
16 #include "base/platform_file.h" 16 #include "base/platform_file.h"
17 #include "net/url_request/url_request_job.h" 17 #include "net/url_request/url_request_job.h"
18 #include "webkit/fileapi/fileapi_export.h"
18 19
19 namespace fileapi { 20 namespace fileapi {
20 class FileSystemContext; 21 class FileSystemContext;
21 class FileSystemOperationInterface; 22 class FileSystemOperationInterface;
22 23
23 // A request job that handles reading filesystem: URLs for directories. 24 // A request job that handles reading filesystem: URLs for directories.
24 class FileSystemDirURLRequestJob : public net::URLRequestJob { 25 class FILEAPI_EXPORT_PRIVATE FileSystemDirURLRequestJob
26 : public net::URLRequestJob {
25 public: 27 public:
26 FileSystemDirURLRequestJob( 28 FileSystemDirURLRequestJob(
27 net::URLRequest* request, 29 net::URLRequest* request,
28 FileSystemContext* file_system_context); 30 FileSystemContext* file_system_context);
29 31
30 // URLRequestJob methods: 32 // URLRequestJob methods:
31 virtual void Start() OVERRIDE; 33 virtual void Start() OVERRIDE;
32 virtual void Kill() OVERRIDE; 34 virtual void Kill() OVERRIDE;
33 virtual bool ReadRawData(net::IOBuffer* buf, 35 virtual bool ReadRawData(net::IOBuffer* buf,
34 int buf_size, 36 int buf_size,
(...skipping 19 matching lines...) Expand all
54 std::string data_; 56 std::string data_;
55 FileSystemContext* file_system_context_; 57 FileSystemContext* file_system_context_;
56 base::WeakPtrFactory<FileSystemDirURLRequestJob> weak_factory_; 58 base::WeakPtrFactory<FileSystemDirURLRequestJob> weak_factory_;
57 59
58 DISALLOW_COPY_AND_ASSIGN(FileSystemDirURLRequestJob); 60 DISALLOW_COPY_AND_ASSIGN(FileSystemDirURLRequestJob);
59 }; 61 };
60 62
61 } // namespace fileapi 63 } // namespace fileapi
62 64
63 #endif // WEBKIT_FILEAPI_FILE_SYSTEM_DIR_URL_REQUEST_JOB_H_ 65 #endif // WEBKIT_FILEAPI_FILE_SYSTEM_DIR_URL_REQUEST_JOB_H_
OLDNEW
« no previous file with comments | « webkit/fileapi/file_system_context.h ('k') | webkit/fileapi/file_system_directory_database.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698