| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_DIALOG_CLOUD_INTERNAL_H_ | 5 #ifndef CHROME_BROWSER_PRINTING_PRINT_DIALOG_CLOUD_INTERNAL_H_ |
| 6 #define CHROME_BROWSER_PRINTING_PRINT_DIALOG_CLOUD_INTERNAL_H_ | 6 #define CHROME_BROWSER_PRINTING_PRINT_DIALOG_CLOUD_INTERNAL_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <string> | 9 #include <string> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 90 // The CloudPrintFlowHandler connects the state machine (the UI delegate) | 90 // The CloudPrintFlowHandler connects the state machine (the UI delegate) |
| 91 // to the dialog backing HTML and JS by providing WebUIMessageHandler | 91 // to the dialog backing HTML and JS by providing WebUIMessageHandler |
| 92 // functions for the JS to use. This include refreshing the page | 92 // functions for the JS to use. This include refreshing the page |
| 93 // setup parameters (which will cause a re-generation of the PDF in | 93 // setup parameters (which will cause a re-generation of the PDF in |
| 94 // the renderer process - do we want a progress throbber shown? | 94 // the renderer process - do we want a progress throbber shown? |
| 95 // Probably..), and packing up the PDF and job parameters and sending | 95 // Probably..), and packing up the PDF and job parameters and sending |
| 96 // them to the cloud. | 96 // them to the cloud. |
| 97 class CloudPrintFlowHandler : public WebUIMessageHandler, | 97 class CloudPrintFlowHandler : public WebUIMessageHandler, |
| 98 public NotificationObserver { | 98 public NotificationObserver { |
| 99 public: | 99 public: |
| 100 explicit CloudPrintFlowHandler(const FilePath& path_to_file, | 100 CloudPrintFlowHandler(const FilePath& path_to_file, |
| 101 const string16& print_job_title, | 101 const string16& print_job_title, |
| 102 const std::string& file_type); | 102 const std::string& file_type); |
| 103 virtual ~CloudPrintFlowHandler(); | 103 virtual ~CloudPrintFlowHandler(); |
| 104 | 104 |
| 105 // WebUIMessageHandler implementation. | 105 // WebUIMessageHandler implementation. |
| 106 virtual void RegisterMessages(); | 106 virtual void RegisterMessages(); |
| 107 | 107 |
| 108 // NotificationObserver implementation. | 108 // NotificationObserver implementation. |
| 109 virtual void Observe(int type, | 109 virtual void Observe(int type, |
| 110 const NotificationSource& source, | 110 const NotificationSource& source, |
| 111 const NotificationDetails& details); | 111 const NotificationDetails& details); |
| 112 | 112 |
| (...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 189 void CreateDialogImpl(const FilePath& path_to_file, | 189 void CreateDialogImpl(const FilePath& path_to_file, |
| 190 const string16& print_job_title, | 190 const string16& print_job_title, |
| 191 const std::string& file_type, | 191 const std::string& file_type, |
| 192 bool modal); | 192 bool modal); |
| 193 | 193 |
| 194 void Delete(const FilePath& path_to_file); | 194 void Delete(const FilePath& path_to_file); |
| 195 | 195 |
| 196 } // namespace internal_cloud_print_helpers | 196 } // namespace internal_cloud_print_helpers |
| 197 | 197 |
| 198 #endif // CHROME_BROWSER_PRINTING_PRINT_DIALOG_CLOUD_INTERNAL_H_ | 198 #endif // CHROME_BROWSER_PRINTING_PRINT_DIALOG_CLOUD_INTERNAL_H_ |
| OLD | NEW |