| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 MOJO_SERVICES_HTML_VIEWER_HTML_DOCUMENT_H_ | 5 #ifndef MOJO_SERVICES_HTML_VIEWER_HTML_DOCUMENT_H_ |
| 6 #define MOJO_SERVICES_HTML_VIEWER_HTML_DOCUMENT_H_ | 6 #define MOJO_SERVICES_HTML_VIEWER_HTML_DOCUMENT_H_ |
| 7 | 7 |
| 8 #include <set> | 8 #include <set> |
| 9 | 9 |
| 10 #include "base/callback.h" | 10 #include "base/callback.h" |
| (...skipping 10 matching lines...) Expand all Loading... |
| 21 #include "mojo/services/view_manager/public/cpp/view_manager_client_factory.h" | 21 #include "mojo/services/view_manager/public/cpp/view_manager_client_factory.h" |
| 22 #include "mojo/services/view_manager/public/cpp/view_manager_delegate.h" | 22 #include "mojo/services/view_manager/public/cpp/view_manager_delegate.h" |
| 23 #include "mojo/services/view_manager/public/cpp/view_observer.h" | 23 #include "mojo/services/view_manager/public/cpp/view_observer.h" |
| 24 #include "third_party/WebKit/public/web/WebFrameClient.h" | 24 #include "third_party/WebKit/public/web/WebFrameClient.h" |
| 25 #include "third_party/WebKit/public/web/WebViewClient.h" | 25 #include "third_party/WebKit/public/web/WebViewClient.h" |
| 26 | 26 |
| 27 namespace base { | 27 namespace base { |
| 28 class MessageLoopProxy; | 28 class MessageLoopProxy; |
| 29 } | 29 } |
| 30 | 30 |
| 31 namespace media { |
| 32 class WebEncryptedMediaClientImpl; |
| 33 } |
| 34 |
| 31 namespace mojo { | 35 namespace mojo { |
| 32 class ViewManager; | 36 class ViewManager; |
| 33 class View; | 37 class View; |
| 34 } | 38 } |
| 35 | 39 |
| 36 namespace html_viewer { | 40 namespace html_viewer { |
| 37 | 41 |
| 38 class AxProviderImpl; | 42 class AxProviderImpl; |
| 39 class WebLayerTreeViewImpl; | 43 class WebLayerTreeViewImpl; |
| 40 class WebMediaPlayerFactory; | 44 class WebMediaPlayerFactory; |
| (...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 90 blink::WebNavigationType nav_type, | 94 blink::WebNavigationType nav_type, |
| 91 blink::WebNavigationPolicy default_policy, | 95 blink::WebNavigationPolicy default_policy, |
| 92 bool isRedirect); | 96 bool isRedirect); |
| 93 virtual void didAddMessageToConsole(const blink::WebConsoleMessage& message, | 97 virtual void didAddMessageToConsole(const blink::WebConsoleMessage& message, |
| 94 const blink::WebString& source_name, | 98 const blink::WebString& source_name, |
| 95 unsigned source_line, | 99 unsigned source_line, |
| 96 const blink::WebString& stack_trace); | 100 const blink::WebString& stack_trace); |
| 97 virtual void didNavigateWithinPage(blink::WebLocalFrame* frame, | 101 virtual void didNavigateWithinPage(blink::WebLocalFrame* frame, |
| 98 const blink::WebHistoryItem& history_item, | 102 const blink::WebHistoryItem& history_item, |
| 99 blink::WebHistoryCommitType commit_type); | 103 blink::WebHistoryCommitType commit_type); |
| 104 virtual blink::WebEncryptedMediaClient* encryptedMediaClient(); |
| 100 | 105 |
| 101 // ViewManagerDelegate methods: | 106 // ViewManagerDelegate methods: |
| 102 void OnEmbed( | 107 void OnEmbed( |
| 103 mojo::ViewManager* view_manager, | 108 mojo::ViewManager* view_manager, |
| 104 mojo::View* root, | 109 mojo::View* root, |
| 105 mojo::ServiceProviderImpl* embedee_service_provider_impl, | 110 mojo::ServiceProviderImpl* embedee_service_provider_impl, |
| 106 scoped_ptr<mojo::ServiceProvider> embedder_service_provider) override; | 111 scoped_ptr<mojo::ServiceProvider> embedder_service_provider) override; |
| 107 void OnViewManagerDisconnected(mojo::ViewManager* view_manager) override; | 112 void OnViewManagerDisconnected(mojo::ViewManager* view_manager) override; |
| 108 | 113 |
| 109 // ViewObserver methods: | 114 // ViewObserver methods: |
| (...skipping 14 matching lines...) Expand all Loading... |
| 124 scoped_ptr<mojo::ServiceProvider> embedder_service_provider_; | 129 scoped_ptr<mojo::ServiceProvider> embedder_service_provider_; |
| 125 mojo::Shell* shell_; | 130 mojo::Shell* shell_; |
| 126 mojo::LazyInterfacePtr<mojo::NavigatorHost> navigator_host_; | 131 mojo::LazyInterfacePtr<mojo::NavigatorHost> navigator_host_; |
| 127 blink::WebView* web_view_; | 132 blink::WebView* web_view_; |
| 128 mojo::View* root_; | 133 mojo::View* root_; |
| 129 mojo::ViewManagerClientFactory view_manager_client_factory_; | 134 mojo::ViewManagerClientFactory view_manager_client_factory_; |
| 130 scoped_ptr<WebLayerTreeViewImpl> web_layer_tree_view_impl_; | 135 scoped_ptr<WebLayerTreeViewImpl> web_layer_tree_view_impl_; |
| 131 scoped_refptr<base::MessageLoopProxy> compositor_thread_; | 136 scoped_refptr<base::MessageLoopProxy> compositor_thread_; |
| 132 WebMediaPlayerFactory* web_media_player_factory_; | 137 WebMediaPlayerFactory* web_media_player_factory_; |
| 133 | 138 |
| 139 // EncryptedMediaClient attached to this frame; lazily initialized. |
| 140 media::WebEncryptedMediaClientImpl* web_encrypted_media_client_; |
| 141 |
| 134 // HTMLDocument owns these pointers. | 142 // HTMLDocument owns these pointers. |
| 135 std::set<AxProviderImpl*> ax_provider_impls_; | 143 std::set<AxProviderImpl*> ax_provider_impls_; |
| 136 | 144 |
| 137 DISALLOW_COPY_AND_ASSIGN(HTMLDocument); | 145 DISALLOW_COPY_AND_ASSIGN(HTMLDocument); |
| 138 }; | 146 }; |
| 139 | 147 |
| 140 } // namespace html_viewer | 148 } // namespace html_viewer |
| 141 | 149 |
| 142 #endif // MOJO_SERVICES_HTML_VIEWER_HTML_DOCUMENT_H_ | 150 #endif // MOJO_SERVICES_HTML_VIEWER_HTML_DOCUMENT_H_ |
| OLD | NEW |