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

Side by Side Diff: chrome/renderer/pepper/pepper_flash_drm_renderer_host.h

Issue 21966004: Pepper: Move FileRef to the "new" resource proxy. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Another rebase Created 7 years, 3 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | chrome/renderer/pepper/pepper_flash_drm_renderer_host.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_RENDERER_PEPPER_PEPPER_FLASH_DRM_RENDERER_HOST_H_ 5 #ifndef CHROME_RENDERER_PEPPER_PEPPER_FLASH_DRM_RENDERER_HOST_H_
6 #define CHROME_RENDERER_PEPPER_PEPPER_FLASH_DRM_RENDERER_HOST_H_ 6 #define CHROME_RENDERER_PEPPER_PEPPER_FLASH_DRM_RENDERER_HOST_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/compiler_specific.h" 9 #include "base/compiler_specific.h"
10 #include "base/memory/weak_ptr.h"
10 #include "ppapi/host/resource_host.h" 11 #include "ppapi/host/resource_host.h"
11 12
13 namespace base {
14 class FilePath;
15 }
16
12 namespace content { 17 namespace content {
13 class RendererPpapiHost; 18 class RendererPpapiHost;
14 } 19 }
15 20
16 namespace chrome { 21 namespace chrome {
17 22
18 // TODO(raymes): This is only needed until we move FileRef resources to the 23 // TODO(raymes): This is only needed until we move FileRef resources to the
19 // browser. After that, get rid of this class altogether. 24 // browser. After that, get rid of this class altogether.
20 class PepperFlashDRMRendererHost : public ppapi::host::ResourceHost { 25 class PepperFlashDRMRendererHost : public ppapi::host::ResourceHost {
21 public: 26 public:
22 PepperFlashDRMRendererHost(content::RendererPpapiHost* host, 27 PepperFlashDRMRendererHost(content::RendererPpapiHost* host,
23 PP_Instance instance, 28 PP_Instance instance,
24 PP_Resource resource); 29 PP_Resource resource);
25 virtual ~PepperFlashDRMRendererHost(); 30 virtual ~PepperFlashDRMRendererHost();
26 31
27 virtual int32_t OnResourceMessageReceived( 32 virtual int32_t OnResourceMessageReceived(
28 const IPC::Message& msg, 33 const IPC::Message& msg,
29 ppapi::host::HostMessageContext* context) OVERRIDE; 34 ppapi::host::HostMessageContext* context) OVERRIDE;
30 35
31 private: 36 private:
32 int32_t OnGetVoucherFile(ppapi::host::HostMessageContext* context); 37 int32_t OnGetVoucherFile(ppapi::host::HostMessageContext* context);
33 38
39 void DidCreateFileRefHosts(
40 const ppapi::host::ReplyMessageContext& reply_context,
41 const base::FilePath& external_path,
42 int renderer_pending_host_id,
43 const std::vector<int>& browser_pending_host_ids);
44
34 // Non-owning pointer. 45 // Non-owning pointer.
35 content::RendererPpapiHost* renderer_ppapi_host_; 46 content::RendererPpapiHost* renderer_ppapi_host_;
36 47
48 base::WeakPtrFactory<PepperFlashDRMRendererHost> weak_factory_;
49
37 DISALLOW_COPY_AND_ASSIGN(PepperFlashDRMRendererHost); 50 DISALLOW_COPY_AND_ASSIGN(PepperFlashDRMRendererHost);
38 }; 51 };
39 52
40 } // namespace chrome 53 } // namespace chrome
41 54
42 #endif // CHROME_RENDERER_PEPPER_PEPPER_FLASH_DRM_RENDERER_HOST_H_ 55 #endif // CHROME_RENDERER_PEPPER_PEPPER_FLASH_DRM_RENDERER_HOST_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/renderer/pepper/pepper_flash_drm_renderer_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698