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

Unified Diff: printing/printed_document.h

Issue 329683002: Improvements in --debug-print switch implementation. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Wed 06/11/2014 10:41:42.83 Created 6 years, 6 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
Index: printing/printed_document.h
diff --git a/printing/printed_document.h b/printing/printed_document.h
index b8af4bb5f39e4984cf98d0d4278f7dc222176bd4..ee07ae0af4869cf281ff40acda76e97746ce6bd7 100644
--- a/printing/printed_document.h
+++ b/printing/printed_document.h
@@ -48,7 +48,7 @@ class PRINTING_EXPORT PrintedDocument
// Retrieves a page. If the page is not available right now, it
// requests to have this page be rendered and returns false.
Lei Zhang 2014/06/11 20:03:06 update comment
Vitaly Buka (NO REVIEWS) 2014/06/11 21:32:58 Done.
// Note: locks for a short amount of time.
- bool GetPage(int page_number, scoped_refptr<PrintedPage>* page);
+ scoped_refptr<PrintedPage> GetPage(int page_number);
// Draws the page in the context.
// Note: locks for a short amount of time in debug only.
@@ -97,7 +97,11 @@ class PRINTING_EXPORT PrintedDocument
// no files are generated.
static void set_debug_dump_path(const base::FilePath& debug_dump_path);
- static const base::FilePath& debug_dump_path();
+ // Creates debug file name from given |document_name| and |extension|.
+ // Returns empty |base::FilePath| if |set_debug_dump_path| was not yet called
+ // or called with empty value.
+ static base::FilePath CreateDebugDumpPath(const base::string16& document_name,
+ const std::string& extension);
private:
friend class base::RefCountedThreadSafe<PrintedDocument>;
@@ -160,6 +164,7 @@ class PRINTING_EXPORT PrintedDocument
int cookie_;
};
+ void DebugDumpSettings();
void DebugDump(const PrintedPage& page);
// All writable data member access must be guarded by this lock. Needs to be

Powered by Google App Engine
This is Rietveld 408576698