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

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

Issue 11413200: Refactored PPB_Flash GetSettings to the new pepper resource model (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years 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 | Annotate | Revision Log
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_RENDERER_PEPPER_PEPPER_FLASH_BROWSER_HOST_H_ 5 #ifndef CONTENT_RENDERER_PEPPER_PEPPER_FLASH_BROWSER_HOST_H_
6 #define CONTENT_RENDERER_PEPPER_PEPPER_FLASH_BROWSER_HOST_H_ 6 #define CONTENT_RENDERER_PEPPER_PEPPER_FLASH_BROWSER_HOST_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/memory/weak_ptr.h"
9 #include "ppapi/host/host_message_context.h" 10 #include "ppapi/host/host_message_context.h"
10 #include "ppapi/host/resource_host.h" 11 #include "ppapi/host/resource_host.h"
11 12
12 namespace base { 13 namespace base {
13 class Time; 14 class Time;
14 } 15 }
15 16
17 class GURL;
18
16 namespace content { 19 namespace content {
17 20
18 class BrowserPpapiHost; 21 class BrowserPpapiHost;
22 class ResourceContext;
19 23
20 class PepperFlashBrowserHost : public ppapi::host::ResourceHost { 24 class PepperFlashBrowserHost : public ppapi::host::ResourceHost {
21 public: 25 public:
22 PepperFlashBrowserHost(BrowserPpapiHost* host, 26 PepperFlashBrowserHost(BrowserPpapiHost* host,
23 PP_Instance instance, 27 PP_Instance instance,
24 PP_Resource resource); 28 PP_Resource resource);
25 virtual ~PepperFlashBrowserHost(); 29 virtual ~PepperFlashBrowserHost();
26 30
27 // ppapi::host::ResourceHost override. 31 // ppapi::host::ResourceHost override.
28 virtual int32_t OnResourceMessageReceived( 32 virtual int32_t OnResourceMessageReceived(
29 const IPC::Message& msg, 33 const IPC::Message& msg,
30 ppapi::host::HostMessageContext* context) OVERRIDE; 34 ppapi::host::HostMessageContext* context) OVERRIDE;
31 35
32 private: 36 private:
33 int32_t OnMsgUpdateActivity(ppapi::host::HostMessageContext* host_context); 37 int32_t OnMsgUpdateActivity(ppapi::host::HostMessageContext* host_context);
34 int32_t OnMsgGetLocalTimeZoneOffset( 38 int32_t OnMsgGetLocalTimeZoneOffset(
35 ppapi::host::HostMessageContext* host_context, 39 ppapi::host::HostMessageContext* host_context,
36 const base::Time& t); 40 const base::Time& t);
41 int32_t OnMsgGetLocalDataRestrictions(
42 ppapi::host::HostMessageContext* context);
43
44 void GetLocalDataRestrictions(ppapi::host::ReplyMessageContext reply_context,
45 const GURL& document_url,
46 const GURL& plugin_url,
47 ResourceContext* resource_context);
48
49 BrowserPpapiHost* host_;
50 int render_process_id_;
51 ResourceContext* resource_context_; // For fetching the Flash LSO settings.
52 base::WeakPtrFactory<PepperFlashBrowserHost> weak_factory_;
37 53
38 DISALLOW_COPY_AND_ASSIGN(PepperFlashBrowserHost); 54 DISALLOW_COPY_AND_ASSIGN(PepperFlashBrowserHost);
39 }; 55 };
40 56
41 } // namespace content 57 } // namespace content
42 58
43 #endif // CONTENT_RENDERER_PEPPER_PEPPER_FLASH_BROWSER_HOST_H_ 59 #endif // CONTENT_RENDERER_PEPPER_PEPPER_FLASH_BROWSER_HOST_H_
OLDNEW
« no previous file with comments | « chrome/test/ppapi/ppapi_browsertest.cc ('k') | content/browser/renderer_host/pepper/pepper_flash_browser_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698