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

Side by Side Diff: chrome/browser/ui/webui/print_preview/print_preview_ui.h

Issue 1803263002: base: Make RefCountedBytes::TakeVector return ref ptr instead of raw ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 9 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_UI_WEBUI_PRINT_PREVIEW_PRINT_PREVIEW_UI_H_ 5 #ifndef CHROME_BROWSER_UI_WEBUI_PRINT_PREVIEW_PRINT_PREVIEW_UI_H_
6 #define CHROME_BROWSER_UI_WEBUI_PRINT_PREVIEW_PRINT_PREVIEW_UI_H_ 6 #define CHROME_BROWSER_UI_WEBUI_PRINT_PREVIEW_PRINT_PREVIEW_UI_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <string> 10 #include <string>
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
44 // Gets the print preview |data|. |index| is zero-based, and can be 44 // Gets the print preview |data|. |index| is zero-based, and can be
45 // |printing::COMPLETE_PREVIEW_DOCUMENT_INDEX| to get the entire preview 45 // |printing::COMPLETE_PREVIEW_DOCUMENT_INDEX| to get the entire preview
46 // document. 46 // document.
47 void GetPrintPreviewDataForIndex(int index, 47 void GetPrintPreviewDataForIndex(int index,
48 scoped_refptr<base::RefCountedBytes>* data); 48 scoped_refptr<base::RefCountedBytes>* data);
49 49
50 // Sets the print preview |data|. |index| is zero-based, and can be 50 // Sets the print preview |data|. |index| is zero-based, and can be
51 // |printing::COMPLETE_PREVIEW_DOCUMENT_INDEX| to set the entire preview 51 // |printing::COMPLETE_PREVIEW_DOCUMENT_INDEX| to set the entire preview
52 // document. 52 // document.
53 void SetPrintPreviewDataForIndex(int index, 53 void SetPrintPreviewDataForIndex(int index,
54 const base::RefCountedBytes* data); 54 scoped_refptr<base::RefCountedBytes> data);
55 55
56 // Clear the existing print preview data. 56 // Clear the existing print preview data.
57 void ClearAllPreviewData(); 57 void ClearAllPreviewData();
58 58
59 // Returns the available draft page count. 59 // Returns the available draft page count.
60 int GetAvailableDraftPageCount(); 60 int GetAvailableDraftPageCount();
61 61
62 // Setters 62 // Setters
63 void SetInitiatorTitle(const base::string16& initiator_title); 63 void SetInitiatorTitle(const base::string16& initiator_title);
64 64
(...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after
198 198
199 // Keeps track of whether OnClosePrintPreviewDialog() has been called or not. 199 // Keeps track of whether OnClosePrintPreviewDialog() has been called or not.
200 bool dialog_closed_; 200 bool dialog_closed_;
201 201
202 base::WeakPtrFactory<PrintPreviewUI> weak_ptr_factory_; 202 base::WeakPtrFactory<PrintPreviewUI> weak_ptr_factory_;
203 203
204 DISALLOW_COPY_AND_ASSIGN(PrintPreviewUI); 204 DISALLOW_COPY_AND_ASSIGN(PrintPreviewUI);
205 }; 205 };
206 206
207 #endif // CHROME_BROWSER_UI_WEBUI_PRINT_PREVIEW_PRINT_PREVIEW_UI_H_ 207 #endif // CHROME_BROWSER_UI_WEBUI_PRINT_PREVIEW_PRINT_PREVIEW_UI_H_
OLDNEW
« no previous file with comments | « chrome/browser/themes/browser_theme_pack.cc ('k') | chrome/browser/ui/webui/print_preview/print_preview_ui.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698