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

Unified Diff: chrome/browser/printing/print_preview_data_service.h

Issue 2824283004: Mark some PrintPreviewUI methods as const. (Closed)
Patch Set: Created 3 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | chrome/browser/printing/print_preview_data_service.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/printing/print_preview_data_service.h
diff --git a/chrome/browser/printing/print_preview_data_service.h b/chrome/browser/printing/print_preview_data_service.h
index 9136c49b72acb04443ef4292dfed8caf703659f8..9052528216337c9e5fae8d80b53456256002db59 100644
--- a/chrome/browser/printing/print_preview_data_service.h
+++ b/chrome/browser/printing/print_preview_data_service.h
@@ -31,8 +31,9 @@ class PrintPreviewDataService {
// |printing::COMPLETE_PREVIEW_DOCUMENT_INDEX| to represent complete preview
// data. Use |index| to retrieve a specific preview page data. |data| is set
// to NULL if the requested page is not yet available.
- void GetDataEntry(int32_t preview_ui_id, int index,
- scoped_refptr<base::RefCountedBytes>* data);
+ void GetDataEntry(int32_t preview_ui_id,
+ int index,
+ scoped_refptr<base::RefCountedBytes>* data) const;
// Set/Update the data entry in PrintPreviewDataStore. |index| is zero-based
// or |printing::COMPLETE_PREVIEW_DOCUMENT_INDEX| to represent complete
@@ -47,7 +48,7 @@ class PrintPreviewDataService {
void RemoveEntry(int32_t preview_ui_id);
// Returns the available draft page count.
- int GetAvailableDraftPageCount(int32_t preview_ui_id);
+ int GetAvailableDraftPageCount(int32_t preview_ui_id) const;
private:
friend struct base::DefaultSingletonTraits<PrintPreviewDataService>;
@@ -59,7 +60,7 @@ class PrintPreviewDataService {
std::map<int32_t, scoped_refptr<PrintPreviewDataStore>>;
PrintPreviewDataService();
- virtual ~PrintPreviewDataService();
+ ~PrintPreviewDataService();
PreviewDataStoreMap data_store_map_;
« no previous file with comments | « no previous file | chrome/browser/printing/print_preview_data_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698