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

Side by Side Diff: chrome/browser/ui/webui/sync_file_system_internals/file_metadata_handler.h

Issue 268413002: [SyncFS] Make DumpFiles async (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: work for a nit Created 6 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
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_UI_WEBUI_SYNC_FILE_SYSTEM_INTERNALS_FILE_METADATA_HANDLER _H_ 5 #ifndef CHROME_BROWSER_UI_WEBUI_SYNC_FILE_SYSTEM_INTERNALS_FILE_METADATA_HANDLER _H_
6 #define CHROME_BROWSER_UI_WEBUI_SYNC_FILE_SYSTEM_INTERNALS_FILE_METADATA_HANDLER _H_ 6 #define CHROME_BROWSER_UI_WEBUI_SYNC_FILE_SYSTEM_INTERNALS_FILE_METADATA_HANDLER _H_
7 7
8 #include "base/compiler_specific.h" 8 #include "base/compiler_specific.h"
9 #include "base/memory/scoped_ptr.h" 9 #include "base/memory/scoped_ptr.h"
10 #include "base/memory/weak_ptr.h" 10 #include "base/memory/weak_ptr.h"
(...skipping 14 matching lines...) Expand all
25 explicit FileMetadataHandler(Profile* profile); 25 explicit FileMetadataHandler(Profile* profile);
26 virtual ~FileMetadataHandler(); 26 virtual ~FileMetadataHandler();
27 27
28 // WebUIMessageHandler implementation. 28 // WebUIMessageHandler implementation.
29 virtual void RegisterMessages() OVERRIDE; 29 virtual void RegisterMessages() OVERRIDE;
30 30
31 private: 31 private:
32 void GetExtensions(const base::ListValue* args); 32 void GetExtensions(const base::ListValue* args);
33 33
34 void GetFileMetadata(const base::ListValue* args); 34 void GetFileMetadata(const base::ListValue* args);
35 void DidGetFileMetadata(const base::ListValue* files); 35 void DidGetFileMetadata(const base::ListValue& files);
36 36
37 Profile* profile_; 37 Profile* profile_;
38 base::WeakPtrFactory<FileMetadataHandler> weak_factory_; 38 base::WeakPtrFactory<FileMetadataHandler> weak_factory_;
39 39
40 DISALLOW_COPY_AND_ASSIGN(FileMetadataHandler); 40 DISALLOW_COPY_AND_ASSIGN(FileMetadataHandler);
41 }; 41 };
42 } // namespace syncfs_internals 42 } // namespace syncfs_internals
43 43
44 #endif // CHROME_BROWSER_UI_WEBUI_SYNC_FILE_SYSTEM_INTERNALS_FILE_METADATA_HAND LER_H_ 44 #endif // CHROME_BROWSER_UI_WEBUI_SYNC_FILE_SYSTEM_INTERNALS_FILE_METADATA_HAND LER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698