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

Side by Side Diff: chrome/browser/extensions/api/page_capture/page_capture_api.h

Issue 12086018: GTTF: Add missing virtual destructors. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fixes Created 7 years, 10 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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_API_PAGE_CAPTURE_PAGE_CAPTURE_API_H_ 5 #ifndef CHROME_BROWSER_EXTENSIONS_API_PAGE_CAPTURE_PAGE_CAPTURE_API_H_
6 #define CHROME_BROWSER_EXTENSIONS_API_PAGE_CAPTURE_PAGE_CAPTURE_API_H_ 6 #define CHROME_BROWSER_EXTENSIONS_API_PAGE_CAPTURE_PAGE_CAPTURE_API_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/memory/ref_counted.h" 10 #include "base/memory/ref_counted.h"
(...skipping 12 matching lines...) Expand all
23 class PageCaptureSaveAsMHTMLFunction : public AsyncExtensionFunction { 23 class PageCaptureSaveAsMHTMLFunction : public AsyncExtensionFunction {
24 public: 24 public:
25 PageCaptureSaveAsMHTMLFunction(); 25 PageCaptureSaveAsMHTMLFunction();
26 26
27 // Test specific delegate used to test that the temporary file gets deleted. 27 // Test specific delegate used to test that the temporary file gets deleted.
28 class TestDelegate { 28 class TestDelegate {
29 public: 29 public:
30 // Called on the UI thread when the temporary file that contains the 30 // Called on the UI thread when the temporary file that contains the
31 // generated data has been created. 31 // generated data has been created.
32 virtual void OnTemporaryFileCreated(const FilePath& temp_file) = 0; 32 virtual void OnTemporaryFileCreated(const FilePath& temp_file) = 0;
33
34 protected:
35 virtual ~TestDelegate() { }
33 }; 36 };
34 static void SetTestDelegate(TestDelegate* delegate); 37 static void SetTestDelegate(TestDelegate* delegate);
35 38
36 private: 39 private:
37 virtual ~PageCaptureSaveAsMHTMLFunction(); 40 virtual ~PageCaptureSaveAsMHTMLFunction();
38 virtual bool RunImpl() OVERRIDE; 41 virtual bool RunImpl() OVERRIDE;
39 virtual bool OnMessageReceivedFromRenderView( 42 virtual bool OnMessageReceivedFromRenderView(
40 const IPC::Message& message) OVERRIDE; 43 const IPC::Message& message) OVERRIDE;
41 44
42 // Called on the file thread. 45 // Called on the file thread.
(...skipping 17 matching lines...) Expand all
60 63
61 // The file containing the MHTML. 64 // The file containing the MHTML.
62 scoped_refptr<webkit_blob::ShareableFileReference> mhtml_file_; 65 scoped_refptr<webkit_blob::ShareableFileReference> mhtml_file_;
63 66
64 DECLARE_EXTENSION_FUNCTION("pageCapture.saveAsMHTML", PAGECAPTURE_SAVEASMHTML) 67 DECLARE_EXTENSION_FUNCTION("pageCapture.saveAsMHTML", PAGECAPTURE_SAVEASMHTML)
65 }; 68 };
66 69
67 } // namespace extensions 70 } // namespace extensions
68 71
69 #endif // CHROME_BROWSER_EXTENSIONS_API_PAGE_CAPTURE_PAGE_CAPTURE_API_H_ 72 #endif // CHROME_BROWSER_EXTENSIONS_API_PAGE_CAPTURE_PAGE_CAPTURE_API_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698