summaryrefslogtreecommitdiffstats
path: root/chromium/chrome/browser/printing/background_printing_manager.h
diff options
context:
space:
mode:
authorAllan Sandfeld Jensen <allan.jensen@qt.io>2017-09-18 14:34:04 +0200
committerAllan Sandfeld Jensen <allan.jensen@qt.io>2017-10-04 11:15:27 +0000
commite6430e577f105ad8813c92e75c54660c4985026e (patch)
tree88115e5d1fb471fea807111924dcccbeadbf9e4f /chromium/chrome/browser/printing/background_printing_manager.h
parent53d399fe6415a96ea6986ec0d402a9c07da72453 (diff)
BASELINE: Update Chromium to 61.0.3163.99
Change-Id: I8452f34574d88ca2b27af9bd56fc9ff3f16b1367 Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
Diffstat (limited to 'chromium/chrome/browser/printing/background_printing_manager.h')
-rw-r--r--chromium/chrome/browser/printing/background_printing_manager.h9
1 files changed, 6 insertions, 3 deletions
diff --git a/chromium/chrome/browser/printing/background_printing_manager.h b/chromium/chrome/browser/printing/background_printing_manager.h
index 6957e541066..ea211ad0395 100644
--- a/chromium/chrome/browser/printing/background_printing_manager.h
+++ b/chromium/chrome/browser/printing/background_printing_manager.h
@@ -11,7 +11,7 @@
#include "base/compiler_specific.h"
#include "base/macros.h"
-#include "base/threading/non_thread_safe.h"
+#include "base/sequence_checker.h"
#include "content/public/browser/notification_observer.h"
#include "content/public/browser/notification_registrar.h"
@@ -26,8 +26,7 @@ namespace printing {
// The hidden WebContents are no longer part of any Browser / TabStripModel.
// The WebContents started life as a ConstrainedWebDialog.
// They get deleted when the printing finishes.
-class BackgroundPrintingManager : public base::NonThreadSafe,
- public content::NotificationObserver {
+class BackgroundPrintingManager : public content::NotificationObserver {
public:
class Observer;
@@ -49,6 +48,8 @@ class BackgroundPrintingManager : public base::NonThreadSafe,
void DeletePreviewContentsForBrowserContext(
content::BrowserContext* browser_context);
+ void OnPrintRequestCancelled(content::WebContents* preview_dialog);
+
private:
// content::NotificationObserver overrides:
void Observe(int type,
@@ -65,6 +66,8 @@ class BackgroundPrintingManager : public base::NonThreadSafe,
content::NotificationRegistrar registrar_;
+ SEQUENCE_CHECKER(sequence_checker_);
+
DISALLOW_COPY_AND_ASSIGN(BackgroundPrintingManager);
};