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

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

Issue 1871713002: Convert //chrome/browser/extensions from scoped_ptr to std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase and fix header Created 4 years, 8 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
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 <stdint.h> 8 #include <stdint.h>
9 9
10 #include <string> 10 #include <string>
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
49 void TemporaryFileCreated(bool success); 49 void TemporaryFileCreated(bool success);
50 void ReturnFailure(const std::string& error); 50 void ReturnFailure(const std::string& error);
51 void ReturnSuccess(int64_t file_size); 51 void ReturnSuccess(int64_t file_size);
52 52
53 // Callback called once the MHTML generation is done. 53 // Callback called once the MHTML generation is done.
54 void MHTMLGenerated(int64_t mhtml_file_size); 54 void MHTMLGenerated(int64_t mhtml_file_size);
55 55
56 // Returns the WebContents we are associated with, NULL if it's been closed. 56 // Returns the WebContents we are associated with, NULL if it's been closed.
57 content::WebContents* GetWebContents(); 57 content::WebContents* GetWebContents();
58 58
59 scoped_ptr<extensions::api::page_capture::SaveAsMHTML::Params> params_; 59 std::unique_ptr<extensions::api::page_capture::SaveAsMHTML::Params> params_;
60 60
61 // The path to the temporary file containing the MHTML data. 61 // The path to the temporary file containing the MHTML data.
62 base::FilePath mhtml_path_; 62 base::FilePath mhtml_path_;
63 63
64 // The file containing the MHTML. 64 // The file containing the MHTML.
65 scoped_refptr<storage::ShareableFileReference> mhtml_file_; 65 scoped_refptr<storage::ShareableFileReference> mhtml_file_;
66 66
67 DECLARE_EXTENSION_FUNCTION("pageCapture.saveAsMHTML", PAGECAPTURE_SAVEASMHTML) 67 DECLARE_EXTENSION_FUNCTION("pageCapture.saveAsMHTML", PAGECAPTURE_SAVEASMHTML)
68 }; 68 };
69 69
70 } // namespace extensions 70 } // namespace extensions
71 71
72 #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