OLD | NEW |
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 CHROME_BROWSER_EXTENSIONS_FILE_READER_H_ | 5 #ifndef CHROME_BROWSER_EXTENSIONS_FILE_READER_H_ |
6 #define CHROME_BROWSER_EXTENSIONS_FILE_READER_H_ | 6 #define CHROME_BROWSER_EXTENSIONS_FILE_READER_H_ |
7 #pragma once | |
8 | 7 |
9 #include <string> | 8 #include <string> |
10 | 9 |
11 #include "base/callback.h" | 10 #include "base/callback.h" |
12 #include "base/memory/ref_counted.h" | 11 #include "base/memory/ref_counted.h" |
13 #include "chrome/common/extensions/extension_resource.h" | 12 #include "chrome/common/extensions/extension_resource.h" |
14 | 13 |
15 class MessageLoop; | 14 class MessageLoop; |
16 | 15 |
17 // This file defines an interface for reading a file asynchronously on a | 16 // This file defines an interface for reading a file asynchronously on a |
(...skipping 17 matching lines...) Expand all Loading... |
35 virtual ~FileReader(); | 34 virtual ~FileReader(); |
36 | 35 |
37 void ReadFileOnBackgroundThread(); | 36 void ReadFileOnBackgroundThread(); |
38 | 37 |
39 ExtensionResource resource_; | 38 ExtensionResource resource_; |
40 Callback callback_; | 39 Callback callback_; |
41 MessageLoop* origin_loop_; | 40 MessageLoop* origin_loop_; |
42 }; | 41 }; |
43 | 42 |
44 #endif // CHROME_BROWSER_EXTENSIONS_FILE_READER_H_ | 43 #endif // CHROME_BROWSER_EXTENSIONS_FILE_READER_H_ |
OLD | NEW |