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

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

Issue 3859003: FBTF: Even more ctor/virtual deinlining. (Closed) Base URL: http://git.chromium.org/git/chromium.git
Patch Set: Created 10 years, 2 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) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2009 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
(...skipping 14 matching lines...) Expand all
25 25
26 FileReader(const ExtensionResource& resource, Callback* callback); 26 FileReader(const ExtensionResource& resource, Callback* callback);
27 27
28 // Called to start reading the file on a background thread. Upon completion, 28 // Called to start reading the file on a background thread. Upon completion,
29 // the callback will be notified of the results. 29 // the callback will be notified of the results.
30 void Start(); 30 void Start();
31 31
32 private: 32 private:
33 friend class base::RefCountedThreadSafe<FileReader>; 33 friend class base::RefCountedThreadSafe<FileReader>;
34 34
35 ~FileReader() {} 35 virtual ~FileReader();
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

Powered by Google App Engine
This is Rietveld 408576698