Pin Chrome's shortcut to the Win10 Start menu on install and OS upgrade.
[chromium-blink-merge.git] / chrome / browser / renderer_host / pepper / pepper_flash_browser_host.h
blob7c5fb7ae7302319fe5eca66d7b435601f0f8db45
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.
5 #ifndef CHROME_BROWSER_RENDERER_HOST_PEPPER_PEPPER_FLASH_BROWSER_HOST_H_
6 #define CHROME_BROWSER_RENDERER_HOST_PEPPER_PEPPER_FLASH_BROWSER_HOST_H_
8 #include "base/basictypes.h"
9 #include "base/memory/ref_counted.h"
10 #include "base/memory/weak_ptr.h"
11 #include "ppapi/host/host_message_context.h"
12 #include "ppapi/host/resource_host.h"
14 namespace base {
15 class Time;
18 namespace content {
19 class BrowserPpapiHost;
20 class ResourceContext;
23 namespace content_settings {
24 class CookieSettings;
27 class GURL;
29 namespace chrome {
31 class PepperFlashBrowserHost : public ppapi::host::ResourceHost {
32 public:
33 PepperFlashBrowserHost(content::BrowserPpapiHost* host,
34 PP_Instance instance,
35 PP_Resource resource);
36 ~PepperFlashBrowserHost() override;
38 // ppapi::host::ResourceHost override.
39 int32_t OnResourceMessageReceived(
40 const IPC::Message& msg,
41 ppapi::host::HostMessageContext* context) override;
43 private:
44 int32_t OnUpdateActivity(ppapi::host::HostMessageContext* host_context);
45 int32_t OnGetLocalTimeZoneOffset(
46 ppapi::host::HostMessageContext* host_context,
47 const base::Time& t);
48 int32_t OnGetLocalDataRestrictions(ppapi::host::HostMessageContext* context);
50 void GetLocalDataRestrictions(
51 ppapi::host::ReplyMessageContext reply_context,
52 const GURL& document_url,
53 const GURL& plugin_url,
54 scoped_refptr<content_settings::CookieSettings> cookie_settings);
56 content::BrowserPpapiHost* host_;
57 int render_process_id_;
58 // For fetching the Flash LSO settings.
59 scoped_refptr<content_settings::CookieSettings> cookie_settings_;
60 base::WeakPtrFactory<PepperFlashBrowserHost> weak_factory_;
62 DISALLOW_COPY_AND_ASSIGN(PepperFlashBrowserHost);
65 } // namespace chrome
67 #endif // CHROME_BROWSER_RENDERER_HOST_PEPPER_PEPPER_FLASH_BROWSER_HOST_H_