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

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

Issue 11516020: Refactor PPB_Flash GetLocalTimeZoneOffset to the new PPAPI 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 "ppapi/host/host_message_context.h" 9 #include "ppapi/host/host_message_context.h"
10 #include "ppapi/host/resource_host.h" 10 #include "ppapi/host/resource_host.h"
11 11
12 namespace base {
13 class Time;
14 }
15
12 namespace content { 16 namespace content {
13 17
14 class BrowserPpapiHost; 18 class BrowserPpapiHost;
15 19
16 class PepperFlashBrowserHost : public ppapi::host::ResourceHost { 20 class PepperFlashBrowserHost : public ppapi::host::ResourceHost {
17 public: 21 public:
18 PepperFlashBrowserHost(BrowserPpapiHost* host, 22 PepperFlashBrowserHost(BrowserPpapiHost* host,
19 PP_Instance instance, 23 PP_Instance instance,
20 PP_Resource resource); 24 PP_Resource resource);
21 virtual ~PepperFlashBrowserHost(); 25 virtual ~PepperFlashBrowserHost();
22 26
23 // ppapi::host::ResourceHost override. 27 // ppapi::host::ResourceHost override.
24 virtual int32_t OnResourceMessageReceived( 28 virtual int32_t OnResourceMessageReceived(
25 const IPC::Message& msg, 29 const IPC::Message& msg,
26 ppapi::host::HostMessageContext* context) OVERRIDE; 30 ppapi::host::HostMessageContext* context) OVERRIDE;
27 31
28 private: 32 private:
29 int32_t OnMsgUpdateActivity(ppapi::host::HostMessageContext* host_context); 33 int32_t OnMsgUpdateActivity(ppapi::host::HostMessageContext* host_context);
34 int32_t OnMsgGetLocalTimeZoneOffset(
35 ppapi::host::HostMessageContext* host_context,
36 const base::Time& t);
30 37
31 DISALLOW_COPY_AND_ASSIGN(PepperFlashBrowserHost); 38 DISALLOW_COPY_AND_ASSIGN(PepperFlashBrowserHost);
32 }; 39 };
33 40
34 } // namespace content 41 } // namespace content
35 42
36 #endif // CONTENT_RENDERER_PEPPER_PEPPER_FLASH_BROWSER_HOST_H_ 43 #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