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 #include "ios/web/web_state/web_state_impl.h" | 5 #import "ios/web/web_state/web_state_impl.h" |
6 | 6 |
7 #include <stddef.h> | 7 #include <stddef.h> |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include "base/logging.h" | 10 #include "base/logging.h" |
11 #include "base/metrics/histogram_macros.h" | 11 #include "base/metrics/histogram_macros.h" |
12 #include "base/strings/sys_string_conversions.h" | 12 #include "base/strings/sys_string_conversions.h" |
13 #include "ios/web/interstitials/web_interstitial_impl.h" | 13 #import "ios/web/interstitials/web_interstitial_impl.h" |
14 #import "ios/web/navigation/crw_session_controller.h" | 14 #import "ios/web/navigation/crw_session_controller.h" |
15 #import "ios/web/navigation/crw_session_entry.h" | 15 #import "ios/web/navigation/crw_session_entry.h" |
16 #include "ios/web/navigation/navigation_item_impl.h" | 16 #import "ios/web/navigation/navigation_item_impl.h" |
17 #include "ios/web/net/request_group_util.h" | 17 #import "ios/web/net/request_group_util.h" |
18 #include "ios/web/public/browser_state.h" | 18 #include "ios/web/public/browser_state.h" |
19 #import "ios/web/public/image_fetcher/image_data_fetcher.h" | 19 #import "ios/web/public/image_fetcher/image_data_fetcher.h" |
20 #import "ios/web/public/java_script_dialog_presenter.h" | 20 #import "ios/web/public/java_script_dialog_presenter.h" |
21 #include "ios/web/public/navigation_item.h" | 21 #import "ios/web/public/navigation_item.h" |
22 #include "ios/web/public/url_util.h" | 22 #include "ios/web/public/url_util.h" |
23 #include "ios/web/public/web_client.h" | 23 #import "ios/web/public/web_client.h" |
24 #import "ios/web/public/web_state/context_menu_params.h" | 24 #import "ios/web/public/web_state/context_menu_params.h" |
25 #include "ios/web/public/web_state/credential.h" | 25 #include "ios/web/public/web_state/credential.h" |
26 #include "ios/web/public/web_state/ui/crw_content_view.h" | 26 #import "ios/web/public/web_state/ui/crw_content_view.h" |
27 #include "ios/web/public/web_state/web_state_delegate.h" | 27 #include "ios/web/public/web_state/web_state_delegate.h" |
28 #include "ios/web/public/web_state/web_state_observer.h" | 28 #include "ios/web/public/web_state/web_state_observer.h" |
29 #include "ios/web/public/web_state/web_state_policy_decider.h" | 29 #import "ios/web/public/web_state/web_state_policy_decider.h" |
30 #include "ios/web/web_state/global_web_state_event_tracker.h" | 30 #include "ios/web/web_state/global_web_state_event_tracker.h" |
31 #import "ios/web/web_state/ui/crw_web_controller.h" | 31 #import "ios/web/web_state/ui/crw_web_controller.h" |
32 #import "ios/web/web_state/ui/crw_web_controller_container_view.h" | 32 #import "ios/web/web_state/ui/crw_web_controller_container_view.h" |
33 #include "ios/web/web_state/web_state_facade_delegate.h" | 33 #include "ios/web/web_state/web_state_facade_delegate.h" |
34 #import "ios/web/webui/web_ui_ios_controller_factory_registry.h" | 34 #include "ios/web/webui/web_ui_ios_controller_factory_registry.h" |
35 #import "ios/web/webui/web_ui_ios_impl.h" | 35 #include "ios/web/webui/web_ui_ios_impl.h" |
36 #include "net/http/http_response_headers.h" | 36 #include "net/http/http_response_headers.h" |
37 #include "net/url_request/url_fetcher.h" | 37 #include "net/url_request/url_fetcher.h" |
38 #include "services/service_manager/public/cpp/interface_registry.h" | 38 #include "services/service_manager/public/cpp/interface_registry.h" |
39 #include "skia/ext/skia_utils_ios.h" | 39 #include "skia/ext/skia_utils_ios.h" |
40 #include "third_party/skia/include/core/SkBitmap.h" | 40 #include "third_party/skia/include/core/SkBitmap.h" |
41 | 41 |
42 namespace web { | 42 namespace web { |
43 | 43 |
44 /* static */ | 44 /* static */ |
45 std::unique_ptr<WebState> WebState::Create(const CreateParams& params) { | 45 std::unique_ptr<WebState> WebState::Create(const CreateParams& params) { |
(...skipping 687 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
733 const LoadCommittedDetails& load_details) { | 733 const LoadCommittedDetails& load_details) { |
734 for (auto& observer : observers_) | 734 for (auto& observer : observers_) |
735 observer.NavigationItemCommitted(load_details); | 735 observer.NavigationItemCommitted(load_details); |
736 } | 736 } |
737 | 737 |
738 WebState* WebStateImpl::GetWebState() { | 738 WebState* WebStateImpl::GetWebState() { |
739 return this; | 739 return this; |
740 } | 740 } |
741 | 741 |
742 } // namespace web | 742 } // namespace web |
OLD | NEW |