| 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 #include "components/html_viewer/html_document.h" | 5 #include "components/html_viewer/html_document.h" |
| 6 | 6 |
| 7 #include "base/bind.h" | 7 #include "base/bind.h" |
| 8 #include "base/location.h" | 8 #include "base/location.h" |
| 9 #include "base/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
| 10 #include "base/message_loop/message_loop_proxy.h" | 10 #include "base/message_loop/message_loop_proxy.h" |
| 11 #include "base/single_thread_task_runner.h" | 11 #include "base/single_thread_task_runner.h" |
| 12 #include "base/stl_util.h" | 12 #include "base/stl_util.h" |
| 13 #include "base/strings/string_util.h" | 13 #include "base/strings/string_util.h" |
| 14 #include "base/thread_task_runner_handle.h" | 14 #include "base/thread_task_runner_handle.h" |
| 15 #include "components/html_viewer/blink_input_events_type_converters.h" | 15 #include "components/html_viewer/blink_input_events_type_converters.h" |
| 16 #include "components/html_viewer/blink_url_request_type_converters.h" | 16 #include "components/html_viewer/blink_url_request_type_converters.h" |
| 17 #include "components/html_viewer/web_layer_tree_view_impl.h" | 17 #include "components/html_viewer/web_layer_tree_view_impl.h" |
| 18 #include "components/html_viewer/web_media_player_factory.h" | 18 #include "components/html_viewer/web_media_player_factory.h" |
| 19 #include "components/html_viewer/web_storage_namespace_impl.h" | 19 #include "components/html_viewer/web_storage_namespace_impl.h" |
| 20 #include "components/html_viewer/web_url_loader_impl.h" | 20 #include "components/html_viewer/web_url_loader_impl.h" |
| 21 #include "components/surfaces/public/interfaces/surfaces.mojom.h" |
| 22 #include "components/view_manager/public/cpp/view.h" |
| 21 #include "media/blink/webencryptedmediaclient_impl.h" | 23 #include "media/blink/webencryptedmediaclient_impl.h" |
| 22 #include "media/cdm/default_cdm_factory.h" | 24 #include "media/cdm/default_cdm_factory.h" |
| 23 #include "media/filters/default_media_permission.h" | 25 #include "media/filters/default_media_permission.h" |
| 24 #include "skia/ext/refptr.h" | 26 #include "skia/ext/refptr.h" |
| 25 #include "third_party/WebKit/public/platform/Platform.h" | 27 #include "third_party/WebKit/public/platform/Platform.h" |
| 26 #include "third_party/WebKit/public/platform/WebHTTPHeaderVisitor.h" | 28 #include "third_party/WebKit/public/platform/WebHTTPHeaderVisitor.h" |
| 27 #include "third_party/WebKit/public/platform/WebSize.h" | 29 #include "third_party/WebKit/public/platform/WebSize.h" |
| 28 #include "third_party/WebKit/public/web/WebConsoleMessage.h" | 30 #include "third_party/WebKit/public/web/WebConsoleMessage.h" |
| 29 #include "third_party/WebKit/public/web/WebDocument.h" | 31 #include "third_party/WebKit/public/web/WebDocument.h" |
| 30 #include "third_party/WebKit/public/web/WebElement.h" | 32 #include "third_party/WebKit/public/web/WebElement.h" |
| 31 #include "third_party/WebKit/public/web/WebInputEvent.h" | 33 #include "third_party/WebKit/public/web/WebInputEvent.h" |
| 32 #include "third_party/WebKit/public/web/WebLocalFrame.h" | 34 #include "third_party/WebKit/public/web/WebLocalFrame.h" |
| 33 #include "third_party/WebKit/public/web/WebScriptSource.h" | 35 #include "third_party/WebKit/public/web/WebScriptSource.h" |
| 34 #include "third_party/WebKit/public/web/WebSettings.h" | 36 #include "third_party/WebKit/public/web/WebSettings.h" |
| 35 #include "third_party/WebKit/public/web/WebView.h" | 37 #include "third_party/WebKit/public/web/WebView.h" |
| 36 #include "third_party/mojo/src/mojo/public/cpp/application/application_impl.h" | 38 #include "third_party/mojo/src/mojo/public/cpp/application/application_impl.h" |
| 37 #include "third_party/mojo/src/mojo/public/cpp/application/connect.h" | 39 #include "third_party/mojo/src/mojo/public/cpp/application/connect.h" |
| 38 #include "third_party/mojo/src/mojo/public/cpp/system/data_pipe.h" | 40 #include "third_party/mojo/src/mojo/public/cpp/system/data_pipe.h" |
| 39 #include "third_party/mojo/src/mojo/public/interfaces/application/shell.mojom.h" | 41 #include "third_party/mojo/src/mojo/public/interfaces/application/shell.mojom.h" |
| 40 #include "third_party/mojo_services/src/surfaces/public/interfaces/surfaces.mojo
m.h" | |
| 41 #include "third_party/mojo_services/src/view_manager/public/cpp/view.h" | |
| 42 #include "third_party/skia/include/core/SkCanvas.h" | 42 #include "third_party/skia/include/core/SkCanvas.h" |
| 43 #include "third_party/skia/include/core/SkColor.h" | 43 #include "third_party/skia/include/core/SkColor.h" |
| 44 #include "third_party/skia/include/core/SkDevice.h" | 44 #include "third_party/skia/include/core/SkDevice.h" |
| 45 #include "ui/gfx/geometry/dip_util.h" | 45 #include "ui/gfx/geometry/dip_util.h" |
| 46 | 46 |
| 47 using mojo::AxProvider; | 47 using mojo::AxProvider; |
| 48 using mojo::Rect; | 48 using mojo::Rect; |
| 49 using mojo::ServiceProviderPtr; | 49 using mojo::ServiceProviderPtr; |
| 50 using mojo::URLResponsePtr; | 50 using mojo::URLResponsePtr; |
| 51 using mojo::View; | 51 using mojo::View; |
| (...skipping 324 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 376 return media_permission_.get(); | 376 return media_permission_.get(); |
| 377 } | 377 } |
| 378 | 378 |
| 379 media::CdmFactory* HTMLDocument::GetCdmFactory() { | 379 media::CdmFactory* HTMLDocument::GetCdmFactory() { |
| 380 if (!cdm_factory_) | 380 if (!cdm_factory_) |
| 381 cdm_factory_.reset(new media::DefaultCdmFactory()); | 381 cdm_factory_.reset(new media::DefaultCdmFactory()); |
| 382 return cdm_factory_.get(); | 382 return cdm_factory_.get(); |
| 383 } | 383 } |
| 384 | 384 |
| 385 } // namespace html_viewer | 385 } // namespace html_viewer |
| OLD | NEW |