| 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_RENDER_FRAME_IMPL_H_ | 5 #ifndef CONTENT_RENDERER_RENDER_FRAME_IMPL_H_ |
| 6 #define CONTENT_RENDERER_RENDER_FRAME_IMPL_H_ | 6 #define CONTENT_RENDERER_RENDER_FRAME_IMPL_H_ |
| 7 | 7 |
| 8 #include <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
| 11 #include "base/files/file_path.h" | 11 #include "base/files/file_path.h" |
| 12 #include "base/gtest_prod_util.h" | 12 #include "base/gtest_prod_util.h" |
| 13 #include "base/id_map.h" | 13 #include "base/id_map.h" |
| 14 #include "base/memory/linked_ptr.h" |
| 14 #include "base/memory/scoped_ptr.h" | 15 #include "base/memory/scoped_ptr.h" |
| 15 #include "base/memory/weak_ptr.h" | 16 #include "base/memory/weak_ptr.h" |
| 16 #include "base/observer_list.h" | 17 #include "base/observer_list.h" |
| 17 #include "base/process/process_handle.h" | 18 #include "base/process/process_handle.h" |
| 18 #include "content/common/accessibility_mode_enums.h" | 19 #include "content/common/accessibility_mode_enums.h" |
| 19 #include "content/common/frame_message_enums.h" | 20 #include "content/common/frame_message_enums.h" |
| 20 #include "content/common/mojo/service_registry_impl.h" | 21 #include "content/common/mojo/service_registry_impl.h" |
| 21 #include "content/public/common/console_message_level.h" | 22 #include "content/public/common/console_message_level.h" |
| 22 #include "content/public/common/javascript_message_type.h" | 23 #include "content/public/common/javascript_message_type.h" |
| 23 #include "content/public/common/referrer.h" | 24 #include "content/public/common/referrer.h" |
| (...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 71 | 72 |
| 72 namespace gfx { | 73 namespace gfx { |
| 73 class Point; | 74 class Point; |
| 74 class Range; | 75 class Range; |
| 75 class Rect; | 76 class Rect; |
| 76 } | 77 } |
| 77 | 78 |
| 78 namespace media { | 79 namespace media { |
| 79 class CdmFactory; | 80 class CdmFactory; |
| 80 class MediaPermission; | 81 class MediaPermission; |
| 82 class MediaServiceProvider; |
| 83 class ResourceMultiBuffer; |
| 81 class WebEncryptedMediaClientImpl; | 84 class WebEncryptedMediaClientImpl; |
| 82 } | 85 } |
| 83 | 86 |
| 84 namespace mojo { | 87 namespace mojo { |
| 85 class ServiceProvider; | 88 class ServiceProvider; |
| 86 } | 89 } |
| 87 | 90 |
| 88 namespace url { | 91 namespace url { |
| 89 class Origin; | 92 class Origin; |
| 90 } | 93 } |
| (...skipping 906 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 997 #if defined(ENABLE_BROWSER_CDMS) | 1000 #if defined(ENABLE_BROWSER_CDMS) |
| 998 // Manage all CDMs in this render frame for communicating with the real CDM in | 1001 // Manage all CDMs in this render frame for communicating with the real CDM in |
| 999 // the browser process. It's okay to use a raw pointer since it's a | 1002 // the browser process. It's okay to use a raw pointer since it's a |
| 1000 // RenderFrameObserver. | 1003 // RenderFrameObserver. |
| 1001 RendererCdmManager* cdm_manager_; | 1004 RendererCdmManager* cdm_manager_; |
| 1002 #endif | 1005 #endif |
| 1003 | 1006 |
| 1004 // The CDM factory attached to this frame, lazily initialized. | 1007 // The CDM factory attached to this frame, lazily initialized. |
| 1005 scoped_ptr<media::CdmFactory> cdm_factory_; | 1008 scoped_ptr<media::CdmFactory> cdm_factory_; |
| 1006 | 1009 |
| 1010 // Media resource cache, lazily initialized. |
| 1011 linked_ptr<media::ResourceMultiBuffer> resource_multibuffer_; |
| 1012 |
| 1007 #if defined(VIDEO_HOLE) | 1013 #if defined(VIDEO_HOLE) |
| 1008 // Whether or not this RenderFrameImpl contains a media player. Used to | 1014 // Whether or not this RenderFrameImpl contains a media player. Used to |
| 1009 // register as an observer for video-hole-specific events. | 1015 // register as an observer for video-hole-specific events. |
| 1010 bool contains_media_player_; | 1016 bool contains_media_player_; |
| 1011 #endif | 1017 #endif |
| 1012 | 1018 |
| 1013 // True if this RenderFrame has ever played media. | 1019 // True if this RenderFrame has ever played media. |
| 1014 bool has_played_media_; | 1020 bool has_played_media_; |
| 1015 | 1021 |
| 1016 // The devtools agent for this frame; only created for main frame and | 1022 // The devtools agent for this frame; only created for main frame and |
| (...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1066 #endif | 1072 #endif |
| 1067 | 1073 |
| 1068 base::WeakPtrFactory<RenderFrameImpl> weak_factory_; | 1074 base::WeakPtrFactory<RenderFrameImpl> weak_factory_; |
| 1069 | 1075 |
| 1070 DISALLOW_COPY_AND_ASSIGN(RenderFrameImpl); | 1076 DISALLOW_COPY_AND_ASSIGN(RenderFrameImpl); |
| 1071 }; | 1077 }; |
| 1072 | 1078 |
| 1073 } // namespace content | 1079 } // namespace content |
| 1074 | 1080 |
| 1075 #endif // CONTENT_RENDERER_RENDER_FRAME_IMPL_H_ | 1081 #endif // CONTENT_RENDERER_RENDER_FRAME_IMPL_H_ |
| OLD | NEW |