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

Side by Side Diff: chrome/browser/extensions/file_reader.h

Issue 6995007: iwyu: Use callback_old.h where appropriate, part 2. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 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 (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 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 10
11 #include "base/callback.h" 11 #include "base/callback_old.h"
12 #include "base/memory/ref_counted.h" 12 #include "base/memory/ref_counted.h"
13 #include "chrome/common/extensions/extension_resource.h" 13 #include "chrome/common/extensions/extension_resource.h"
14 14
15 class MessageLoop; 15 class MessageLoop;
16 16
17 // This file defines an interface for reading a file asynchronously on a 17 // This file defines an interface for reading a file asynchronously on a
18 // background thread. 18 // background thread.
19 // Consider abstracting out a FilePathProvider (ExtensionResource) and moving 19 // Consider abstracting out a FilePathProvider (ExtensionResource) and moving
20 // back to chrome/browser/net if other subsystems want to use it. 20 // back to chrome/browser/net if other subsystems want to use it.
21 class FileReader : public base::RefCountedThreadSafe<FileReader> { 21 class FileReader : public base::RefCountedThreadSafe<FileReader> {
(...skipping 14 matching lines...) Expand all
36 36
37 void ReadFileOnBackgroundThread(); 37 void ReadFileOnBackgroundThread();
38 void RunCallback(bool success, const std::string& data); 38 void RunCallback(bool success, const std::string& data);
39 39
40 ExtensionResource resource_; 40 ExtensionResource resource_;
41 Callback* callback_; 41 Callback* callback_;
42 MessageLoop* origin_loop_; 42 MessageLoop* origin_loop_;
43 }; 43 };
44 44
45 #endif // CHROME_BROWSER_EXTENSIONS_FILE_READER_H_ 45 #endif // CHROME_BROWSER_EXTENSIONS_FILE_READER_H_
OLDNEW
« no previous file with comments | « chrome/browser/extensions/extension_accessibility_api.h ('k') | chrome/browser/history/top_sites_backend.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698