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

Side by Side Diff: chrome/browser/dom_ui/dom_ui_screenshot_source.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_DOM_UI_DOM_UI_SCREENSHOT_SOURCE_H_ 5 #ifndef CHROME_BROWSER_DOM_UI_DOM_UI_SCREENSHOT_SOURCE_H_
6 #define CHROME_BROWSER_DOM_UI_DOM_UI_SCREENSHOT_SOURCE_H_ 6 #define CHROME_BROWSER_DOM_UI_DOM_UI_SCREENSHOT_SOURCE_H_
7 7
8 #include <string> 8 #include <string>
9 #include <utility> 9 #include <utility>
10 #include <vector> 10 #include <vector>
(...skipping 18 matching lines...) Expand all
29 29
30 virtual std::string GetMimeType(const std::string&) const { 30 virtual std::string GetMimeType(const std::string&) const {
31 // We need to explicitly return a mime type, otherwise if the user tries to 31 // We need to explicitly return a mime type, otherwise if the user tries to
32 // drag the image they get no extension. 32 // drag the image they get no extension.
33 return "image/png"; 33 return "image/png";
34 } 34 }
35 35
36 std::vector<unsigned char> GetScreenshot(const std::string& path); 36 std::vector<unsigned char> GetScreenshot(const std::string& path);
37 37
38 private: 38 private:
39 ~DOMUIScreenshotSource() {} 39 virtual ~DOMUIScreenshotSource();
40 40
41 // scoped_refptr<RefCountedBytes> current_screenshot_; 41 // scoped_refptr<RefCountedBytes> current_screenshot_;
42 std::vector<unsigned char> current_screenshot_; 42 std::vector<unsigned char> current_screenshot_;
43 DISALLOW_COPY_AND_ASSIGN(DOMUIScreenshotSource); 43 DISALLOW_COPY_AND_ASSIGN(DOMUIScreenshotSource);
44 }; 44 };
45 45
46 #endif // CHROME_BROWSER_DOM_UI_DOM_UI_SCREENSHOT_SOURCE_H_ 46 #endif // CHROME_BROWSER_DOM_UI_DOM_UI_SCREENSHOT_SOURCE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698