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

Unified Diff: webkit/browser/fileapi/file_system_dir_url_request_job.h

Issue 539143002: Migrate webkit/browser/ to storage/browser/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 3 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 side-by-side diff with in-line comments
Download patch
Index: webkit/browser/fileapi/file_system_dir_url_request_job.h
diff --git a/webkit/browser/fileapi/file_system_dir_url_request_job.h b/webkit/browser/fileapi/file_system_dir_url_request_job.h
index 081792d4e79a4fb15220fc62ba0687604844dd60..ad3285d1c8bcf0a266642f08a468c2cfab514ad6 100644
--- a/webkit/browser/fileapi/file_system_dir_url_request_job.h
+++ b/webkit/browser/fileapi/file_system_dir_url_request_job.h
@@ -1,69 +1,5 @@
-// Copyright (c) 2012 The Chromium Authors. All rights reserved.
+// Copyright 2014 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef WEBKIT_BROWSER_FILEAPI_FILE_SYSTEM_DIR_URL_REQUEST_JOB_H_
-#define WEBKIT_BROWSER_FILEAPI_FILE_SYSTEM_DIR_URL_REQUEST_JOB_H_
-
-#include <string>
-#include <vector>
-
-#include "base/files/file.h"
-#include "base/files/file_path.h"
-#include "base/memory/weak_ptr.h"
-#include "base/message_loop/message_loop_proxy.h"
-#include "net/url_request/url_request_job.h"
-#include "webkit/browser/fileapi/file_system_url.h"
-#include "webkit/browser/storage_browser_export.h"
-
-namespace storage {
-
-class FileSystemContext;
-struct DirectoryEntry;
-
-// A request job that handles reading filesystem: URLs for directories.
-class STORAGE_EXPORT_PRIVATE FileSystemDirURLRequestJob
- : public net::URLRequestJob {
- public:
- FileSystemDirURLRequestJob(
- net::URLRequest* request,
- net::NetworkDelegate* network_delegate,
- const std::string& storage_domain,
- FileSystemContext* file_system_context);
-
- // URLRequestJob methods:
- virtual void Start() OVERRIDE;
- virtual void Kill() OVERRIDE;
- virtual bool ReadRawData(net::IOBuffer* buf,
- int buf_size,
- int* bytes_read) OVERRIDE;
- virtual bool GetCharset(std::string* charset) OVERRIDE;
-
- // FilterContext methods (via URLRequestJob):
- virtual bool GetMimeType(std::string* mime_type) const OVERRIDE;
- // TODO(adamk): Implement GetResponseInfo and GetResponseCode to simulate
- // an HTTP response.
-
- private:
- class CallbackDispatcher;
-
- virtual ~FileSystemDirURLRequestJob();
-
- void StartAsync();
- void DidAttemptAutoMount(base::File::Error result);
- void DidReadDirectory(base::File::Error result,
- const std::vector<DirectoryEntry>& entries,
- bool has_more);
-
- std::string data_;
- FileSystemURL url_;
- const std::string storage_domain_;
- FileSystemContext* file_system_context_;
- base::WeakPtrFactory<FileSystemDirURLRequestJob> weak_factory_;
-
- DISALLOW_COPY_AND_ASSIGN(FileSystemDirURLRequestJob);
-};
-
-} // namespace storage
-
-#endif // WEBKIT_BROWSER_FILEAPI_FILE_SYSTEM_DIR_URL_REQUEST_JOB_H_
+#include "storage/browser/fileapi/file_system_dir_url_request_job.h"

Powered by Google App Engine
This is Rietveld 408576698