OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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_RESOURCE_CONVERTER_H_ | 5 #ifndef CONTENT_RENDERER_PEPPER_RESOURCE_CONVERTER_H_ |
6 #define CONTENT_RENDERER_PEPPER_RESOURCE_CONVERTER_H_ | 6 #define CONTENT_RENDERER_PEPPER_RESOURCE_CONVERTER_H_ |
7 | 7 |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "base/callback.h" | 10 #include "base/callback.h" |
11 #include "base/compiler_specific.h" | 11 #include "base/compiler_specific.h" |
12 #include "base/macros.h" | 12 #include "base/macros.h" |
13 #include "base/memory/ref_counted.h" | 13 #include "base/memory/ref_counted.h" |
14 #include "content/common/content_export.h" | 14 #include "content/common/content_export.h" |
15 #include "content/renderer/pepper/host_resource_var.h" | 15 #include "content/renderer/pepper/host_resource_var.h" |
16 #include "ppapi/c/pp_instance.h" | 16 #include "ppapi/c/pp_instance.h" |
17 #include "ppapi/c/pp_var.h" | 17 #include "ppapi/c/pp_var.h" |
18 #include "v8/include/v8.h" | 18 #include "v8/include/v8.h" |
19 | 19 |
20 namespace IPC { | 20 namespace IPC { |
21 class Message; | 21 class Message; |
22 } | 22 } |
23 | 23 |
24 namespace ppapi { | |
25 class ScopedPPVar; | |
26 } | |
27 | |
28 namespace content { | 24 namespace content { |
29 | 25 |
30 // This class is responsible for converting V8 vars to Pepper resources. | 26 // This class is responsible for converting V8 vars to Pepper resources. |
31 class CONTENT_EXPORT ResourceConverter { | 27 class CONTENT_EXPORT ResourceConverter { |
32 public: | 28 public: |
33 virtual ~ResourceConverter(); | 29 virtual ~ResourceConverter(); |
34 | 30 |
35 // Reset the state of the resource converter. | 31 // Reset the state of the resource converter. |
36 virtual void Reset() = 0; | 32 virtual void Reset() = 0; |
37 | 33 |
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
101 // conveniently passed to |CreateBrowserResourceHosts|. | 97 // conveniently passed to |CreateBrowserResourceHosts|. |
102 std::vector<IPC::Message> browser_host_create_messages_; | 98 std::vector<IPC::Message> browser_host_create_messages_; |
103 // A list of the resource vars associated with browser hosts. | 99 // A list of the resource vars associated with browser hosts. |
104 std::vector<scoped_refptr<HostResourceVar> > browser_vars_; | 100 std::vector<scoped_refptr<HostResourceVar> > browser_vars_; |
105 | 101 |
106 DISALLOW_COPY_AND_ASSIGN(ResourceConverterImpl); | 102 DISALLOW_COPY_AND_ASSIGN(ResourceConverterImpl); |
107 }; | 103 }; |
108 | 104 |
109 } // namespace content | 105 } // namespace content |
110 #endif // CONTENT_RENDERER_PEPPER_RESOURCE_CONVERTER_H_ | 106 #endif // CONTENT_RENDERER_PEPPER_RESOURCE_CONVERTER_H_ |
OLD | NEW |