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

Side by Side Diff: chrome/browser/renderer_host/pepper/pepper_flash_browser_host.h

Issue 648653003: Standardize usage of virtual/override/final in chrome/browser/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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 CHROME_BROWSER_RENDERER_HOST_PEPPER_PEPPER_FLASH_BROWSER_HOST_H_ 5 #ifndef CHROME_BROWSER_RENDERER_HOST_PEPPER_PEPPER_FLASH_BROWSER_HOST_H_
6 #define CHROME_BROWSER_RENDERER_HOST_PEPPER_PEPPER_FLASH_BROWSER_HOST_H_ 6 #define CHROME_BROWSER_RENDERER_HOST_PEPPER_PEPPER_FLASH_BROWSER_HOST_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/memory/ref_counted.h" 9 #include "base/memory/ref_counted.h"
10 #include "base/memory/weak_ptr.h" 10 #include "base/memory/weak_ptr.h"
(...skipping 12 matching lines...) Expand all
23 class CookieSettings; 23 class CookieSettings;
24 class GURL; 24 class GURL;
25 25
26 namespace chrome { 26 namespace chrome {
27 27
28 class PepperFlashBrowserHost : public ppapi::host::ResourceHost { 28 class PepperFlashBrowserHost : public ppapi::host::ResourceHost {
29 public: 29 public:
30 PepperFlashBrowserHost(content::BrowserPpapiHost* host, 30 PepperFlashBrowserHost(content::BrowserPpapiHost* host,
31 PP_Instance instance, 31 PP_Instance instance,
32 PP_Resource resource); 32 PP_Resource resource);
33 virtual ~PepperFlashBrowserHost(); 33 ~PepperFlashBrowserHost() override;
34 34
35 // ppapi::host::ResourceHost override. 35 // ppapi::host::ResourceHost override.
36 virtual int32_t OnResourceMessageReceived( 36 int32_t OnResourceMessageReceived(
37 const IPC::Message& msg, 37 const IPC::Message& msg,
38 ppapi::host::HostMessageContext* context) override; 38 ppapi::host::HostMessageContext* context) override;
39 39
40 private: 40 private:
41 int32_t OnUpdateActivity(ppapi::host::HostMessageContext* host_context); 41 int32_t OnUpdateActivity(ppapi::host::HostMessageContext* host_context);
42 int32_t OnGetLocalTimeZoneOffset( 42 int32_t OnGetLocalTimeZoneOffset(
43 ppapi::host::HostMessageContext* host_context, 43 ppapi::host::HostMessageContext* host_context,
44 const base::Time& t); 44 const base::Time& t);
45 int32_t OnGetLocalDataRestrictions(ppapi::host::HostMessageContext* context); 45 int32_t OnGetLocalDataRestrictions(ppapi::host::HostMessageContext* context);
46 46
47 void GetLocalDataRestrictions(ppapi::host::ReplyMessageContext reply_context, 47 void GetLocalDataRestrictions(ppapi::host::ReplyMessageContext reply_context,
48 const GURL& document_url, 48 const GURL& document_url,
49 const GURL& plugin_url, 49 const GURL& plugin_url,
50 scoped_refptr<CookieSettings> cookie_settings); 50 scoped_refptr<CookieSettings> cookie_settings);
51 51
52 content::BrowserPpapiHost* host_; 52 content::BrowserPpapiHost* host_;
53 int render_process_id_; 53 int render_process_id_;
54 // For fetching the Flash LSO settings. 54 // For fetching the Flash LSO settings.
55 scoped_refptr<CookieSettings> cookie_settings_; 55 scoped_refptr<CookieSettings> cookie_settings_;
56 base::WeakPtrFactory<PepperFlashBrowserHost> weak_factory_; 56 base::WeakPtrFactory<PepperFlashBrowserHost> weak_factory_;
57 57
58 DISALLOW_COPY_AND_ASSIGN(PepperFlashBrowserHost); 58 DISALLOW_COPY_AND_ASSIGN(PepperFlashBrowserHost);
59 }; 59 };
60 60
61 } // namespace chrome 61 } // namespace chrome
62 62
63 #endif // CHROME_BROWSER_RENDERER_HOST_PEPPER_PEPPER_FLASH_BROWSER_HOST_H_ 63 #endif // CHROME_BROWSER_RENDERER_HOST_PEPPER_PEPPER_FLASH_BROWSER_HOST_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698