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

Side by Side Diff: chrome/browser/chromeos/gdata/gdata_file_system_proxy.h

Issue 9947002: Wired preference that hides hosted documents for the directory view. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 8 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 CHROME_BROWSER_CHROMEOS_GDATA_GDATA_FILE_SYSTEM_PROXY_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_GDATA_GDATA_FILE_SYSTEM_PROXY_H_
6 #define CHROME_BROWSER_CHROMEOS_GDATA_GDATA_FILE_SYSTEM_PROXY_H_ 6 #define CHROME_BROWSER_CHROMEOS_GDATA_GDATA_FILE_SYSTEM_PROXY_H_
7 #pragma once 7 #pragma once
8 8
9 #include "webkit/chromeos/fileapi/remote_file_system_proxy.h" 9 #include "webkit/chromeos/fileapi/remote_file_system_proxy.h"
10 10
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
68 callback, 68 callback,
69 base::PlatformFileError error, 69 base::PlatformFileError error,
70 const FilePath& directory_path, 70 const FilePath& directory_path,
71 GDataFileBase* file); 71 GDataFileBase* file);
72 72
73 // Helper callback for relaying reply for ReadDirectory() to the calling 73 // Helper callback for relaying reply for ReadDirectory() to the calling
74 // thread. The callback is invoked while |file| is kept under lock 74 // thread. The callback is invoked while |file| is kept under lock
75 // so it is safe to retrieve data from it, but this pointer is not safe to 75 // so it is safe to retrieve data from it, but this pointer is not safe to
76 // be used outside of this method. 76 // be used outside of this method.
77 void OnReadDirectory( 77 void OnReadDirectory(
78 bool hide_hosted_documents,
78 scoped_refptr<base::MessageLoopProxy> proxy, 79 scoped_refptr<base::MessageLoopProxy> proxy,
79 const fileapi::FileSystemOperationInterface::ReadDirectoryCallback& 80 const fileapi::FileSystemOperationInterface::ReadDirectoryCallback&
80 callback, 81 callback,
81 base::PlatformFileError error, 82 base::PlatformFileError error,
82 const FilePath& directory_path, 83 const FilePath& directory_path,
83 GDataFileBase* file); 84 GDataFileBase* file);
84 85
85 // GDataFileSystemProxy is owned by Profile, which outlives 86 // GDataFileSystemProxy is owned by Profile, which outlives
86 // GDataFileSystemProxy, which is owned by CrosMountPointProvider (i.e. by 87 // GDataFileSystemProxy, which is owned by CrosMountPointProvider (i.e. by
87 // the time Profile is removed, the file manager is already gone). Hence 88 // the time Profile is removed, the file manager is already gone). Hence
88 // it's safe to use this as a raw pointer. 89 // it's safe to use this as a raw pointer.
89 GDataFileSystemInterface* file_system_; 90 GDataFileSystemInterface* file_system_;
90 }; 91 };
91 92
92 } // namespace chromeos 93 } // namespace chromeos
93 94
94 #endif // CHROME_BROWSER_CHROMEOS_GDATA_GDATA_FILE_SYSTEM_PROXY_H_ 95 #endif // CHROME_BROWSER_CHROMEOS_GDATA_GDATA_FILE_SYSTEM_PROXY_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698