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

Side by Side Diff: content/browser/renderer_host/pepper/pepper_printing_host.h

Issue 616603004: Replacing the OVERRIDE with override and FINAL with final in content/browser/renderer_host (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased the patch Created 6 years, 2 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 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 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 CONTENT_BROWSER_RENDERER_HOST_PEPPER_PEPPER_PRINTING_HOST_H_ 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_PEPPER_PEPPER_PRINTING_HOST_H_
6 #define CONTENT_BROWSER_RENDERER_HOST_PEPPER_PEPPER_PRINTING_HOST_H_ 6 #define CONTENT_BROWSER_RENDERER_HOST_PEPPER_PEPPER_PRINTING_HOST_H_
7 7
8 #include "base/compiler_specific.h" 8 #include "base/compiler_specific.h"
9 #include "base/memory/scoped_ptr.h" 9 #include "base/memory/scoped_ptr.h"
10 #include "base/memory/weak_ptr.h" 10 #include "base/memory/weak_ptr.h"
11 #include "content/browser/renderer_host/pepper/pepper_print_settings_manager.h" 11 #include "content/browser/renderer_host/pepper/pepper_print_settings_manager.h"
12 #include "content/common/content_export.h" 12 #include "content/common/content_export.h"
13 #include "ppapi/host/host_message_context.h" 13 #include "ppapi/host/host_message_context.h"
14 #include "ppapi/host/resource_host.h" 14 #include "ppapi/host/resource_host.h"
15 15
16 namespace content { 16 namespace content {
17 17
18 class CONTENT_EXPORT PepperPrintingHost : public ppapi::host::ResourceHost { 18 class CONTENT_EXPORT PepperPrintingHost : public ppapi::host::ResourceHost {
19 public: 19 public:
20 PepperPrintingHost( 20 PepperPrintingHost(
21 ppapi::host::PpapiHost* host, 21 ppapi::host::PpapiHost* host,
22 PP_Instance instance, 22 PP_Instance instance,
23 PP_Resource resource, 23 PP_Resource resource,
24 scoped_ptr<PepperPrintSettingsManager> print_settings_manager); 24 scoped_ptr<PepperPrintSettingsManager> print_settings_manager);
25 virtual ~PepperPrintingHost(); 25 virtual ~PepperPrintingHost();
26 26
27 // ppapi::host::ResourceHost implementation. 27 // ppapi::host::ResourceHost implementation.
28 virtual int32_t OnResourceMessageReceived( 28 virtual int32_t OnResourceMessageReceived(
29 const IPC::Message& msg, 29 const IPC::Message& msg,
30 ppapi::host::HostMessageContext* context) OVERRIDE; 30 ppapi::host::HostMessageContext* context) override;
31 31
32 private: 32 private:
33 int32_t OnGetDefaultPrintSettings(ppapi::host::HostMessageContext* context); 33 int32_t OnGetDefaultPrintSettings(ppapi::host::HostMessageContext* context);
34 34
35 void PrintSettingsCallback(ppapi::host::ReplyMessageContext reply_context, 35 void PrintSettingsCallback(ppapi::host::ReplyMessageContext reply_context,
36 PepperPrintSettingsManager::Result result); 36 PepperPrintSettingsManager::Result result);
37 37
38 scoped_ptr<PepperPrintSettingsManager> print_settings_manager_; 38 scoped_ptr<PepperPrintSettingsManager> print_settings_manager_;
39 39
40 base::WeakPtrFactory<PepperPrintingHost> weak_factory_; 40 base::WeakPtrFactory<PepperPrintingHost> weak_factory_;
41 41
42 DISALLOW_COPY_AND_ASSIGN(PepperPrintingHost); 42 DISALLOW_COPY_AND_ASSIGN(PepperPrintingHost);
43 }; 43 };
44 44
45 } // namespace content 45 } // namespace content
46 46
47 #endif // CONTENT_BROWSER_RENDERER_HOST_PEPPER_PEPPER_PRINTING_HOST_H_ 47 #endif // CONTENT_BROWSER_RENDERER_HOST_PEPPER_PEPPER_PRINTING_HOST_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698