| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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_PRINTING_PRINT_VIEW_MANAGER_BASE_H_ | 5 #ifndef CHROME_BROWSER_PRINTING_PRINT_VIEW_MANAGER_BASE_H_ |
| 6 #define CHROME_BROWSER_PRINTING_PRINT_VIEW_MANAGER_BASE_H_ | 6 #define CHROME_BROWSER_PRINTING_PRINT_VIEW_MANAGER_BASE_H_ |
| 7 | 7 |
| 8 #include "base/memory/ref_counted.h" | 8 #include "base/memory/ref_counted.h" |
| 9 #include "base/prefs/pref_member.h" | 9 #include "base/prefs/pref_member.h" |
| 10 #include "base/strings/string16.h" | 10 #include "base/strings/string16.h" |
| (...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 63 // IPC Message handlers. | 63 // IPC Message handlers. |
| 64 virtual void OnPrintingFailed(int cookie); | 64 virtual void OnPrintingFailed(int cookie); |
| 65 | 65 |
| 66 private: | 66 private: |
| 67 // content::NotificationObserver implementation. | 67 // content::NotificationObserver implementation. |
| 68 void Observe(int type, | 68 void Observe(int type, |
| 69 const content::NotificationSource& source, | 69 const content::NotificationSource& source, |
| 70 const content::NotificationDetails& details) override; | 70 const content::NotificationDetails& details) override; |
| 71 | 71 |
| 72 // content::WebContentsObserver implementation. | 72 // content::WebContentsObserver implementation. |
| 73 void DidStartLoading(content::RenderViewHost* render_view_host) override; | 73 void DidStartLoading() override; |
| 74 | 74 |
| 75 // Cancels the print job. | 75 // Cancels the print job. |
| 76 void NavigationStopped() override; | 76 void NavigationStopped() override; |
| 77 | 77 |
| 78 // IPC Message handlers. | 78 // IPC Message handlers. |
| 79 void OnDidGetPrintedPagesCount(int cookie, int number_pages); | 79 void OnDidGetPrintedPagesCount(int cookie, int number_pages); |
| 80 void OnDidGetDocumentCookie(int cookie); | 80 void OnDidGetDocumentCookie(int cookie); |
| 81 void OnDidPrintPage(const PrintHostMsg_DidPrintPage_Params& params); | 81 void OnDidPrintPage(const PrintHostMsg_DidPrintPage_Params& params); |
| 82 void OnShowInvalidPrinterSettingsError(); | 82 void OnShowInvalidPrinterSettingsError(); |
| 83 | 83 |
| (...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 160 BooleanPrefMember printing_enabled_; | 160 BooleanPrefMember printing_enabled_; |
| 161 | 161 |
| 162 scoped_refptr<printing::PrintQueriesQueue> queue_; | 162 scoped_refptr<printing::PrintQueriesQueue> queue_; |
| 163 | 163 |
| 164 DISALLOW_COPY_AND_ASSIGN(PrintViewManagerBase); | 164 DISALLOW_COPY_AND_ASSIGN(PrintViewManagerBase); |
| 165 }; | 165 }; |
| 166 | 166 |
| 167 } // namespace printing | 167 } // namespace printing |
| 168 | 168 |
| 169 #endif // CHROME_BROWSER_PRINTING_PRINT_VIEW_MANAGER_BASE_H_ | 169 #endif // CHROME_BROWSER_PRINTING_PRINT_VIEW_MANAGER_BASE_H_ |
| OLD | NEW |