Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | |
| 2 // Use of this source code is governed by a BSD-style license that can be | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_PEPPER_PEPPER_PRINTING_HOST_H_ | |
| 6 #define CONTENT_BROWSER_RENDERER_HOST_PEPPER_PEPPER_PRINTING_HOST_H_ | |
| 7 | |
| 8 #include "base/compiler_specific.h" | |
| 9 #include "base/memory/scoped_ptr.h" | |
| 10 #include "base/memory/weak_ptr.h" | |
| 11 #include "content/browser/renderer_host/pepper/pepper_print_settings_manager.h" | |
| 12 #include "content/common/content_export.h" | |
| 13 #include "ppapi/host/resource_host.h" | |
| 14 | |
| 15 namespace content { | |
| 16 | |
| 17 class CONTENT_EXPORT PepperPrintingHost : public ppapi::host::ResourceHost { | |
| 18 public: | |
| 19 PepperPrintingHost( | |
| 20 ppapi::host::PpapiHost* host, | |
| 21 PP_Instance instance, | |
| 22 PP_Resource resource, | |
| 23 scoped_ptr<PepperPrintSettingsManager> print_settings_manager); | |
| 24 virtual ~PepperPrintingHost(); | |
| 25 | |
| 26 // ppapi::host::ResourceHost implementation. | |
| 27 virtual int32_t OnResourceMessageReceived( | |
| 28 const IPC::Message& msg, | |
| 29 ppapi::host::HostMessageContext* context) OVERRIDE; | |
| 30 | |
|
brettw
2012/09/18 21:41:38
Need only one blank.
raymes
2012/09/18 23:43:57
Done.
| |
| 31 | |
| 32 private: | |
| 33 int32_t OnMsgGetDefaultPrintSettings( | |
| 34 ppapi::host::HostMessageContext* context); | |
| 35 | |
| 36 scoped_ptr<PepperPrintSettingsManager> print_settings_manager_; | |
| 37 | |
| 38 base::WeakPtrFactory<PepperPrintingHost> weak_factory_; | |
| 39 | |
| 40 DISALLOW_COPY_AND_ASSIGN(PepperPrintingHost); | |
| 41 }; | |
| 42 | |
| 43 } // namespace content | |
| 44 | |
| 45 #endif // CONTENT_BROWSER_RENDERER_HOST_PEPPER_PEPPER_PRINTING_HOST_H_ | |
| OLD | NEW |