Index: content/browser/shared_worker/shared_worker_host.h |
diff --git a/content/public/renderer/video_encode_accelerator.h b/content/browser/shared_worker/shared_worker_host.h |
similarity index 24% |
copy from content/public/renderer/video_encode_accelerator.h |
copy to content/browser/shared_worker/shared_worker_host.h |
index 4231cff2d09eb42d7c2ed3c85afc15abfdaa0d59..6185f8a187b2e611af143780b94d5e203d1b9211 100644 |
--- a/content/public/renderer/video_encode_accelerator.h |
+++ b/content/browser/shared_worker/shared_worker_host.h |
@@ -2,19 +2,35 @@ |
// Use of this source code is governed by a BSD-style license that can be |
// found in the LICENSE file. |
-#ifndef CONTENT_PUBLIC_RENDERER_VIDEO_ENCODE_ACCELERATOR_H_ |
-#define CONTENT_PUBLIC_RENDERER_VIDEO_ENCODE_ACCELERATOR_H_ |
+#ifndef CONTENT_BROWSER_SHARED_WORKER_SHARED_WORKER_HOST_H_ |
+#define CONTENT_BROWSER_SHARED_WORKER_SHARED_WORKER_HOST_H_ |
+ |
+#include <vector> |
#include "base/memory/scoped_ptr.h" |
-#include "content/common/content_export.h" |
-#include "media/video/video_encode_accelerator.h" |
namespace content { |
+class SharedWorkerMessageFilter; |
+class SharedWorkerInstance; |
+ |
+class SharedWorkerHost { |
kinuko
2014/02/26 08:51:17
Would be nice to have a brief class-level comment.
horo
2014/02/26 10:36:19
Done.
|
+ public: |
+ SharedWorkerHost(SharedWorkerInstance* instance); |
kinuko
2014/02/26 08:51:17
explicit
horo
2014/02/26 10:36:19
Done.
|
+ virtual ~SharedWorkerHost(); |
kinuko
2014/02/26 08:51:17
nit: probably no need to be virtual?
horo
2014/02/26 10:36:19
Done.
|
+ |
+ // Starts the SharedWorker in the renderer process which is associated with |
+ // |filter|. |
+ bool Init(SharedWorkerMessageFilter* filter); |
+ |
+ SharedWorkerInstance* instance() { return instance_.get(); } |
+ int worker_route_id() const { return worker_route_id_; } |
-// Generate an instance of media::VideoEncodeAccelerator. |
-CONTENT_EXPORT scoped_ptr<media::VideoEncodeAccelerator> |
-CreateVideoEncodeAccelerator(media::VideoEncodeAccelerator::Client* client); |
+ private: |
+ scoped_ptr<SharedWorkerInstance> instance_; |
+ int worker_route_id_; |
+ DISALLOW_COPY_AND_ASSIGN(SharedWorkerHost); |
+}; |
} // namespace content |
-#endif // CONTENT_PUBLIC_RENDERER_VIDEO_ENCODE_ACCELERATOR_H_ |
+#endif // CONTENT_BROWSER_SHARED_WORKER_SHARED_WORKER_HOST_H_ |