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

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

Issue 8539047: Add OVERRIDE to webkit/. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix Created 9 years, 1 month 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/database/database_quota_client.h ('k') | webkit/fileapi/file_system_url_request_job.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) 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_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 12 matching lines...) Expand all
23 23
24 // A request job that handles reading filesystem: URLs for directories. 24 // A request job that handles reading filesystem: URLs for directories.
25 class FileSystemDirURLRequestJob : public net::URLRequestJob { 25 class FileSystemDirURLRequestJob : public net::URLRequestJob {
26 public: 26 public:
27 FileSystemDirURLRequestJob( 27 FileSystemDirURLRequestJob(
28 net::URLRequest* request, 28 net::URLRequest* request,
29 FileSystemContext* file_system_context, 29 FileSystemContext* file_system_context,
30 scoped_refptr<base::MessageLoopProxy> file_thread_proxy); 30 scoped_refptr<base::MessageLoopProxy> file_thread_proxy);
31 31
32 // URLRequestJob methods: 32 // URLRequestJob methods:
33 virtual void Start(); 33 virtual void Start() OVERRIDE;
34 virtual void Kill(); 34 virtual void Kill() OVERRIDE;
35 virtual bool ReadRawData(net::IOBuffer* buf, int buf_size, int* bytes_read); 35 virtual bool ReadRawData(net::IOBuffer* buf,
36 virtual bool GetCharset(std::string* charset); 36 int buf_size,
37 int* bytes_read) OVERRIDE;
38 virtual bool GetCharset(std::string* charset) OVERRIDE;
37 39
38 // FilterContext methods (via URLRequestJob): 40 // FilterContext methods (via URLRequestJob):
39 virtual bool GetMimeType(std::string* mime_type) const; 41 virtual bool GetMimeType(std::string* mime_type) const OVERRIDE;
40 // TODO(adamk): Implement GetResponseInfo and GetResponseCode to simulate 42 // TODO(adamk): Implement GetResponseInfo and GetResponseCode to simulate
41 // an HTTP response. 43 // an HTTP response.
42 44
43 private: 45 private:
44 class CallbackDispatcher; 46 class CallbackDispatcher;
45 47
46 virtual ~FileSystemDirURLRequestJob(); 48 virtual ~FileSystemDirURLRequestJob();
47 49
48 void StartAsync(); 50 void StartAsync();
49 void DidReadDirectory(const std::vector<base::FileUtilProxy::Entry>& entries, 51 void DidReadDirectory(const std::vector<base::FileUtilProxy::Entry>& entries,
50 bool has_more); 52 bool has_more);
51 FileSystemOperation* GetNewOperation(); 53 FileSystemOperation* GetNewOperation();
52 54
53 std::string data_; 55 std::string data_;
54 FileSystemContext* file_system_context_; 56 FileSystemContext* file_system_context_;
55 scoped_refptr<base::MessageLoopProxy> file_thread_proxy_; 57 scoped_refptr<base::MessageLoopProxy> file_thread_proxy_;
56 ScopedRunnableMethodFactory<FileSystemDirURLRequestJob> method_factory_; 58 ScopedRunnableMethodFactory<FileSystemDirURLRequestJob> method_factory_;
57 base::ScopedCallbackFactory<FileSystemDirURLRequestJob> callback_factory_; 59 base::ScopedCallbackFactory<FileSystemDirURLRequestJob> callback_factory_;
58 60
59 DISALLOW_COPY_AND_ASSIGN(FileSystemDirURLRequestJob); 61 DISALLOW_COPY_AND_ASSIGN(FileSystemDirURLRequestJob);
60 }; 62 };
61 63
62 } // namespace fileapi 64 } // namespace fileapi
63 65
64 #endif // WEBKIT_FILEAPI_FILE_SYSTEM_DIR_URL_REQUEST_JOB_H_ 66 #endif // WEBKIT_FILEAPI_FILE_SYSTEM_DIR_URL_REQUEST_JOB_H_
OLDNEW
« no previous file with comments | « webkit/database/database_quota_client.h ('k') | webkit/fileapi/file_system_url_request_job.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698