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

Side by Side Diff: chrome/browser/chromeos/drive/webkit_file_stream_reader_impl.h

Issue 15843006: Random clean up in c/b/cros/drive. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 7 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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 CHROME_BROWSER_CHROMEOS_DRIVE_WEBKIT_FILE_STREAM_READER_IMPL_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_DRIVE_WEBKIT_FILE_STREAM_READER_IMPL_H_
6 #define CHROME_BROWSER_CHROMEOS_DRIVE_WEBKIT_FILE_STREAM_READER_IMPL_H_ 6 #define CHROME_BROWSER_CHROMEOS_DRIVE_WEBKIT_FILE_STREAM_READER_IMPL_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/files/file_path.h" 9 #include "base/files/file_path.h"
10 #include "base/memory/ref_counted.h" 10 #include "base/memory/ref_counted.h"
11 #include "base/memory/scoped_ptr.h" 11 #include "base/memory/scoped_ptr.h"
12 #include "base/memory/weak_ptr.h" 12 #include "base/memory/weak_ptr.h"
13 #include "base/time.h" 13 #include "base/time.h"
14 #include "chrome/browser/chromeos/drive/drive_file_stream_reader.h" 14 #include "chrome/browser/chromeos/drive/drive_file_stream_reader.h"
15 #include "net/base/completion_callback.h" 15 #include "net/base/completion_callback.h"
16 #include "webkit/blob/file_stream_reader.h" 16 #include "webkit/blob/file_stream_reader.h"
17 17
18 namespace base { 18 namespace base {
19 class SequencedTaskRunner; 19 class SequencedTaskRunner;
20 } // namespace base 20 } // namespace base
21 21
22 namespace drive { 22 namespace drive {
23 23
24 class ResourceEntry; 24 class ResourceEntry;
25 25
26 namespace internal { 26 namespace internal {
27 27
28
29 // The implementation of webkit_blob::FileStreamReader for drive file system. 28 // The implementation of webkit_blob::FileStreamReader for drive file system.
30 // webkit_blob::FileStreamReader does not provide a way for explicit 29 // webkit_blob::FileStreamReader does not provide a way for explicit
31 // initialization, hence the initialization of this class will be done lazily. 30 // initialization, hence the initialization of this class will be done lazily.
32 // Note that when crbug.com/225339 is resolved, this class will be also 31 // Note that when crbug.com/225339 is resolved, this class will be also
33 // initialized explicitly. 32 // initialized explicitly.
34 class WebkitFileStreamReaderImpl : public webkit_blob::FileStreamReader { 33 class WebkitFileStreamReaderImpl : public webkit_blob::FileStreamReader {
35 public: 34 public:
36 WebkitFileStreamReaderImpl( 35 WebkitFileStreamReaderImpl(
37 const DriveFileStreamReader::FileSystemGetter& file_system_getter, 36 const DriveFileStreamReader::FileSystemGetter& file_system_getter,
38 base::SequencedTaskRunner* file_task_runner, 37 base::SequencedTaskRunner* file_task_runner,
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
81 // This should remain the last member so it'll be destroyed first and 80 // This should remain the last member so it'll be destroyed first and
82 // invalidate its weak pointers before other members are destroyed. 81 // invalidate its weak pointers before other members are destroyed.
83 base::WeakPtrFactory<WebkitFileStreamReaderImpl> weak_ptr_factory_; 82 base::WeakPtrFactory<WebkitFileStreamReaderImpl> weak_ptr_factory_;
84 DISALLOW_COPY_AND_ASSIGN(WebkitFileStreamReaderImpl); 83 DISALLOW_COPY_AND_ASSIGN(WebkitFileStreamReaderImpl);
85 }; 84 };
86 85
87 } // namespace internal 86 } // namespace internal
88 } // namespace drive 87 } // namespace drive
89 88
90 #endif // CHROME_BROWSER_CHROMEOS_DRIVE_WEBKIT_FILE_STREAM_READER_IMPL_H_ 89 #endif // CHROME_BROWSER_CHROMEOS_DRIVE_WEBKIT_FILE_STREAM_READER_IMPL_H_
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/drive/resource_metadata.h ('k') | chrome/browser/google_apis/test_util.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698